Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DeploymentKind = resource.Kind{ Group: "apps", Version: "v1beta1", Kind: "Deployment", Scoped: true, }
View Source
var DeploymentResource = resource.Type{ Kind: DeploymentKind, Name: "deployments", }
View Source
var StatefulSetKind = resource.Kind{ Group: "apps", Version: "v1beta1", Kind: "StatefulSet", Scoped: true, }
View Source
var StatefulSetResource = resource.Type{ Kind: StatefulSetKind, Name: "statefulsets", }
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { DeploymentsClient StatefulSetsClient }
type Deployment ¶
type Deployment struct { *resource.Resource Object *appsv1beta1.Deployment appsv1.ReplicaSetsReference corev1.PodsReference }
func NewDeployment ¶
func NewDeployment(deployment *appsv1beta1.Deployment, client resource.Client) *Deployment
func (*Deployment) Delete ¶
func (r *Deployment) Delete() error
type DeploymentsClient ¶
type DeploymentsClient interface {
Deployments() DeploymentsReader
}
func NewDeploymentsClient ¶
func NewDeploymentsClient(resources resource.Client, filter resource.Filter) DeploymentsClient
type DeploymentsReader ¶
type DeploymentsReader interface { Get(name string) (*Deployment, error) List() ([]*Deployment, error) }
func NewDeploymentsReader ¶
func NewDeploymentsReader(client resource.Client, filter resource.Filter) DeploymentsReader
type StatefulSet ¶
type StatefulSet struct { *resource.Resource Object *appsv1beta1.StatefulSet appsv1.ReplicaSetsReference corev1.PodsReference }
func NewStatefulSet ¶
func NewStatefulSet(statefulSet *appsv1beta1.StatefulSet, client resource.Client) *StatefulSet
func (*StatefulSet) Delete ¶
func (r *StatefulSet) Delete() error
type StatefulSetsClient ¶
type StatefulSetsClient interface {
StatefulSets() StatefulSetsReader
}
func NewStatefulSetsClient ¶
func NewStatefulSetsClient(resources resource.Client, filter resource.Filter) StatefulSetsClient
type StatefulSetsReader ¶
type StatefulSetsReader interface { Get(name string) (*StatefulSet, error) List() ([]*StatefulSet, error) }
func NewStatefulSetsReader ¶
func NewStatefulSetsReader(client resource.Client, filter resource.Filter) StatefulSetsReader
Click to show internal directories.
Click to hide internal directories.