Documentation
¶
Index ¶
- type SecretService
- func (ss *SecretService) Err() error
- func (ss *SecretService) IsSecretInCache(secretName string) (inCache bool, _ map[core.EnvironmentName]core.SecretValue)
- func (ss *SecretService) SetValuesForEnvironments(secretName, secretValue string, environments []models.Environment, ...) (map[string]string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SecretService ¶
type SecretService struct {
// contains filtered or unexported fields
}
func NewSecretService ¶
func NewSecretService(ctx *core.Context) *SecretService
NewSecretService function returns a new SecretService
func (*SecretService) Err ¶
func (ss *SecretService) Err() error
Err method returns the last error encountered
func (*SecretService) IsSecretInCache ¶
func (ss *SecretService) IsSecretInCache( secretName string, ) (inCache bool, _ map[core.EnvironmentName]core.SecretValue)
IsSecretInCache method indicates wether `secretName` exists in cache. also returns its values per environments if it does
func (*SecretService) SetValuesForEnvironments ¶
func (ss *SecretService) SetValuesForEnvironments( secretName, secretValue string, environments []models.Environment, skipPrompts bool, ) (map[string]string, error)
SetValuesForEnvironments method asks the user secret values per environment. It uses `secretValue` for the current environment, triggers prompts for the others. If `skipPrompts` is true, is does not ask the user anything and uses `secretValue` for every environments. If `secretValue` contains a new line (`\n`), it will fire up the user's default editor for them to enter multiline values
Click to show internal directories.
Click to hide internal directories.