Documentation ¶
Index ¶
- func CopyFromContainerForRunC(ctx context.Context, c *cri.Container, srcPath, dstPath string) error
- func CopyToContainerForRunC(ctx context.Context, c *cri.Container, srcPath, dstPath string) error
- func NsEnterAndRunCodes(nsFile string, callback func()) error
- func NsEnterContainerAndRunCodes(c *cri.Container, callback func()) error
- func NsEnterDial(ctx context.Context, c *cri.Container, network, addr string, ...) (net.Conn, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyToContainerForRunC ¶
func NsEnterAndRunCodes ¶
NsEnterAndRunCodes enter target ns, and then run callback. Notice that this func will run callback in a new thread. After callback returns, the thread terminates. See runtime.LockOSThread()
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.