statesinformer

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: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CallbackTarget added in v1.4.0

type CallbackTarget struct {
	Pods             []*PodMeta
	HostApplications []slov1alpha1.HostApplicationSpec
}

func (*CallbackTarget) String added in v1.4.0

func (t *CallbackTarget) String() string

type PodMeta

type PodMeta struct {
	Pod       *corev1.Pod
	CgroupDir string
}

func (*PodMeta) DeepCopy

func (in *PodMeta) DeepCopy() *PodMeta

func (*PodMeta) IsRunningOrPending added in v1.4.0

func (in *PodMeta) IsRunningOrPending() bool

func (*PodMeta) Key added in v1.4.0

func (in *PodMeta) Key() string

type RegisterType added in v0.5.0

type RegisterType int64
const (
	RegisterTypeNodeSLOSpec RegisterType = iota
	RegisterTypeAllPods
	RegisterTypeNodeTopology
	RegisterTypeNodeMetadata
)

func (RegisterType) String added in v0.5.0

func (r RegisterType) String() string

type StatesInformer

type StatesInformer interface {
	Run(stopCh <-chan struct{}) error
	HasSynced() bool

	GetNode() *corev1.Node
	GetNodeSLO() *slov1alpha1.NodeSLO

	GetAllPods() []*PodMeta

	GetNodeTopo() *topov1alpha1.NodeResourceTopology

	GetVolumeName(pvcNamespace, pvcName string) string

	RegisterCallbacks(objType RegisterType, name, description string, callbackFn UpdateCbFn)
}

type UpdateCbFn added in v0.4.0

type UpdateCbFn func(t RegisterType, obj interface{}, target *CallbackTarget)

Directories

Path Synopsis
Package mock_impl is a generated GoMock package.
Package mock_impl is a generated GoMock package.

Jump to

Keyboard shortcuts

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