GetOrSetSecret
Method
func (UserSecretsManager) GetOrSetSecret( resourceBuilder Resource, name string, value string,) errorSignature
method
GetOrSetSecret Gets a secret value if it exists in configuration, or sets it to the provided value if it does not.
GetOrSetSecret( resourceBuilder Resource, name string, value string,) errorParameters
resourceBuilder ResourceA resource builder from the target application.namestringThe secret name.valuestringThe value to persist when the secret is missing.Returns
errorReturns error.
Applies to
This method applies to the following types: