configmaps

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package configmaps provides implementation of ConfigMap resources for Kubernetes

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigMaps

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

ConfigMaps provides API for manipulating ConfigMap resources within a Kubernetes cluster

func New

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

New creates a new instance backed by the provided client

func (*ConfigMaps) Apply

func (obj *ConfigMaps) Apply(yaml string, namespace string) (k8sTypes.ConfigMap, error)

Apply creates the Kubernetes resource given the supplied YAML configuration

func (*ConfigMaps) Create

func (obj *ConfigMaps) Create(
	configMap k8sTypes.ConfigMap,
	namespace string,
	opts metav1.CreateOptions,
) (k8sTypes.ConfigMap, error)

Create creates the Kubernetes resource given the supplied object

func (*ConfigMaps) Delete

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

Delete removes the named ConfigMap from the namespace

func (*ConfigMaps) Get

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

Get returns the named ConfigMaps instance within the namespace if available

func (*ConfigMaps) Kill

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

Kill removes the named ConfigMap from the namespace Deprecated: Use Delete instead.

func (*ConfigMaps) List

func (obj *ConfigMaps) List(namespace string) ([]k8sTypes.ConfigMap, error)

List returns a collection of ConfigMaps available within the namespace

Jump to

Keyboard shortcuts

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