agent

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2024 License: Apache-2.0 Imports: 9 Imported by: 3

Documentation

Index

Constants

View Source
const (
	// PatchAdd specifies an add operation.
	PatchAdd string = "add"
	// PatchRemove specifies an remove operation.
	PatchRemove string = "remove"
	// PatchReplace specifies an replace operation.
	PatchReplace string = "replace"
)
View Source
const (
	SocketDisabled = "disabled"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface

type Interface interface {
	IsDisabled() bool

	GetNode(time.Duration) (core_v1.Node, error)
	PatchNode([]*agent_v1.JsonPatch, time.Duration) error
	UpdateNodeCapacity(map[string]string, time.Duration) error

	GetLabels(time.Duration) (map[string]string, error)
	SetLabels(map[string]string, time.Duration) error
	RemoveLabels([]string, time.Duration) error

	GetAnnotations(time.Duration) (map[string]string, error)
	SetAnnotations(map[string]string, time.Duration) error
	RemoveAnnotations([]string, time.Duration) error

	GetTaints(time.Duration) ([]core_v1.Taint, error)
	SetTaints([]core_v1.Taint, time.Duration) error
	RemoveTaints([]core_v1.Taint, time.Duration) error

	FindTaintIndex([]core_v1.Taint, *core_v1.Taint) (int, bool)
}

Interface describe interfaces of cri-resource-manager agent

func NewAgentInterface

func NewAgentInterface(socket string) (Interface, error)

NewAgentInterface connects to cri-resource-manager-agent gRPC server and return a new Interface

Jump to

Keyboard shortcuts

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