Versions in this module Expand all Collapse all v1 v1.0.1 Jun 25, 2024 Changes in this version + func New(cfg *config.Config) (*local, error) + func SetDomain(d Domain) + type API interface + CreateContainer func(context.Context, PodSandbox, Container) (*nri.ContainerAdjustment, error) + IsEnabled func() bool + PostCreateContainer func(context.Context, PodSandbox, Container) error + PostStartContainer func(context.Context, PodSandbox, Container) error + PostUpdateContainer func(context.Context, PodSandbox, Container) error + RemoveContainer func(context.Context, PodSandbox, Container) error + RemovePodSandbox func(context.Context, PodSandbox) error + RunPodSandbox func(context.Context, PodSandbox) error + Start func() error + StartContainer func(context.Context, PodSandbox, Container) error + Stop func() + StopContainer func(context.Context, PodSandbox, Container) error + StopPodSandbox func(context.Context, PodSandbox) error + UpdateContainer func(context.Context, PodSandbox, Container, *nri.LinuxResources) (*nri.LinuxResources, error) + type Container interface + GetAnnotations func() map[string]string + GetArgs func() []string + GetDomain func() string + GetEnv func() []string + GetHooks func() *nri.Hooks + GetID func() string + GetLabels func() map[string]string + GetLinuxContainer func() LinuxContainer + GetMounts func() []*nri.Mount + GetName func() string + GetPodSandboxID func() string + GetSpec func() *specs.Spec + GetState func() nri.ContainerState + type Domain interface + EvictContainer func(context.Context, *nri.ContainerEviction) error + GetContainer func(string) (Container, bool) + GetName func() string + GetPodSandbox func(string) (PodSandbox, bool) + ListContainers func() []Container + ListPodSandboxes func() []PodSandbox + UpdateContainer func(context.Context, *nri.ContainerUpdate) error + type LinuxContainer interface + GetCgroupsPath func() string + GetLinuxDevices func() []*nri.LinuxDevice + GetLinuxNamespaces func() []*nri.LinuxNamespace + GetLinuxResources func() *nri.LinuxResources + GetOOMScoreAdj func() *int + type LinuxPodSandbox interface + GetCgroupParent func() string + GetCgroupsPath func() string + GetLinuxNamespaces func() []*nri.LinuxNamespace + GetLinuxResources func() *nri.LinuxResources + GetPodLinuxOverhead func() *nri.LinuxResources + GetPodLinuxResources func() *nri.LinuxResources + type PodSandbox interface + GetAnnotations func() map[string]string + GetDomain func() string + GetID func() string + GetLabels func() map[string]string + GetLinuxPodSandbox func() LinuxPodSandbox + GetName func() string + GetNamespace func() string + GetPid func() uint32 + GetRuntimeHandler func() string + GetUID func() string + type State int + const Created + const Removed + const Running + const Stopped