secrets

package
v0.0.0-...-595ddb3 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Seal

func Seal(secret string, kubesealArgs string) ([]byte, error)

Seal runs the kubeseal client to create the sealed secret.

Types

type Handler

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

Handler handles our secrets operations.

func NewHandler

func NewHandler(clientConfig clientcmd.ClientConfig, outputFormat string) (*Handler, error)

NewHandler creates a new secrets handler.

func (*Handler) Decode

func (h *Handler) Decode(data string) ([]byte, error)

Decode decodes the data field in a secret.

func (*Handler) Encode

func (h *Handler) Encode(data string) ([]byte, error)

Encode encodes the data field in a secret.

func (*Handler) GetSecret

func (h *Handler) GetSecret(namespace, name string) ([]byte, error)

GetSecret returns a secret by name in the given namespace.

func (*Handler) List

func (h *Handler) List() (map[string]interface{}, error)

List returns a list of all secrets.

Jump to

Keyboard shortcuts

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