Documentation
¶
Index ¶
- Variables
- type EtcdStore
- func (e *EtcdStore) CreateSecret(ctx context.Context, secretId string, s *pb.CreateSecretRequest) (*pb.SimpleSecret, error)
- func (e *EtcdStore) GetCipherText(ctx context.Context, secretId string) (*pb.CipherText, error)
- func (e *EtcdStore) GetPrivateShares(ctx context.Context, secretId, receiver string) (*pb.PrivateShares, error)
- func (e *EtcdStore) GetPublicShares(ctx context.Context, secretId string) (*pb.PublicShares, error)
- func (e *EtcdStore) GetSecret(ctx context.Context, secretId string) (*pb.SimpleSecret, error)
- type SecretStore
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 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 (*EtcdStore) GetPrivateShares ¶
func (*EtcdStore) GetPublicShares ¶
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) GetCipherText(ctx context.Context, secretId string) (*pb.CipherText, error) }
func NewEtcdStore ¶
func NewEtcdStore(c *clientv3.Client, logger log.Logger) SecretStore
Click to show internal directories.
Click to hide internal directories.