Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ReadWriter ¶
ReadWriter is a 'read-write' proxy to variables stored in SSM.
type Reader ¶
type Reader interface {
// ShowVariable retrieves an individual variable by its name.
ShowVariable(ctx context.Context, namespace, name string) (*Variable, error)
// ListVariables lists all variables for a given namespace. It does
// pagination automatically, with 10 entries per page. In pathological
// cases, this operation could take a while.
ListVariables(ctx context.Context, namespace string) ([]*Variable, error)
}
Reader provides are 'read-only' proxy to variables stored in SSM.
type Variable ¶
type Variable struct {
// Name of the variable.
Name string
// Value of the variable.
Value string
// Whether the variable should be readable from the UI.
WriteOnly bool
}
Variable represents a single configuration variable.
type Writer ¶
type Writer interface {
// CreateVariable creates or updates an existing variable.
CreateVariable(ctx context.Context, namespace string, variable *Variable) (*Variable, error)
// DeleteVariable deletes an existing variable.
DeleteVariable(ctx context.Context, namespace, name string) (*Variable, error)
// Reset removes all variables for a given namespace.
Reset(ctx context.Context, namespace string) error
}
Writer provides are 'write-only' proxy to variables stored in SSM.
Click to show internal directories.
Click to hide internal directories.