controller

package
v0.0.0-...-8073816 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrCacheSync is returned when the cache fails to sync
	ErrCacheSync = errors.New("failed to sync cache")
)

Functions

This section is empty.

Types

type NodesInformer

type NodesInformer interface {
	Load(ctx context.Context, log *logrus.Entry, cluster string, clientset kubernetes.Interface) (chan bool, error)
	GetNode(nodeName string) (*usage.NodeInfo, bool)
}

func NewNodesInformer

func NewNodesInformer() NodesInformer

type NodesMap

type NodesMap struct {
	// contains filtered or unexported fields
}

func (*NodesMap) GetNode

func (n *NodesMap) GetNode(nodeName string) (*usage.NodeInfo, bool)

func (*NodesMap) Load

func (n *NodesMap) Load(ctx context.Context, log *logrus.Entry, cluster string, clientset kubernetes.Interface) (chan bool, error)

Load loads the NodesMap with the current nodes in the cluster return channel to signal when the map is loaded

type Scanner

type Scanner interface {
	Run(ctx context.Context) error
}

func New

func New(log *logrus.Entry, client *kubernetes.Clientset, uploader firehose.Uploader, informer NodesInformer) Scanner

Jump to

Keyboard shortcuts

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