{"id":22583240,"url":"https://github.com/devatoria/go-nsenter","last_synced_at":"2025-04-10T19:32:10.060Z","repository":{"id":57499697,"uuid":"93837757","full_name":"Devatoria/go-nsenter","owner":"Devatoria","description":"Golang library to manipulate namespaces with nsenter","archived":false,"fork":false,"pushed_at":"2019-11-20T16:40:14.000Z","size":5,"stargazers_count":7,"open_issues_count":1,"forks_count":2,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-24T17:11:06.873Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Devatoria.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-06-09T08:37:56.000Z","updated_at":"2023-08-09T15:38:50.000Z","dependencies_parsed_at":"2022-08-28T14:21:03.048Z","dependency_job_id":null,"html_url":"https://github.com/Devatoria/go-nsenter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Devatoria%2Fgo-nsenter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Devatoria%2Fgo-nsenter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Devatoria%2Fgo-nsenter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Devatoria%2Fgo-nsenter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Devatoria","download_url":"https://codeload.github.com/Devatoria/go-nsenter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248281415,"owners_count":21077423,"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":[],"created_at":"2024-12-08T06:14:28.051Z","updated_at":"2025-04-10T19:32:10.031Z","avatar_url":"https://github.com/Devatoria.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-nsenter\n\n[![GoDoc](https://godoc.org/github.com/Devatoria/go-nsenter?status.svg)](https://godoc.org/github.com/Devatoria/go-nsenter)\n\nGolang library to execute program into process namespaces using `nsenter`.\n\n## Example\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\n\t\"github.com/Devatoria/go-nsenter\"\n)\n\nfunc main() {\n\tconfig := \u0026nsenter.Config{\n\t\tMount:  true, // Execute into mount namespace\n\t\tTarget: 1,    // Enter into PID 1 (init) namespace\n\t}\n\n\tstdout, stderr, err := config.Execute(\"ls\", \"-la\")\n\tif err != nil {\n\t\tfmt.Println(stderr)\n\t\tpanic(err)\n\t}\n\n\tfmt.Println(stdout)\n}\n```\n\n## Features\n\n- [X] Allow to specify a file to use to enter namespace\n- [X] Return stdout/stderr of the executed command\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevatoria%2Fgo-nsenter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevatoria%2Fgo-nsenter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevatoria%2Fgo-nsenter/lists"}