Documentation ¶
Index ¶
- type NriServer
- func (p *NriServer) Configure(config, runtime, version string) (stub.EventMask, error)
- func (p *NriServer) CreateContainer(pod *api.PodSandbox, container *api.Container) (*api.ContainerAdjustment, []*api.ContainerUpdate, error)
- func (p *NriServer) RemovePodSandbox(pod *api.PodSandbox) error
- func (p *NriServer) RunPodSandbox(pod *api.PodSandbox) error
- func (p *NriServer) Start() error
- func (p *NriServer) Stop()
- func (p *NriServer) Synchronize(pods []*api.PodSandbox, containers []*api.Container) ([]*api.ContainerUpdate, error)
- func (p *NriServer) UpdateContainer(pod *api.PodSandbox, container *api.Container) ([]*api.ContainerUpdate, error)
- type Options
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 (*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) 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 }
Click to show internal directories.
Click to hide internal directories.