pod

package
v0.0.0-...-5a60d54 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(clientset *kubernetes.Clientset, wattTimeClient *watttime.Client)

Types

type PodManager

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

PodManager manages the power state of pods.

func NewPodManager

func NewPodManager(informerFactory informers.SharedInformerFactory, clientset *kubernetes.Clientset, wattTimeClient *watttime.Client) (*PodManager, error)

NewPodManager creates a PodManager.

func (*PodManager) Run

func (c *PodManager) Run(stopCh <-chan struct{}) error

Run starts shared informers and waits for the shared informer cache to synchronize.

Jump to

Keyboard shortcuts

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