rootlessutil

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2021 License: Apache-2.0 Imports: 16 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsRootless

func IsRootless() bool

func IsRootlessChild

func IsRootlessChild() bool

func IsRootlessParent

func IsRootlessParent() bool

func NewRootlessKitClient added in v0.7.3

func NewRootlessKitClient() (client.Client, error)

func ParentEGID

func ParentEGID() int

func ParentEUID

func ParentEUID() int

func ParentMain

func ParentMain() error

func RootlessKitChildPid

func RootlessKitChildPid(stateDir string) (int, error)

func RootlessKitStateDir

func RootlessKitStateDir() (string, error)

func XDGConfigHome

func XDGConfigHome() (string, error)

func XDGDataHome

func XDGDataHome() (string, error)

func XDGRuntimeDir

func XDGRuntimeDir() (string, error)

Types

type RootlessCNIPortManager

type RootlessCNIPortManager struct {
	client.Client
}

func NewRootlessCNIPortManager

func NewRootlessCNIPortManager(client client.Client) (*RootlessCNIPortManager, error)

func (*RootlessCNIPortManager) ExposePort

func (rlcpm *RootlessCNIPortManager) ExposePort(ctx context.Context, cpm gocni.PortMapping) error

func (*RootlessCNIPortManager) UnexposePort

func (rlcpm *RootlessCNIPortManager) UnexposePort(ctx context.Context, cpm gocni.PortMapping) error

Jump to

Keyboard shortcuts

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