nri

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: Apache-2.0 Imports: 13 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) RunPodSandbox

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

func (*NriServer) Start

func (p *NriServer) Start() error

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 {
	NriSocketPath string
	// support stop running other hooks once someone failed
	PluginFailurePolicy rmconfig.FailurePolicyType
	// todo: add support for disable stages
	DisableStages map[string]struct{}
	Executor      resourceexecutor.ResourceUpdateExecutor
}

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