instancestorage

package
v0.18.1-beta.1 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClaimStore

type ClaimStore interface {
	List() ([]string, error)
	Store(claim.Claim) error
	Read(name string) (claim.Claim, error)
	ReadAll() ([]claim.Claim, error)
	Delete(name string) error
}

type DynamicCrudStore

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

DynamicCrudStore wraps another backing store that is instantiated just in time before each method call.

func NewDynamicCrudStore

func NewDynamicCrudStore(builder DynamicCrudStoreBuilder) *DynamicCrudStore

func (DynamicCrudStore) Delete

func (s DynamicCrudStore) Delete(name string) error

func (DynamicCrudStore) List

func (s DynamicCrudStore) List() ([]string, error)

func (DynamicCrudStore) Read

func (s DynamicCrudStore) Read(name string) ([]byte, error)

func (DynamicCrudStore) Store

func (s DynamicCrudStore) Store(name string, data []byte) error

type DynamicCrudStoreBuilder

type DynamicCrudStoreBuilder func() (crud.Store, func(), error)

type Provider

type Provider interface {
	ClaimStore
}

Provider interface for instance storage (claims).

type TestInstanceStorageProvider

type TestInstanceStorageProvider struct {
	ClaimStore
}

func NewTestInstanceStorageProvider

func NewTestInstanceStorageProvider() TestInstanceStorageProvider

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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