cricore

package
v0.0.0-...-5c7ffcf Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyFromContainerForRunC

func CopyFromContainerForRunC(ctx context.Context, c *cri.Container, srcPath, dstPath string) error

func CopyToContainerForRunC

func CopyToContainerForRunC(ctx context.Context, c *cri.Container, srcPath, dstPath string) error

func NsEnterAndRunCodes

func NsEnterAndRunCodes(nsFile string, callback func()) error

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()

func NsEnterContainerAndRunCodes

func NsEnterContainerAndRunCodes(c *cri.Container, callback func()) error

func NsEnterDial

func NsEnterDial(ctx context.Context, c *cri.Container, network, addr string, dialTimeout time.Duration) (net.Conn, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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