store

package
v0.0.0-...-da0747f Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2017 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CipherTextNotFound = errors.New("cipher text not found")
View Source
var SecretNotFound = errors.New("secret not found")
View Source
var SharesNotFound = errors.New("shares not found")
View Source
var WrongNumberOfResults = errors.New("incorrect number of results from etcd")

Functions

This section is empty.

Types

type EtcdStore

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

func (*EtcdStore) CreateSecret

func (e *EtcdStore) CreateSecret(ctx context.Context, secretId string, s *pb.CreateSecretRequest) (*pb.SimpleSecret, error)

func (*EtcdStore) GetCipherText

func (e *EtcdStore) GetCipherText(ctx context.Context, secretId string) (*pb.CipherText, error)

func (*EtcdStore) GetPrivateShares

func (e *EtcdStore) GetPrivateShares(ctx context.Context, secretId, receiver string) (*pb.PrivateShares, error)

func (*EtcdStore) GetPublicShares

func (e *EtcdStore) GetPublicShares(ctx context.Context, secretId string) (*pb.PublicShares, error)

func (*EtcdStore) GetSecret

func (e *EtcdStore) GetSecret(ctx context.Context, secretId string) (*pb.SimpleSecret, error)

type SecretStore

type SecretStore interface {
	CreateSecret(ctx context.Context, secretId string, s *pb.CreateSecretRequest) (*pb.SimpleSecret, error)
	GetSecret(ctx context.Context, secretId string) (*pb.SimpleSecret, error)
	GetPublicShares(ctx context.Context, secretId string) (*pb.PublicShares, error)
	GetPrivateShares(ctx context.Context, secretId, receiver string) (*pb.PrivateShares, error)
	GetCipherText(ctx context.Context, secretId string) (*pb.CipherText, error)
}

func NewEtcdStore

func NewEtcdStore(c *clientv3.Client, logger log.Logger) SecretStore

Jump to

Keyboard shortcuts

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