plugin

package
v0.0.0-...-7219249 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NriPluginName = "memory-bandwidth-exporter.v1"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Plugin

type Plugin struct {
	PluginName   string
	PluginIdx    string
	DisableWatch bool
	Stub         stub.Stub
	Mgr          *hooks.Manager
	Logger       log.Logger
}

func (*Plugin) CreateContainer

func (p *Plugin) CreateContainer(_ context.Context, pod *api.PodSandbox, container *api.Container) (
	*api.ContainerAdjustment, []*api.ContainerUpdate, error)

func (*Plugin) Run

func (p *Plugin) Run(isNeed bool) error

func (*Plugin) StartContainer

func (p *Plugin) StartContainer(_ context.Context, pod *api.PodSandbox, container *api.Container) error

func (*Plugin) StopContainer

func (p *Plugin) StopContainer(_ context.Context, pod *api.PodSandbox, container *api.Container) (
	[]*api.ContainerUpdate, error)

func (*Plugin) Synchronize

func (p *Plugin) Synchronize(_ context.Context, pod []*api.PodSandbox, container []*api.Container) (
	[]*api.ContainerUpdate, error)

Jump to

Keyboard shortcuts

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