Documentation ¶
Index ¶
- type AppsV1
- type Deployment
- func (d *Deployment) Create(deployment *appsv1.Deployment) error
- func (d *Deployment) Delete(deploymentName string) error
- func (d *Deployment) Get(deploymentName string) (*appsv1.Deployment, error)
- func (d *Deployment) List() (*appsv1.DeploymentList, error)
- func (d *Deployment) Namespace(namespace string) *Deployment
- func (d *Deployment) Update(deployment *appsv1.Deployment) error
- type ReplicaSet
- func (d *ReplicaSet) Create(replicaSet *appsv1.ReplicaSet) error
- func (d *ReplicaSet) Delete(replicaSetName string) error
- func (d *ReplicaSet) Get(replicaSetName string) (*appsv1.ReplicaSet, error)
- func (d *ReplicaSet) List() (*appsv1.ReplicaSetList, error)
- func (d *ReplicaSet) Namespace(namespace string) *ReplicaSet
- func (d *ReplicaSet) Update(replicaSet *appsv1.ReplicaSet) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppsV1 ¶
type AppsV1 struct { Deployment *Deployment ReplicaSet *ReplicaSet }
AppsV1 struct for access to batchv1 api
func NewAppsV1 ¶
func NewAppsV1(client appsInterface.AppsV1Interface) *AppsV1
NewAppsV1 return a batch v1 api
type Deployment ¶
type Deployment struct { CurrentNamespace string // contains filtered or unexported fields }
Deployment strct for deployments action
func NewDeploymentAction ¶
func NewDeploymentAction(client appsInterface.AppsV1Interface) *Deployment
NewDeploymentAction get a deployment action
func (*Deployment) Create ¶
func (d *Deployment) Create(deployment *appsv1.Deployment) error
Create Create a deployment in the client
func (*Deployment) Delete ¶
func (d *Deployment) Delete(deploymentName string) error
Delete Delete a deployment in the client
func (*Deployment) Get ¶
func (d *Deployment) Get(deploymentName string) (*appsv1.Deployment, error)
Get Get a deployment from the client
func (*Deployment) List ¶
func (d *Deployment) List() (*appsv1.DeploymentList, error)
List List all deployments in a namespace
func (*Deployment) Namespace ¶
func (d *Deployment) Namespace(namespace string) *Deployment
Namespace set namespace
func (*Deployment) Update ¶
func (d *Deployment) Update(deployment *appsv1.Deployment) error
Update Update a deployment in the client
type ReplicaSet ¶
type ReplicaSet struct { CurrentNamespace string // contains filtered or unexported fields }
ReplicaSet strct for replicaSets action
func NewReplicaSetAction ¶
func NewReplicaSetAction(client appsInterface.AppsV1Interface) *ReplicaSet
NewReplicaSetAction get a replicaSet action
func (*ReplicaSet) Create ¶
func (d *ReplicaSet) Create(replicaSet *appsv1.ReplicaSet) error
Create Create a replicaSet in the client
func (*ReplicaSet) Delete ¶
func (d *ReplicaSet) Delete(replicaSetName string) error
Delete Delete a replicaSet in the client
func (*ReplicaSet) Get ¶
func (d *ReplicaSet) Get(replicaSetName string) (*appsv1.ReplicaSet, error)
Get Get a replicaSet from the client
func (*ReplicaSet) List ¶
func (d *ReplicaSet) List() (*appsv1.ReplicaSetList, error)
List List all replicaSets in a namespace
func (*ReplicaSet) Namespace ¶
func (d *ReplicaSet) Namespace(namespace string) *ReplicaSet
Namespace set namespace
func (*ReplicaSet) Update ¶
func (d *ReplicaSet) Update(replicaSet *appsv1.ReplicaSet) error
Update Update a replicaSet in the client