Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeploymentService ¶
type DeploymentService struct { /* Project is the unique project identifier number within Google Cloud Platform. The string is used as part of the request string that will be sent to the GCP secret store. */ ProjectID string }
SecretStore is the base struct of our authentication.SecretStore interface implemetation Basically a wrapper for the google cloud API
func NewSecretHandler ¶ added in v0.7.0
func NewSecretHandler() (ds *DeploymentService)
func (DeploymentService) GetSecret ¶
func (ds DeploymentService) GetSecret(SecretName string) func(version string) (secret string)
GetSecret looks up the secret from the store and updates its value in the map project is the project id (ours is a 12 digit int) key is the name of the stored data version is the fixed version number i.e. "5" or the current value "latest"
Click to show internal directories.
Click to hide internal directories.