deployments

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package deployments provides implementation of Deployment resources for Kubernetes

Deprecated: Use the resources package instead.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Deployments deprecated

type Deployments struct {
	// contains filtered or unexported fields
}

Deployments provides API for manipulating Deployment resources within a Kubernetes cluster

Deprecated: No longer used in favor of generic resources.

func New deprecated

func New(ctx context.Context, client kubernetes.Interface, metaOptions metav1.ListOptions) *Deployments

New creates a new instance backed by the provided client

Deprecated: No longer used.

func (*Deployments) Apply deprecated

func (obj *Deployments) Apply(yaml string, namespace string) (k8sTypes.Deployment, error)

Apply creates the Kubernetes resource given the supplied YAML configuration

Deprecated: Use resources.Apply instead.

func (*Deployments) Create deprecated

func (obj *Deployments) Create(
	deployment k8sTypes.Deployment,
	namespace string,
	opts metav1.CreateOptions,
) (k8sTypes.Deployment, error)

Create creates the Kubernetes resource given the supplied object

Deprecated: Use resources.Create instead.

func (*Deployments) Delete deprecated

func (obj *Deployments) Delete(name, namespace string, opts metav1.DeleteOptions) error

Delete removes the named Deployment from the namespace

Deprecated: Use resources.Delete instead.

func (*Deployments) Get deprecated

func (obj *Deployments) Get(name, namespace string, opts metav1.GetOptions) (k8sTypes.Deployment, error)

Get returns the named Deployments instance within the namespace if available

Deprecated: Use resources.Get instead.

func (*Deployments) Kill deprecated

func (obj *Deployments) Kill(name, namespace string, opts metav1.DeleteOptions) error

Kill removes the named Deployment from the namespace

Deprecated: Use resources.Delete instead.

func (*Deployments) List deprecated

func (obj *Deployments) List(namespace string) ([]k8sTypes.Deployment, error)

List returns a collection of Deployments available within the namespace

Deprecated: Use resources.List instead.

Jump to

Keyboard shortcuts

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