jx: github.com/jenkins-x/jx/pkg/io/secrets Index | Files

package secrets

import "github.com/jenkins-x/jx/pkg/io/secrets"

Index

Package Files

secret_locations.go

Constants

const (
    // SecretsLocationKey key in the config map which stored the location where the secrets are stored
    SecretsLocationKey = "secretsLocation"
)

type SecretLocation Uses

type SecretLocation interface {
    // Location returns the location where the secrets are stored
    Location() SecretsLocationKind
    // SecretLocation configure the secrets location. It will save the
    // value in a config map if persist flag is set.
    SetLocation(location SecretsLocationKind, persist bool) error
}

SecretLocation interfaces to identify where is the secrets location

func NewSecretLocation Uses

func NewSecretLocation(kubeClient kubernetes.Interface, namespace string) SecretLocation

NewSecretLocation creates a SecretLocation

type SecretsLocationKind Uses

type SecretsLocationKind string

SecretsLocationKind type for secrets location kind

const (
    // FileSystemLocationKind indicates that secrets location is the file system
    FileSystemLocationKind SecretsLocationKind = "local"
    // VaultLocationKind indicates that secrets location is vault
    VaultLocationKind SecretsLocationKind = "vault"
    // KubeLocationKind inidcates that secrets location is in Kuberntes
    KubeLocationKind SecretsLocationKind = "kube"
    // AutoLocationKind indicates that secrets location needs to be dynamically determine
    AutoLocationKind SecretsLocationKind = "auto"
)

func ToSecretsLocation Uses

func ToSecretsLocation(location string) SecretsLocationKind

ToSecretsLocation converts a string to a SecretsLocationKind

Package secrets imports 4 packages (graph) and is imported by 14 packages. Updated 2019-09-01. Refresh now. Tools for package owners.