Documentation ¶
Index ¶
- Constants
- func CreateAWS(si dependencies.SecretStorage, opts *AWSOptions) error
- func CreateCertificate(si dependencies.SecretStorage, opts *CertificateOptions) error
- func CreateGoogle(si dependencies.SecretStorage, opts *GoogleOptions) error
- func Get(sc storage.Interface, si dependencies.SecretStorage, name string) error
- func PrintTableWithUsage(list []*dependencies.Secret, w io.Writer, u []*v1.Upstream, ...)
- func SecretRefs(si dependencies.SecretStorage, filter func(*dependencies.Secret) bool) ([]string, error)
- type AWSOptions
- type CertificateOptions
- type GoogleOptions
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 ¶
func Get(sc storage.Interface, si dependencies.SecretStorage, name string) error
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 ¶
AWSOptions represents parameters for creating AWS secret
type CertificateOptions ¶
CertificateOptions represents parameters for creating secrets representing SSL certificates
type GoogleOptions ¶
GoogleOptions represents the parameters needed to create secret for Google
Click to show internal directories.
Click to hide internal directories.