Documentation ¶
Index ¶
Constants ¶
View Source
const ( HTTPScheme = "http" HTTPSScheme = "https" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { KubeletPreferredAddressType string KubeletSyncInterval time.Duration KubeletSyncTimeout time.Duration InsecureKubeletTLS bool KubeletReadOnlyPort uint NodeTopologySyncInterval time.Duration }
func NewDefaultConfig ¶
func NewDefaultConfig() *Config
type KubeletStub ¶
type RegisterType ¶ added in v0.5.0
type RegisterType int64
const ( RegisterTypeNodeSLOSpec RegisterType = iota RegisterTypeAllPods RegisterTypeNodeTopology )
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 RegisterCallbacks(objType RegisterType, name, description string, callbackFn UpdateCbFn) }
func NewStatesInformer ¶ added in v0.2.0
func NewStatesInformer(config *Config, kubeClient clientset.Interface, crdClient koordclientset.Interface, topologyClient *topologyclientset.Clientset, metricsCache metriccache.MetricCache, pleg pleg.Pleg, nodeName string) StatesInformer
type UpdateCbCtx ¶ added in v0.5.0
type UpdateCbCtx struct{}
type UpdateCbFn ¶ added in v0.4.0
type UpdateCbFn func(t RegisterType, obj interface{}, pods []*PodMeta)
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package mock_statesinformer is a generated GoMock package.
|
Package mock_statesinformer is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.