secrets

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2018 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package secrets is a generated protocol buffer package.

It is generated from these files:

secrets.proto

It has these top-level messages:

GetSecretRequest
GetSecretResponse

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthSecrets = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowSecrets   = fmt.Errorf("proto: integer overflow")
)
View Source
var ErrNotFound = errors.Errorf("not found")

Functions

func GetSecret

func GetSecret(ctx context.Context, c session.Caller, id string) ([]byte, error)

func RegisterSecretsServer

func RegisterSecretsServer(s *grpc.Server, srv SecretsServer)

Types

type GetSecretRequest

type GetSecretRequest struct {
	ID          string            `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"`
	Annotations map[string]string `` /* 156-byte string literal not displayed */
}

func (*GetSecretRequest) Descriptor

func (*GetSecretRequest) Descriptor() ([]byte, []int)

func (*GetSecretRequest) Equal

func (this *GetSecretRequest) Equal(that interface{}) bool

func (*GetSecretRequest) GetAnnotations

func (m *GetSecretRequest) GetAnnotations() map[string]string

func (*GetSecretRequest) GetID

func (m *GetSecretRequest) GetID() string

func (*GetSecretRequest) GoString

func (this *GetSecretRequest) GoString() string

func (*GetSecretRequest) Marshal

func (m *GetSecretRequest) Marshal() (dAtA []byte, err error)

func (*GetSecretRequest) MarshalTo

func (m *GetSecretRequest) MarshalTo(dAtA []byte) (int, error)

func (*GetSecretRequest) ProtoMessage

func (*GetSecretRequest) ProtoMessage()

func (*GetSecretRequest) Reset

func (m *GetSecretRequest) Reset()

func (*GetSecretRequest) Size

func (m *GetSecretRequest) Size() (n int)

func (*GetSecretRequest) String

func (this *GetSecretRequest) String() string

func (*GetSecretRequest) Unmarshal

func (m *GetSecretRequest) Unmarshal(dAtA []byte) error

type GetSecretResponse

type GetSecretResponse struct {
	Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
}

func (*GetSecretResponse) Descriptor

func (*GetSecretResponse) Descriptor() ([]byte, []int)

func (*GetSecretResponse) Equal

func (this *GetSecretResponse) Equal(that interface{}) bool

func (*GetSecretResponse) GetData

func (m *GetSecretResponse) GetData() []byte

func (*GetSecretResponse) GoString

func (this *GetSecretResponse) GoString() string

func (*GetSecretResponse) Marshal

func (m *GetSecretResponse) Marshal() (dAtA []byte, err error)

func (*GetSecretResponse) MarshalTo

func (m *GetSecretResponse) MarshalTo(dAtA []byte) (int, error)

func (*GetSecretResponse) ProtoMessage

func (*GetSecretResponse) ProtoMessage()

func (*GetSecretResponse) Reset

func (m *GetSecretResponse) Reset()

func (*GetSecretResponse) Size

func (m *GetSecretResponse) Size() (n int)

func (*GetSecretResponse) String

func (this *GetSecretResponse) String() string

func (*GetSecretResponse) Unmarshal

func (m *GetSecretResponse) Unmarshal(dAtA []byte) error

type SecretStore

type SecretStore interface {
	GetSecret(context.Context, string) ([]byte, error)
}

type SecretsClient

type SecretsClient interface {
	GetSecret(ctx context.Context, in *GetSecretRequest, opts ...grpc.CallOption) (*GetSecretResponse, error)
}

func NewSecretsClient

func NewSecretsClient(cc *grpc.ClientConn) SecretsClient

type SecretsServer

type SecretsServer interface {
	GetSecret(context.Context, *GetSecretRequest) (*GetSecretResponse, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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