Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DaemonSetController ¶
type DaemonSetController extensions.DaemonSet
DaemonSetController is an alias-type for Kubernetes API Daemon Set type. It allows to provide custom set of functions for already existing type.
func (DaemonSetController) Get ¶
func (self DaemonSetController) Get(allPods []api.Pod, allEvents []api.Event) ResourceOwner
Get is an implementation of Get method from ResourceController interface.
type JobController ¶
JobController is an alias-type for Kubernetes API Job type. It allows to provide custom set of functions for already existing type.
func (JobController) Get ¶
func (self JobController) Get(allPods []api.Pod, allEvents []api.Event) ResourceOwner
Get is an implementation of Get method from ResourceController interface.
type ReplicaSetController ¶
type ReplicaSetController extensions.ReplicaSet
ReplicaSetController is an alias-type for Kubernetes API Replica Set type. It allows to provide custom set of functions for already existing type.
func (ReplicaSetController) Get ¶
func (self ReplicaSetController) Get(allPods []api.Pod, allEvents []api.Event) ResourceOwner
Get is an implementation of Get method from ResourceController interface.
type ReplicationControllerController ¶
type ReplicationControllerController api.ReplicationController
ReplicationControllerController is an alias-type for Kubernetes API Replication Controller type. It allows to provide custom set of functions for already existing type.
func (ReplicationControllerController) Get ¶
func (self ReplicationControllerController) Get(allPods []api.Pod, allEvents []api.Event) ResourceOwner
Get is an implementation of Get method from ResourceController interface.
type ResourceController ¶
type ResourceController interface { // Get is a method, that returns ResourceOwner object. Get(allPods []api.Pod, allEvents []api.Event) ResourceOwner }
ResourceController is an interface, that allows to perform operations on resource controller. To instantiate it use NewResourceController and pass object reference to it. It may be extended to provide more detailed set of functions.
func NewResourceController ¶
func NewResourceController(reference api.ObjectReference, client kubernetes.Interface) ( ResourceController, error)
NewResourceController creates instance of ResourceController based on given reference. It allows to convert owner/created by references to real objects.
type ResourceOwner ¶
type ResourceOwner struct { ObjectMeta common.ObjectMeta `json:"objectMeta"` TypeMeta common.TypeMeta `json:"typeMeta"` Pods common.PodInfo `json:"pods"` ContainerImages []string `json:"containerImages"` }
ResourceOwner is an structure representing resource owner, it may be Replication Controller, Daemon Set, Job etc.
type StatefulSetController ¶
type StatefulSetController apps.StatefulSet
StatefulSetController is an alias-type for Kubernetes API Stateful Set type. It allows to provide custom set of functions for already existing type.
func (StatefulSetController) Get ¶
func (self StatefulSetController) Get(allPods []api.Pod, allEvents []api.Event) ResourceOwner
Get is an implementation of Get method from ResourceController interface.