Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Module = fx.Module( "parameter", fx.Provide( NewObjectStore, ), )
Functions ¶
This section is empty.
Types ¶
type ObjectStore ¶
type ObjectStore interface { Store ReadObject(ctx context.Context, p string, out any) error WriteObject(ctx context.Context, p string, in any) error }
ObjectStore is an extension to read/write objects to parameter store
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]any, error) Write(ctx context.Context, p string, data map[string]any) (map[string]any, error) Delete(ctx context.Context, p string) error }
Store provide an interface to interact with a parameter store
func NewNoopStore ¶
func NewNoopStore() Store
Click to show internal directories.
Click to hide internal directories.