nsmgr_test

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 25, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AllSpoofedNamespaces = []nsmgr.Namespace{
	&SpoofedNamespace{
		NsType: nsmgr.IPCNS,
	},
	&SpoofedNamespace{
		NsType: nsmgr.UTSNS,
	},
	&SpoofedNamespace{
		NsType: nsmgr.NETNS,
	},
	&SpoofedNamespace{
		NsType: nsmgr.USERNS,
	},
}

Functions

func ContainerWithPid

func ContainerWithPid(pid int) (*oci.Container, error)

Types

type SpoofedNamespace

type SpoofedNamespace struct {
	NsType    nsmgr.NSType
	EmptyPath bool
}

func (*SpoofedNamespace) Close

func (s *SpoofedNamespace) Close() error

func (*SpoofedNamespace) Path

func (s *SpoofedNamespace) Path() string

func (*SpoofedNamespace) Remove

func (s *SpoofedNamespace) Remove() error

func (*SpoofedNamespace) Type

func (s *SpoofedNamespace) Type() nsmgr.NSType

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL