Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ResourceKinds = make(map[string]ResourceKind)
)
Functions ¶
This section is empty.
Types ¶
type Cluster ¶
type Cluster struct { Client extendedClient Mgrs *operatorutil.MgrList Applier Applier Describer Describer Mu sync.Mutex Scaler Scaler }
Cluster is a handle to a Kubernetes API server. (Typically, this code is deployed into the same cluster.)
func NewCluster ¶
func NewCluster( clientset k8sclient.Interface, v1CrdClientSet v1_versioned.Interface, v1alpha1ClientSet v1alpha1_versioned.Interface, mgrs *operatorutil.MgrList, applier Applier, describer Describer, scaler Scaler) *Cluster
NewCluster returns a usable cluster.
func (*Cluster) DescribeResource ¶
func (*Cluster) ScaleResource ¶
type K8sObject ¶
type K8sObject interface { GetName() string GetNamespace() string GetLabels() map[string]string GetAnnotations() map[string]string }
k8sObject represents an value from which you can obtain typical Kubernetes metadata. These methods are implemented by the Kubernetes API resource types.
type Manifests ¶
type Manifests struct { }
func (*Manifests) LoadManifests ¶
func (*Manifests) ParseManifests ¶
type ResourceError ¶
type ResourceKind ¶
type ResourceKind interface {
GetResources(c *Cluster, namespace string) ([]K8sResource, error)
}
type SyncAction ¶
SyncAction represents either the deletion or application (create or update) of a resource.
type SyncDef ¶
type SyncDef struct { // The actions to undertake Actions []SyncAction }
Click to show internal directories.
Click to hide internal directories.