Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("not found")
View Source
var Module = fx.Options( fx.Provide( NewObjectStore, ), )
Functions ¶
This section is empty.
Types ¶
type ObjectStore ¶
type ObjectStore interface { Store ReadObject(ctx context.Context, p string, out interface{}) error WriteObject(ctx context.Context, p string, in interface{}) error }
ObjectStore is an extension to read/write objects to parameter store
func NewNoopStore ¶
func NewNoopStore() ObjectStore
func NewObjectStore ¶ added in v2.1.1
func NewObjectStore(store Store) ObjectStore
type Store ¶
type Store interface { List(ctx context.Context, p string) ([]string, error) Read(ctx context.Context, p string) (map[string]interface{}, error) Write(ctx context.Context, p string, data map[string]interface{}) (map[string]interface{}, error) Delete(ctx context.Context, p string) error }
Store provide an interface to interact with a parameter store
Click to show internal directories.
Click to hide internal directories.