kubesecret

package
v0.0.0-...-e7c744b Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateKubeSecret

func CreateKubeSecret(req KubeSecretRequest) (v1.Secret, error)

CreateKubeSecret creates a Kubernetes Secret object from a Secret.

Types

type KubeSecretRequest

type KubeSecretRequest struct {
	Name      string
	Namespace string
	Type      string
	Values    map[string]string
	Spec      KubeSecretSpec
}

KubeSecretRequest contains details for a Kubernetes Secret creation from pipeline secrets.

type KubeSecretSpec

type KubeSecretSpec map[string]KubeSecretSpecItem

type KubeSecretSpecItem

type KubeSecretSpecItem struct {
	Source    string
	SourceMap map[string]string
	Value     string
}

type KubeSecretStore

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

func MakeKubeSecretStore

func MakeKubeSecretStore(secrets SecretStore) KubeSecretStore

func (KubeSecretStore) Get

func (s KubeSecretStore) Get(organizationID uint, k8sSecretID string) ([]byte, error)

type SecretStore

type SecretStore interface {
	Get(organizationID uint, secretID string) (*secret.SecretItemResponse, error)
}

Jump to

Keyboard shortcuts

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