secrets

package
v0.0.7 Latest Latest
Warning

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

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

Documentation

Overview

Package secrets provides implementation of Secret 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 Secrets deprecated

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

Secrets provides API for manipulating Secret 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) *Secrets

New creates a new instance backed by the provided client

Deprecated: No longer used.

func (*Secrets) Apply deprecated

func (obj *Secrets) Apply(yaml string, namespace string) (k8sTypes.Secret, error)

Apply creates the Kubernetes resource given the supplied YAML configuration

Deprecated: Use resources.Apply instead.

func (*Secrets) Create deprecated

func (obj *Secrets) Create(
	secret k8sTypes.Secret,
	namespace string,
	opts metav1.CreateOptions,
) (k8sTypes.Secret, error)

Create creates the Kubernetes resource given the supplied object

Deprecated: Use resources.Create instead.

func (*Secrets) Delete deprecated

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

Delete removes the named Secret from the namespace

Deprecated: Use resources.Delete instead.

func (*Secrets) Get deprecated

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

Get returns the named Secrets instance within the namespace if available

Deprecated: Use resources.Get instead.

func (*Secrets) Kill deprecated

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

Kill removes the named Secret from the namespace

Deprecated: Use resources.Delete instead.

func (*Secrets) List deprecated

func (obj *Secrets) List(namespace string) ([]k8sTypes.Secret, error)

List returns a collection of Secrets 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