secret

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: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

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

Create will create a secret

Args:

  • Pointer to a Client struct
  • Point to the Instance struct

Returns:

error or nil

func Exists

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

Exists will check if thsee secret exists or not

Args:

  • Pointer to a Client struct
  • secret name
  • namespace name

Returns:

string (namespace name) OR error type

Types

type Instance

type Instance struct {
	Name      string
	Namespace string
	Type      string
	Key       string
	Value     string
}

Instance struct for secret

Jump to

Keyboard shortcuts

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