{"id":16474566,"url":"https://github.com/akhilerm/device-hierarchy","last_synced_at":"2026-05-15T02:06:03.510Z","repository":{"id":57580664,"uuid":"215987174","full_name":"akhilerm/device-hierarchy","owner":"akhilerm","description":"Sysfs parser library to get blockdevice topology","archived":false,"fork":false,"pushed_at":"2019-10-29T07:26:07.000Z","size":16,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-05-28T21:04:44.265Z","etag":null,"topics":["golang","linux","sysfs"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/akhilerm.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":"2019-10-18T09:19:30.000Z","updated_at":"2024-05-28T21:04:44.265Z","dependencies_parsed_at":"2022-09-26T19:13:45.388Z","dependency_job_id":null,"html_url":"https://github.com/akhilerm/device-hierarchy","commit_stats":null,"previous_names":["akhilerm/device-topology"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akhilerm%2Fdevice-hierarchy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akhilerm%2Fdevice-hierarchy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akhilerm%2Fdevice-hierarchy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akhilerm%2Fdevice-hierarchy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/akhilerm","download_url":"https://codeload.github.com/akhilerm/device-hierarchy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241131105,"owners_count":19914846,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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","linux","sysfs"],"created_at":"2024-10-11T12:32:55.113Z","updated_at":"2026-05-15T02:05:58.490Z","avatar_url":"https://github.com/akhilerm.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Device Topology\n\nA simple package that parses the sysfs directory to obtain the blockdevice topology.\n\nThe project is still in **Alpha** stage.\n\nUsage:\n- To use as a binary, build the code\n```\ngo build -o topo main.go\n./topo /dev/sdb\n```\n\n- To use as a package. Import the `topology` package and create a `Device` object using the device path.\nThis will be used to get the dependent devices.\n\nTerms used: \n1. `Holders` : Holders are the list of blockdevices that are held by the given blockdevice.\neg: `/dev/sda1` is held by `/dev/sda` since it is a partition. Therefore the holder list of `/dev/sda` will have `/dev/sda1`\n2. `Slaves` : Slaves are the list of blockdevices to which the given device acts as a slave.\neg: `/dev/sda1` is a slave for `/dev/sda`. Therefore slave list of `/dev/sda1` will contain `/dev/sda`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakhilerm%2Fdevice-hierarchy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fakhilerm%2Fdevice-hierarchy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakhilerm%2Fdevice-hierarchy/lists"}