claims

package
v0.24.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2020 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 ClaimProvider

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

ClaimProvider interface for claim storage.

type ClaimStorage

type ClaimStorage struct {
	*config.Config
	claim.Store
}

ClaimStorage provides access to backing claim storage by instantiating plugins that implement claim (CRUD) storage.

func NewClaimStorage

func NewClaimStorage(c *config.Config, storagePlugin *pluginstore.Store) *ClaimStorage

type TestClaimProvider

type TestClaimProvider struct {
	claim.Store
}

func NewTestClaimProvider

func NewTestClaimProvider() TestClaimProvider

Jump to

Keyboard shortcuts

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