secret

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2018 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// SSLCertificateChainKey represents the key to identify certificate chain in the secret
	SSLCertificateChainKey = "ca_chain"
	// SSLPrivateKeyKey represents the key to identify private key in the secret
	SSLPrivateKeyKey = "private_key"
)
View Source
const (
	// GoogleAnnotationKey is the key for annotation used in Google upstream
	GoogleAnnotationKey = "gloo.solo.io/google_secret_ref"
)
View Source
const (
	ServiceAccountJsonKeyFile = "json_key_file"
)

Variables

This section is empty.

Functions

func CreateAWS

func CreateAWS(si dependencies.SecretStorage, opts *AWSOptions) error

CreateAWS creates secrets that can be used by AWS upstream type

func CreateCertificate

func CreateCertificate(si dependencies.SecretStorage, opts *CertificateOptions) error

CreateCertificate creates a secret representing SSL certificate

func CreateGoogle

func CreateGoogle(si dependencies.SecretStorage, opts *GoogleOptions) error

CreateGoogle creates a secret for function discovery service to use

func Get

Get gets a secret with given name or all secrets if no name is provided and prints them and their usage

func PrintTableWithUsage

func PrintTableWithUsage(list []*dependencies.Secret, w io.Writer, u []*v1.Upstream, v []*v1.VirtualService)

PrintTableWithUsage prints secrets and their usage

func SecretRefs

func SecretRefs(si dependencies.SecretStorage, filter func(*dependencies.Secret) bool) ([]string, error)

SecretRefs returns a list of secret references filtered using the provided filter

Types

type AWSOptions

type AWSOptions struct {
	Name      string
	Filename  string
	KeyID     string
	SecretKey string
	UseEnv    bool
}

AWSOptions represents parameters for creating AWS secret

type CertificateOptions

type CertificateOptions struct {
	Name       string
	CAChain    string
	PrivateKey string
}

CertificateOptions represents parameters for creating secrets representing SSL certificates

type GoogleOptions

type GoogleOptions struct {
	Name     string
	Filename string
}

GoogleOptions represents the parameters needed to create secret for Google

Jump to

Keyboard shortcuts

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