nri

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NriServer

type NriServer struct {
	// contains filtered or unexported fields
}

func NewNriServer

func NewNriServer(opt Options) (*NriServer, error)

func (*NriServer) Configure

func (p *NriServer) Configure(config, runtime, version string) (stub.EventMask, error)

func (*NriServer) CreateContainer

func (p *NriServer) CreateContainer(pod *api.PodSandbox, container *api.Container) (*api.ContainerAdjustment, []*api.ContainerUpdate, error)

func (*NriServer) RemovePodSandbox added in v1.5.0

func (p *NriServer) RemovePodSandbox(pod *api.PodSandbox) error

func (*NriServer) RunPodSandbox

func (p *NriServer) RunPodSandbox(pod *api.PodSandbox) error

func (*NriServer) Start

func (p *NriServer) Start() error

func (*NriServer) Stop added in v1.5.0

func (p *NriServer) Stop()

func (*NriServer) Synchronize

func (p *NriServer) Synchronize(pods []*api.PodSandbox, containers []*api.Container) ([]*api.ContainerUpdate, error)

func (*NriServer) UpdateContainer

func (p *NriServer) UpdateContainer(pod *api.PodSandbox, container *api.Container) ([]*api.ContainerUpdate, error)

type Options

type Options struct {
	NriPluginName     string
	NriPluginIdx      string
	NriSocketPath     string
	NriConnectTimeout time.Duration
	// support stop running other hooks once someone failed
	PluginFailurePolicy rmconfig.FailurePolicyType
	// todo: add support for disable stages
	DisableStages map[string]struct{}
	Executor      resourceexecutor.ResourceUpdateExecutor
	BackOff       wait.Backoff
}

func (Options) Validate added in v1.4.0

func (o Options) Validate() error

Jump to

Keyboard shortcuts

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