Documentation ¶
Index ¶
- func DetachedNetNS() (string, error)
- func IsRootless() bool
- func IsRootlessChild() bool
- func IsRootlessParent() bool
- func NewRootlessKitClient() (client.Client, error)
- func ParentEGID() int
- func ParentEUID() int
- func ParentMain(hostGatewayIP string) error
- func RootlessContainredSockAddress() (string, error)
- func RootlessKitChildPid(stateDir string) (int, error)
- func RootlessKitStateDir() (string, error)
- func WithDetachedNetNSIfAny(fn func() error) error
- func XDGConfigHome() (string, error)
- func XDGDataHome() (string, error)
- func XDGRuntimeDir() (string, error)
- type RootlessCNIPortManager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DetachedNetNS ¶
DetachedNetNS returns non-empty netns path if RootlessKit is running with --detach-netns mode. Otherwise returns "" without an error.
func IsRootless ¶
func IsRootless() bool
func IsRootlessChild ¶
func IsRootlessChild() bool
func IsRootlessParent ¶
func IsRootlessParent() bool
func NewRootlessKitClient ¶
func ParentEGID ¶
func ParentEGID() int
func ParentEUID ¶
func ParentEUID() int
func ParentMain ¶
func RootlessContainredSockAddress ¶
RootlessContainredSockAddress returns sock address of rootless containerd based on https://github.com/containerd/nerdctl/blob/main/docs/faq.md#containerd-socket-address
func RootlessKitChildPid ¶
func RootlessKitStateDir ¶
func WithDetachedNetNSIfAny ¶
WithDetachedNetNSIfAny executes fn in DetachedNetNS if RootlessKit is running with --detach-netns mode. Otherwise it just executes fn in the current netns.
func XDGConfigHome ¶
func XDGDataHome ¶
func XDGRuntimeDir ¶
Types ¶
type RootlessCNIPortManager ¶
func NewRootlessCNIPortManager ¶
func NewRootlessCNIPortManager(client client.Client) (*RootlessCNIPortManager, error)
func (*RootlessCNIPortManager) ExposePort ¶
func (rlcpm *RootlessCNIPortManager) ExposePort(ctx context.Context, cpm cni.PortMapping) error
func (*RootlessCNIPortManager) UnexposePort ¶
func (rlcpm *RootlessCNIPortManager) UnexposePort(ctx context.Context, cpm cni.PortMapping) error
Click to show internal directories.
Click to hide internal directories.