{"id":36534751,"url":"https://github.com/lovi-cloud/go-os-brick","last_synced_at":"2026-01-15T02:44:30.909Z","repository":{"id":46252800,"uuid":"262217800","full_name":"lovi-cloud/go-os-brick","owner":"lovi-cloud","description":"go-os-brick is the Go port of os-brick. provide an iSCSI initiator in your Golang Application.","archived":false,"fork":false,"pushed_at":"2021-11-03T20:34:07.000Z","size":130,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-13T09:20:03.430Z","etag":null,"topics":["golang","iscsi","iscsi-initiator","os-brick"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lovi-cloud.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-05-08T03:28:20.000Z","updated_at":"2021-11-03T20:33:51.000Z","dependencies_parsed_at":"2022-08-29T00:51:34.937Z","dependency_job_id":null,"html_url":"https://github.com/lovi-cloud/go-os-brick","commit_stats":null,"previous_names":["whywaita/go-os-brick"],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/lovi-cloud/go-os-brick","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lovi-cloud%2Fgo-os-brick","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lovi-cloud%2Fgo-os-brick/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lovi-cloud%2Fgo-os-brick/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lovi-cloud%2Fgo-os-brick/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lovi-cloud","download_url":"https://codeload.github.com/lovi-cloud/go-os-brick/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lovi-cloud%2Fgo-os-brick/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28441438,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-15T00:55:22.719Z","status":"online","status_checked_at":"2026-01-15T02:00:08.019Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["golang","iscsi","iscsi-initiator","os-brick"],"created_at":"2026-01-12T03:08:46.490Z","updated_at":"2026-01-15T02:44:30.901Z","avatar_url":"https://github.com/lovi-cloud.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-os-brick: go-os-brick is Go port of [os-brick](https://github.com/openstack/os-brick)\n\n[![Go Reference](https://pkg.go.dev/badge/github.com/lovi-cloud/go-os-brick.svg)](https://pkg.go.dev/github.com/lovi-cloud/go-os-brick)\n\n## Usage\n\ngo-os-brick provide function that connect / disconnect iSCSI volume.\n\n- for multi path\n    - `ConnectMultiPathVolume()`\n    - `DisconnectVolume()`\n- for single path\n    - `ConnectSinglePathVolume()`\n    - `DisconnectSinglePathVolume()`\n\n### Prepare\n\ngo-os-brick execute a some commands. please install before use.\n\n- `iscsiadm(8)`\n- `blockdev(8)`\n- `qemu-img(1)`\n    - if you use `QEMUToRaw()`\n- `multipath(8)`\n    - if you use multi path\n\n## Testing\n\n### using gostor/gotgt\n\nbackend is [gostor/gotgt](https://github.com/gostor/gotgt) via goroutine.\nThis test need some kernel modules.\n\n```\n$ sudo go test -v ./...\n```\n\n### using open-iscsi targetd in a host machine\n\n**WARNING: DO NOT EXECUTE YOUR WORKSPACE!!**\n\nThis test execute script in a host.\n\nbackend is open-iscsi targetd in a host machine.\nThis test need some kernel modules.\n\n```\n$ sudo go test -tags=host -v ./...\n```\n\n### using real iSCSI target endpoint\n\nyou can use real iSCSI target as backend for testing.\n\nplease set environment value\n\n- `OS_BRICK_TEST_PORTAL_ADDRESS`\n- `OS_BRICK_TEST_TARGET_IQN`\n\n```\n$ export OS_BRICK_TEST_PORTAL_ADDRESS=\"192.0.2.1\"\n$ export ...\n$ sudo go test -v ./...\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flovi-cloud%2Fgo-os-brick","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flovi-cloud%2Fgo-os-brick","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flovi-cloud%2Fgo-os-brick/lists"}