store

package
v0.0.0-...-e45363a Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2016 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BoltConfig

type BoltConfig struct {
	DBFile string
}

func (BoltConfig) Validate

func (c BoltConfig) Validate() error

type BoltStore

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

func NewBoltStore

func NewBoltStore(
	config BoltConfig,
	logger boshlog.Logger,
) BoltStore

func (BoltStore) Delete

func (s BoltStore) Delete(key string) error

func (BoltStore) Get

func (s BoltStore) Get(key string) (string, bool, error)

func (BoltStore) Save

func (s BoltStore) Save(key string, value string) error

type Config

type Config struct {
	Adapter string                 `json:"adapter,omitempty"`
	Options map[string]interface{} `json:"options,omitempty"`
}

func (Config) Validate

func (c Config) Validate() error

type Store

type Store interface {
	Delete(string) error
	Get(string) (string, bool, error)
	Save(string, string) error
}

func NewStore

func NewStore(
	config Config,
	logger boshlog.Logger,
) (Store, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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