Documentation ¶
Index ¶
- Constants
- Variables
- func GetNodeAttrs(obj k8sRuntime.Object) (k8sLabels.Set, k8sFields.Set, error)
- func GetPodAttrs(obj k8sRuntime.Object) (k8sLabels.Set, k8sFields.Set, error)
- func NewListCoreV1Namespace() core_v1.ListCoreV1NamespaceHandler
- func NewListCoreV1Node() core_v1.ListCoreV1NodeHandler
- func NewListCoreV1Pod() core_v1.ListCoreV1PodForAllNamespacesHandler
- func NewListCoreV1Service() core_v1.ListCoreV1ServiceForAllNamespacesHandler
- func NewNodesMgr(cnMgr encoders.ObjHandler) management.PostManagementKubernetesIoV1NodesHandler
- func NewPatchCoreV1Node() core_v1.PatchCoreV1NodeHandler
- func NewPatchCoreV1NodeStatus() core_v1.PatchCoreV1NodeStatusHandler
- func NewPodsMgr(cepMgr encoders.ObjHandler) management.PostManagementKubernetesIoV1PodsHandler
- func NewReadCoreV1Namespace() core_v1.ReadCoreV1NamespaceHandler
- func NewReadCoreV1Node() core_v1.ReadCoreV1NodeHandler
- func NodeToSelectableFields(node *k8sCoreV1.Node) k8sFields.Set
- func ToSelectableFields(pod *k8sCoreV1.Pod) k8sFields.Set
- type NamespaceConfig
- type NamespaceMgr
- func (n *NamespaceMgr) AddElements(elem int64) int64
- func (n *NamespaceMgr) List(start, limit int64) (k8sRuntime.Object, error)
- func (*NamespaceMgr) NewInterface() k8sRuntime.Object
- func (*NamespaceMgr) NewListInterface() k8sRuntime.Object
- func (n *NamespaceMgr) SetList(obj k8sRuntime.Object) error
- func (n *NamespaceMgr) SetObj(obj k8sRuntime.Object) error
- type NodeConfig
- type NodeMgr
- func (n *NodeMgr) AddElements(elem int64) int64
- func (n *NodeMgr) GenObj(idx int64) k8sRuntime.Object
- func (n *NodeMgr) GenObjs(start, maxElemts int64) <-chan k8sRuntime.Object
- func (n *NodeMgr) List(start, limit int64) (k8sRuntime.Object, error)
- func (*NodeMgr) Log() *logrus.Logger
- func (*NodeMgr) NewInterface() k8sRuntime.Object
- func (*NodeMgr) NewListInterface() k8sRuntime.Object
- func (n *NodeMgr) SetList(obj k8sRuntime.Object) error
- func (n *NodeMgr) SetObj(obj k8sRuntime.Object) error
- func (n *NodeMgr) Stream() chan k8sRuntime.Object
- type PodConfig
- type PodMgr
- func (p *PodMgr) AddElements(elem int64) int64
- func (p *PodMgr) GenObj(idx int64) k8sRuntime.Object
- func (p *PodMgr) GenObjs(start, maxElemts int64) <-chan k8sRuntime.Object
- func (p *PodMgr) List(start, limit int64) (k8sRuntime.Object, error)
- func (*PodMgr) Log() *logrus.Logger
- func (*PodMgr) NewInterface() k8sRuntime.Object
- func (*PodMgr) NewListInterface() k8sRuntime.Object
- func (p *PodMgr) SetList(obj k8sRuntime.Object) error
- func (p *PodMgr) SetObj(obj k8sRuntime.Object) error
- func (p *PodMgr) Stream() chan k8sRuntime.Object
- type ServiceConfig
- type ServiceMgr
- func (svcMgr *ServiceMgr) AddElements(elem int64) int64
- func (svcMgr *ServiceMgr) List(start, limit int64) (k8sRuntime.Object, error)
- func (*ServiceMgr) NewInterface() k8sRuntime.Object
- func (*ServiceMgr) NewListInterface() k8sRuntime.Object
- func (svcMgr *ServiceMgr) SetList(obj k8sRuntime.Object) error
- func (svcMgr *ServiceMgr) SetObj(obj k8sRuntime.Object) error
Constants ¶
View Source
const (
Namespace = "namespace"
)
View Source
const (
Node = "node"
)
View Source
const (
Pod = "pod"
)
View Source
const (
Service = "service"
)
Variables ¶
View Source
var NamespaceManager = &NamespaceMgr{}
View Source
var NodeManager = &NodeMgr{ staticList: &k8sCoreV1.NodeList{}, elemTemplate: &k8sCoreV1.Node{}, streamCh: make(chan k8sRuntime.Object), }
View Source
var PodManager = &PodMgr{ staticList: &k8sCoreV1.PodList{}, elemTemplate: &k8sCoreV1.Pod{}, streamCh: make(chan k8sRuntime.Object), }
View Source
var ServiceManager = &ServiceMgr{}
Functions ¶
func GetNodeAttrs ¶
GetNodeAttrs returns labels and fields of a given object for filtering purposes.
func GetPodAttrs ¶
GetPodAttrs returns labels and fields of a given object for filtering purposes.
func NewListCoreV1Namespace ¶
func NewListCoreV1Namespace() core_v1.ListCoreV1NamespaceHandler
func NewListCoreV1Node ¶
func NewListCoreV1Node() core_v1.ListCoreV1NodeHandler
func NewListCoreV1Pod ¶
func NewListCoreV1Pod() core_v1.ListCoreV1PodForAllNamespacesHandler
func NewListCoreV1Service ¶
func NewListCoreV1Service() core_v1.ListCoreV1ServiceForAllNamespacesHandler
func NewNodesMgr ¶
func NewNodesMgr(cnMgr encoders.ObjHandler) management.PostManagementKubernetesIoV1NodesHandler
func NewPatchCoreV1Node ¶
func NewPatchCoreV1Node() core_v1.PatchCoreV1NodeHandler
func NewPatchCoreV1NodeStatus ¶
func NewPatchCoreV1NodeStatus() core_v1.PatchCoreV1NodeStatusHandler
func NewPodsMgr ¶
func NewPodsMgr(cepMgr encoders.ObjHandler) management.PostManagementKubernetesIoV1PodsHandler
func NewReadCoreV1Namespace ¶
func NewReadCoreV1Namespace() core_v1.ReadCoreV1NamespaceHandler
func NewReadCoreV1Node ¶
func NewReadCoreV1Node() core_v1.ReadCoreV1NodeHandler
func NodeToSelectableFields ¶
NodeToSelectableFields returns a field set that represents the object.
Types ¶
type NamespaceConfig ¶
type NamespaceMgr ¶
func (*NamespaceMgr) AddElements ¶
func (n *NamespaceMgr) AddElements(elem int64) int64
func (*NamespaceMgr) List ¶
func (n *NamespaceMgr) List(start, limit int64) (k8sRuntime.Object, error)
func (*NamespaceMgr) NewInterface ¶
func (*NamespaceMgr) NewInterface() k8sRuntime.Object
func (*NamespaceMgr) NewListInterface ¶
func (*NamespaceMgr) NewListInterface() k8sRuntime.Object
func (*NamespaceMgr) SetList ¶
func (n *NamespaceMgr) SetList(obj k8sRuntime.Object) error
func (*NamespaceMgr) SetObj ¶
func (n *NamespaceMgr) SetObj(obj k8sRuntime.Object) error
type NodeConfig ¶
type NodeMgr ¶
func (*NodeMgr) AddElements ¶
func (*NodeMgr) GenObjs ¶
func (n *NodeMgr) GenObjs(start, maxElemts int64) <-chan k8sRuntime.Object
func (*NodeMgr) NewInterface ¶
func (*NodeMgr) NewInterface() k8sRuntime.Object
func (*NodeMgr) NewListInterface ¶
func (*NodeMgr) NewListInterface() k8sRuntime.Object
func (*NodeMgr) Stream ¶
func (n *NodeMgr) Stream() chan k8sRuntime.Object
type PodMgr ¶
func (*PodMgr) AddElements ¶
func (*PodMgr) NewInterface ¶
func (*PodMgr) NewInterface() k8sRuntime.Object
func (*PodMgr) NewListInterface ¶
func (*PodMgr) NewListInterface() k8sRuntime.Object
func (*PodMgr) Stream ¶
func (p *PodMgr) Stream() chan k8sRuntime.Object
type ServiceConfig ¶
type ServiceMgr ¶
func (*ServiceMgr) AddElements ¶
func (svcMgr *ServiceMgr) AddElements(elem int64) int64
func (*ServiceMgr) List ¶
func (svcMgr *ServiceMgr) List(start, limit int64) (k8sRuntime.Object, error)
func (*ServiceMgr) NewInterface ¶
func (*ServiceMgr) NewInterface() k8sRuntime.Object
func (*ServiceMgr) NewListInterface ¶
func (*ServiceMgr) NewListInterface() k8sRuntime.Object
func (*ServiceMgr) SetList ¶
func (svcMgr *ServiceMgr) SetList(obj k8sRuntime.Object) error
func (*ServiceMgr) SetObj ¶
func (svcMgr *ServiceMgr) SetObj(obj k8sRuntime.Object) error
Click to show internal directories.
Click to hide internal directories.