memstore

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NotFoundErr      = errors.New("not found")
	ExistingEntryErr = errors.New("Data exists for this entry. Update instead")
)

Functions

This section is empty.

Types

type MemStore

type MemStore struct {
	// contains filtered or unexported fields
}

func NewMemStore

func NewMemStore() *MemStore

func (MemStore) Add

func (m MemStore) Add(name string, ci citypes.CI) error

func (MemStore) Get

func (m MemStore) Get(name string, sm *smdclient.SMDClient) (citypes.CI, error)

func (MemStore) List

func (m MemStore) List() (map[string]citypes.CI, error)

func (MemStore) Remove

func (m MemStore) Remove(name string) error

func (MemStore) Update

func (m MemStore) Update(name string, ci citypes.CI) error

Jump to

Keyboard shortcuts

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