{"id":20427975,"url":"https://github.com/pkg/taptun","last_synced_at":"2025-04-12T19:22:38.024Z","repository":{"id":20233634,"uuid":"23505589","full_name":"pkg/taptun","owner":"pkg","description":"Control TUN/TAP virtual network interfaces.","archived":false,"fork":false,"pushed_at":"2016-04-24T13:19:34.000Z","size":12,"stargazers_count":93,"open_issues_count":1,"forks_count":14,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-26T13:45:23.553Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pkg.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":"2014-08-31T03:20:02.000Z","updated_at":"2025-02-11T09:14:17.000Z","dependencies_parsed_at":"2022-07-27T01:16:42.855Z","dependency_job_id":null,"html_url":"https://github.com/pkg/taptun","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/pkg%2Ftaptun","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pkg%2Ftaptun/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pkg%2Ftaptun/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pkg%2Ftaptun/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pkg","download_url":"https://codeload.github.com/pkg/taptun/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248619010,"owners_count":21134332,"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-11-15T07:23:26.199Z","updated_at":"2025-04-12T19:22:37.981Z","avatar_url":"https://github.com/pkg.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# taptun\n    import \"github.com/pkg/taptun\"\n\nPackage taptun provides an interface to the user level network\nTAP / TUN device.\n\na href=\"https://www.kernel.org/doc/Documentation/networking/tuntap.txt\"\u003ehttps://www.kernel.org/doc/Documentation/networking/tuntap.txt\u003c/a\u003e\n\n\n\n\n\n\n\n## type Tap\n``` go\ntype Tap struct {\n    io.ReadWriteCloser\n    // contains filtered or unexported fields\n}\n```\nTap represents a TAP Virtual Ethernet network device.\n\n\n\n\n\n\n\n\n\n### func OpenTap\n``` go\nfunc OpenTap() (*Tap, error)\n```\nOpenTap creates a tapN interface and returns a *Tap device connected to\nthe t pinterface.\n\n\n\n\n### func (\\*Tap) String\n``` go\nfunc (t *Tap) String() string\n```\n\n\n## type Tun\n``` go\ntype Tun struct {\n    io.ReadWriteCloser\n    // contains filtered or unexported fields\n}\n```\nTun represents a TUN Virtual Point-to-Point network device.\n\n\n\n\n\n\n\n\n\n### func OpenTun\n``` go\nfunc OpenTun() (*Tun, error)\n```\nOpenTun creates a tunN interface and returns a *Tun device connected to\nthe tun interface.\n\n\n\n\n### func (\\*Tun) String\n``` go\nfunc (t *Tun) String() string\n```\n\n\n\n\n\n\n\n\n- - -\nGenerated by [godoc2md](http://godoc.org/github.com/davecheney/godoc2md)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpkg%2Ftaptun","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpkg%2Ftaptun","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpkg%2Ftaptun/lists"}