v1

package
v1.6.20 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 17, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DaemonSetKind = resource.Kind{
	Group:   "apps",
	Version: "v1",
	Kind:    "DaemonSet",
	Scoped:  true,
}
View Source
var DaemonSetResource = resource.Type{
	Kind: DaemonSetKind,
	Name: "daemonsets",
}
View Source
var DeploymentKind = resource.Kind{
	Group:   "apps",
	Version: "v1",
	Kind:    "Deployment",
	Scoped:  true,
}
View Source
var DeploymentResource = resource.Type{
	Kind: DeploymentKind,
	Name: "deployments",
}
View Source
var ReplicaSetKind = resource.Kind{
	Group:   "apps",
	Version: "v1",
	Kind:    "ReplicaSet",
	Scoped:  true,
}
View Source
var ReplicaSetResource = resource.Type{
	Kind: ReplicaSetKind,
	Name: "replicasets",
}
View Source
var StatefulSetKind = resource.Kind{
	Group:   "apps",
	Version: "v1",
	Kind:    "StatefulSet",
	Scoped:  true,
}
View Source
var StatefulSetResource = resource.Type{
	Kind: StatefulSetKind,
	Name: "statefulsets",
}

Functions

This section is empty.

Types

type Client

func NewClient

func NewClient(resources resource.Client, filter resource.Filter) Client

type DaemonSet

type DaemonSet struct {
	*resource.Resource
	Object *appsv1.DaemonSet
	corev1.PodsReference
}

func NewDaemonSet

func NewDaemonSet(daemonSet *appsv1.DaemonSet, client resource.Client) *DaemonSet

func (*DaemonSet) Delete

func (r *DaemonSet) Delete(ctx context.Context) error

type DaemonSetsClient

type DaemonSetsClient interface {
	DaemonSets() DaemonSetsReader
}

func NewDaemonSetsClient

func NewDaemonSetsClient(resources resource.Client, filter resource.Filter) DaemonSetsClient

type DaemonSetsReader

type DaemonSetsReader interface {
	Get(ctx context.Context, name string) (*DaemonSet, error)
	List(ctx context.Context) ([]*DaemonSet, error)
}

func NewDaemonSetsReader

func NewDaemonSetsReader(client resource.Client, filter resource.Filter) DaemonSetsReader

type Deployment

type Deployment struct {
	*resource.Resource
	Object *appsv1.Deployment
	ReplicaSetsReference
}

func NewDeployment

func NewDeployment(deployment *appsv1.Deployment, client resource.Client) *Deployment

func (*Deployment) Delete

func (r *Deployment) Delete(ctx context.Context) error

func (*Deployment) Wait

func (d *Deployment) Wait(ctx context.Context, timeout time.Duration) error

Wait waits for the Deployment to be ready

type DeploymentsClient

type DeploymentsClient interface {
	Deployments() DeploymentsReader
}

func NewDeploymentsClient

func NewDeploymentsClient(resources resource.Client, filter resource.Filter) DeploymentsClient

type DeploymentsReader

type DeploymentsReader interface {
	Get(ctx context.Context, name string) (*Deployment, error)
	List(ctx context.Context) ([]*Deployment, error)
}

func NewDeploymentsReader

func NewDeploymentsReader(client resource.Client, filter resource.Filter) DeploymentsReader

type ReplicaSet

type ReplicaSet struct {
	*resource.Resource
	Object *appsv1.ReplicaSet
	corev1.PodsReference
}

func NewReplicaSet

func NewReplicaSet(replicaSet *appsv1.ReplicaSet, client resource.Client) *ReplicaSet

func (*ReplicaSet) Delete

func (r *ReplicaSet) Delete(ctx context.Context) error

type ReplicaSetsClient

type ReplicaSetsClient interface {
	ReplicaSets() ReplicaSetsReader
}

func NewReplicaSetsClient

func NewReplicaSetsClient(resources resource.Client, filter resource.Filter) ReplicaSetsClient

type ReplicaSetsReader

type ReplicaSetsReader interface {
	Get(ctx context.Context, name string) (*ReplicaSet, error)
	List(ctx context.Context) ([]*ReplicaSet, error)
}

func NewReplicaSetsReader

func NewReplicaSetsReader(client resource.Client, filter resource.Filter) ReplicaSetsReader

type ReplicaSetsReference

type ReplicaSetsReference interface {
	ReplicaSets() ReplicaSetsReader
	corev1.PodsReference
}

func NewReplicaSetsReference

func NewReplicaSetsReference(resources resource.Client, filter resource.Filter) ReplicaSetsReference

type StatefulSet

type StatefulSet struct {
	*resource.Resource
	Object *appsv1.StatefulSet
	corev1.PodsReference
}

func NewStatefulSet

func NewStatefulSet(statefulSet *appsv1.StatefulSet, client resource.Client) *StatefulSet

func (*StatefulSet) Delete

func (r *StatefulSet) Delete(ctx context.Context) error

func (*StatefulSet) Wait

func (s *StatefulSet) Wait(ctx context.Context, timeout time.Duration) error

Wait waits for the StatefulSet to be ready

type StatefulSetsClient

type StatefulSetsClient interface {
	StatefulSets() StatefulSetsReader
}

func NewStatefulSetsClient

func NewStatefulSetsClient(resources resource.Client, filter resource.Filter) StatefulSetsClient

type StatefulSetsReader

type StatefulSetsReader interface {
	Get(ctx context.Context, name string) (*StatefulSet, error)
	List(ctx context.Context) ([]*StatefulSet, error)
}

func NewStatefulSetsReader

func NewStatefulSetsReader(client resource.Client, filter resource.Filter) StatefulSetsReader

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL