Documentation ¶
Index ¶
Constants ¶
View Source
const ( HTTPScheme = "http" HTTPSScheme = "https" )
Variables ¶
This section is empty.
Functions ¶
func NewCallbackRunner ¶
func NewCallbackRunner() *callbackRunner
func NewNodeInformer ¶
func NewNodeInformer() *nodeInformer
func NewPodsInformer ¶
func NewPodsInformer() *podsInformer
Types ¶
type Config ¶
type Config struct { KubeletPreferredAddressType string KubeletSyncInterval time.Duration KubeletSyncTimeout time.Duration InsecureKubeletTLS bool KubeletReadOnlyPort uint DisableQueryKubeletConfig bool }
func NewDefaultConfig ¶
func NewDefaultConfig() *Config
type KubeletStub ¶
type KubeletStub interface { GetAllPods() (corev1.PodList, error) GetKubeletConfiguration() (*kubeletconfiginternal.KubeletConfiguration, error) }
type RegisterType ¶
type RegisterType int64
const ( RegisterTypeNodeSLOSpec RegisterType = iota RegisterTypeAllPods RegisterTypeNodeTopology )
func (RegisterType) String ¶
func (r RegisterType) String() string
type StatesInformer ¶
type StatesInformer interface { Run(stopCh <-chan struct{}) error HasSynced() bool GetNode() *corev1.Node GetAllPods() []*PodMeta RegisterCallbacks(objType RegisterType, name, description string, callbackFn UpdateCbFn) }
func NewStatesInformer ¶
func NewStatesInformer(config *Config, kubeClient clientset.Interface, nodeName string) StatesInformer
type UpdateCbCtx ¶
type UpdateCbCtx struct{}
type UpdateCbFn ¶
type UpdateCbFn func(t RegisterType, obj interface{}, pods []*PodMeta)
Click to show internal directories.
Click to hide internal directories.