k8s

package
v0.0.0-...-877ff3d Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultTimeout = 5 * time.Second
)

Functions

This section is empty.

Types

type K8s

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

K8s implements kubernetes store It stores the secrets in kubernetes secret under provided secret key

func NewStore

func NewStore(secret, key, ns string) (*K8s, error)

NewStore creates a new Kubernetes secret store handle and returns it. It returns error if the kubernetes client fails to be initialized.

func (*K8s) Read

func (k *K8s) Read(b []byte) (int, error)

Read reads data from k8s store

func (*K8s) Write

func (k *K8s) Write(b []byte) (int, error)

Write writes data to K8s store

Jump to

Keyboard shortcuts

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