Documentation ¶
Index ¶
- Variables
- type Config
- type EnvID
- type EnvVar
- type JetpackAPIConfig
- type JetpackAPIStore
- func (j JetpackAPIStore) Delete(ctx context.Context, envID EnvID, name string) error
- func (j JetpackAPIStore) DeleteAll(ctx context.Context, envID EnvID, names []string) error
- func (j JetpackAPIStore) Get(ctx context.Context, envID EnvID, name string) (string, error)
- func (j JetpackAPIStore) GetAll(ctx context.Context, envID EnvID, names []string) ([]EnvVar, error)
- func (j JetpackAPIStore) List(ctx context.Context, envID EnvID) ([]EnvVar, error)
- func (j JetpackAPIStore) Set(ctx context.Context, envID EnvID, name string, value string) error
- func (j JetpackAPIStore) SetAll(ctx context.Context, envID EnvID, values map[string]string) error
- type SSMConfig
- type SSMStore
- func (s *SSMStore) Delete(ctx context.Context, envID EnvID, name string) error
- func (s *SSMStore) DeleteAll(ctx context.Context, envID EnvID, names []string) error
- func (s *SSMStore) Get(ctx context.Context, envID EnvID, name string) (string, error)
- func (s *SSMStore) GetAll(ctx context.Context, envID EnvID, names []string) ([]EnvVar, error)
- func (s *SSMStore) List(ctx context.Context, envID EnvID) ([]EnvVar, error)
- func (s *SSMStore) Set(ctx context.Context, envID EnvID, name string, value string) error
- func (s *SSMStore) SetAll(ctx context.Context, envID EnvID, values map[string]string) error
- type Store
Constants ¶
This section is empty.
Variables ¶
View Source
var FaultyParamError = errors.New("Faulty Parameter")
Functions ¶
This section is empty.
Types ¶
type EnvID ¶
type EnvID struct { // A string that uniquely identifies the project to which the environment belongs. ProjectID string // A string that uniquely identifies the organization to which the environment belongs. OrgID string // A name that uniquely identifies the environment within the project. // Usually one of: 'dev', 'prod'. EnvName string }
Uniquely identifies an environment in which we store environment variables.
type JetpackAPIConfig ¶ added in v0.0.7
type JetpackAPIConfig struct {
// contains filtered or unexported fields
}
func NewJetpackAPIConfig ¶ added in v0.0.7
func NewJetpackAPIConfig(token *session.Token) *JetpackAPIConfig
func (*JetpackAPIConfig) IsEnvStoreConfig ¶ added in v0.0.7
func (c *JetpackAPIConfig) IsEnvStoreConfig() bool
type JetpackAPIStore ¶ added in v0.0.7
type JetpackAPIStore struct {
// contains filtered or unexported fields
}
type SSMConfig ¶
type SSMConfig struct { Region string AccessKeyID string SecretAccessKey string SessionToken string KmsKeyID string VarPathFn func(envId EnvID, varName string) string PathNamespaceFn func(envId EnvID) string }
func (*SSMConfig) IsEnvStoreConfig ¶
type SSMStore ¶
type SSMStore struct {
// contains filtered or unexported fields
}
type Store ¶
type Store interface { // List all environmnent variables and their values associated with the given envId. List(ctx context.Context, envID EnvID) ([]EnvVar, error) // Set the value of an environment variable. Set(ctx context.Context, envID EnvID, name string, value string) error // Set the values of multiple environment variables. SetAll(ctx context.Context, envID EnvID, values map[string]string) error // Get the value of an environment variable. Get(ctx context.Context, envID EnvID, name string) (string, error) // Get the values of multiple environment variables. GetAll(ctx context.Context, envID EnvID, names []string) ([]EnvVar, error) // Delete an environment variable. Delete(ctx context.Context, envID EnvID, name string) error // Delete multiple environment variables. DeleteAll(ctx context.Context, envID EnvID, names []string) error }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.