secrets

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2019 License: Apache-2.0 Imports: 15 Imported by: 33

Documentation

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 `` /* 163-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

func (*GetSecretRequest) XXX_DiscardUnknown added in v0.4.0

func (m *GetSecretRequest) XXX_DiscardUnknown()

func (*GetSecretRequest) XXX_Marshal added in v0.4.0

func (m *GetSecretRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetSecretRequest) XXX_Merge added in v0.4.0

func (dst *GetSecretRequest) XXX_Merge(src proto.Message)

func (*GetSecretRequest) XXX_Size added in v0.4.0

func (m *GetSecretRequest) XXX_Size() int

func (*GetSecretRequest) XXX_Unmarshal added in v0.4.0

func (m *GetSecretRequest) XXX_Unmarshal(b []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

func (*GetSecretResponse) XXX_DiscardUnknown added in v0.4.0

func (m *GetSecretResponse) XXX_DiscardUnknown()

func (*GetSecretResponse) XXX_Marshal added in v0.4.0

func (m *GetSecretResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetSecretResponse) XXX_Merge added in v0.4.0

func (dst *GetSecretResponse) XXX_Merge(src proto.Message)

func (*GetSecretResponse) XXX_Size added in v0.4.0

func (m *GetSecretResponse) XXX_Size() int

func (*GetSecretResponse) XXX_Unmarshal added in v0.4.0

func (m *GetSecretResponse) XXX_Unmarshal(b []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)
}

SecretsClient is the client API for Secrets service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewSecretsClient

func NewSecretsClient(cc *grpc.ClientConn) SecretsClient

type SecretsServer

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

SecretsServer is the server API for Secrets service.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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