storage

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PersistenceLayer

type PersistenceLayer interface {
	Add(i common.Item) error
	Delete(name string) error
	Update(i common.Item) error
	Get(name string) (common.Item, error)
	List() ([]common.Item, error)
}

PersistenceLayer defines a simple interface to persists Boskos Information

func NewMemoryStorage

func NewMemoryStorage() PersistenceLayer

NewMemoryStorage creates an in memory persistence layer

Jump to

Keyboard shortcuts

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