parameter

package
v2.25.4 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2023 License: MIT Imports: 8 Imported by: 0

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

Jump to

Keyboard shortcuts

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