Documentation
¶
Index ¶
- Constants
- type GCP
- func (g *GCP) Close() error
- func (g *GCP) CreateSecret(ctx context.Context, secret *Secret) (err error)
- func (g *GCP) DeleteSecret(ctx context.Context, secret *Secret) (err error)
- func (g *GCP) ListSecrets(ctx context.Context, namespace string) (Iterator, error)
- func (g *GCP) RetrieveSecret(ctx context.Context, secret *Secret) (err error)
- func (g *GCP) SecretName(secret *Secret) string
- func (g *GCP) SecretParent(secret *Secret) string
- type GoogleSecretIterator
- type Iterator
- type NamespaceFactory
- type Secret
Constants ¶
View Source
const ( DefaultTimeout = 30 * time.Second DefaultPageSize = 100 AnnotationContentType = "content_type" )
View Source
const ( PEMFile = "application/x-pem-file" X509Certificate = "application/x-x509-user-cert" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GCP ¶
type GCP struct {
// contains filtered or unexported fields
}
func (*GCP) CreateSecret ¶
func (*GCP) DeleteSecret ¶
func (*GCP) ListSecrets ¶
func (*GCP) RetrieveSecret ¶
func (*GCP) SecretName ¶
func (*GCP) SecretParent ¶
type GoogleSecretIterator ¶
type GoogleSecretIterator struct {
// contains filtered or unexported fields
}
func (*GoogleSecretIterator) Close ¶
func (i *GoogleSecretIterator) Close() error
func (*GoogleSecretIterator) Err ¶
func (i *GoogleSecretIterator) Err() error
func (*GoogleSecretIterator) Next ¶
func (i *GoogleSecretIterator) Next() bool
func (*GoogleSecretIterator) Secret ¶
func (i *GoogleSecretIterator) Secret() *Secret
type NamespaceFactory ¶
func WithNamespace ¶
func WithNamespace(namespace string) NamespaceFactory
type Secret ¶
type Secret struct { Namespace string `json:"namespace,omitempty"` Name string `json:"name"` ContentType string `json:"content_type"` Data []byte `json:"data"` Created time.Time `json:"created,omitempty"` }
Secret represents a generic blob of data that can be stored in a secrets manager such as Hashicorp Vault or Google Secret Manager. The name and optional namespace are used to uniquely identify the secret and the content type is used to parse the secret data blob.
Click to show internal directories.
Click to hide internal directories.