configmap

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(c *client.Client, cm *Instance) error

Create creates a configmap using the values from the ConfigMap struct via the Client.Clientset

Args:

 ConfigMap - ConfigMap struct
 Client  - Client strucut

Returns:
   error or nil

func Delete

func Delete(c *client.Client, configmap string, namespace string) error

Delete deletes a configmap

Args:

	Client - client struct from the client module
	configmap - ConigMap Name
	namespace - Namespace

  Returns:
     error or nil

func Exists

func Exists(c *client.Client, configmap string, namespace string) (string, error)

Exists will check if the configmap exists or not

Args:

  • Pointer to a Client struct

Returns:

string (namespace name) OR error type

func ListAll

func ListAll(c *client.Client) (*v1.ConfigMapList, error)

ListAll will list all ConfigMaps

Args:

  • Client struct from client module

Returns:

  • pointer v1.ConfigMapList or error

func Show

func Show(c *client.Client, configmap string, namespace string) (*v1.ConfigMap, error)

Show will list all ConfigMaps

Args:

  • Client struct from client module

Returns:

  • pointer v1.ConfigMapList or error

Types

type Instance

type Instance struct {
	Name        string
	Namespace   string
	ConfigKey   string
	ConfigValue string
}

Instance type refers to the ConfigMap object

Jump to

Keyboard shortcuts

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