Documentation
¶
Overview ¶
Package gcpsm provides a Google Cloud Secret Manager provider.
Index ¶
- Constants
- func New(override, rawValue bool, config *Config, secretInformation *SecretInformation) (provider.IProvider, error)
- func NewWithConfig(override, rawValue bool, config *Config, secretInformation *SecretInformation, ...) (provider.IProvider, error)
- type Config
- type GCPSM
- type SecretInformation
Constants ¶
View Source
const Name = "gcpsm"
Name of the provider.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New( override, rawValue bool, config *Config, secretInformation *SecretInformation, ) (provider.IProvider, error)
New creates a Google Cloud Secret Manager provider using Application Default Credentials.
func NewWithConfig ¶
func NewWithConfig( override, rawValue bool, config *Config, secretInformation *SecretInformation, clientOptions ...googleoption.ClientOption, ) (provider.IProvider, error)
NewWithConfig creates a Google Cloud Secret Manager provider with additional Google API client options. When no options are supplied, Application Default Credentials are used.
Types ¶
type Config ¶
type Config struct {
ProjectID string `json:"project_id" validate:"required,gte=1"`
}
Config contains Google Cloud configuration settings.
type GCPSM ¶
type GCPSM struct {
*provider.Provider `json:"-" validate:"required"`
*Config `json:"-" validate:"required"`
*SecretInformation `json:"-" validate:"required"`
// contains filtered or unexported fields
}
GCPSM provider definition.
type SecretInformation ¶
type SecretInformation struct {
SecretNames []string `json:"secret_names" validate:"required,gte=1,dive,required"`
}
SecretInformation contains information about which secrets to retrieve.
Click to show internal directories.
Click to hide internal directories.