secrets

package
v0.0.0-...-4df811a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 12, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL