store

package
v0.0.0-...-b2d20b0 Latest Latest
Warning

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

Go to latest
Published: May 4, 2018 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type S3Store

type S3Store struct {
	Bucket   string
	S3Client *s3.S3
}

func (*S3Store) Delete

func (store *S3Store) Delete(key string) error

func (*S3Store) DeleteAll

func (store *S3Store) DeleteAll(key string) error

func (*S3Store) Exists

func (store *S3Store) Exists(key string) (bool, error)

func (*S3Store) Get

func (store *S3Store) Get(key string) ([]byte, error)

func (*S3Store) List

func (store *S3Store) List(key string) ([]string, error)

func (*S3Store) Set

func (store *S3Store) Set(key string, data []byte) error

func (*S3Store) String

func (store *S3Store) String() string

type Store

type Store interface {
	List(key string) ([]string, error)
	Exists(key string) (bool, error)
	Get(key string) ([]byte, error)
	Set(key string, data []byte) error
	Delete(key string) error
	DeleteAll(key string) error
}

func CreateStoreFromUrlOrDie

func CreateStoreFromUrlOrDie(storeUrl string) Store

type VaultStore

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

func (*VaultStore) Delete

func (store *VaultStore) Delete(key string) error

func (*VaultStore) DeleteAll

func (store *VaultStore) DeleteAll(key string) error

func (*VaultStore) Exists

func (store *VaultStore) Exists(key string) (bool, error)

func (*VaultStore) Get

func (store *VaultStore) Get(key string) ([]byte, error)

func (*VaultStore) List

func (store *VaultStore) List(key string) ([]string, error)

func (*VaultStore) Set

func (store *VaultStore) Set(key string, data []byte) error

func (*VaultStore) String

func (store *VaultStore) String() string

Jump to

Keyboard shortcuts

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