Versions in this module Expand all Collapse all v1 v1.1.10 Dec 12, 2023 Changes in this version + var ErrIntOverflowSecrets = fmt.Errorf("proto: integer overflow") + var ErrInvalidLengthSecrets = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrNotFound = errors.Errorf("not found") + var ErrUnexpectedEndOfGroupSecrets = fmt.Errorf("proto: unexpected end of group") + func GetSecret(ctx context.Context, c session.Caller, id string) ([]byte, error) + func RegisterSecretsServer(s *grpc.Server, srv SecretsServer) + type GetSecretRequest struct + Annotations map[string]string + ID string + func (*GetSecretRequest) Descriptor() ([]byte, []int) + func (*GetSecretRequest) ProtoMessage() + func (m *GetSecretRequest) GetAnnotations() map[string]string + func (m *GetSecretRequest) GetID() string + func (m *GetSecretRequest) Marshal() (dAtA []byte, err error) + func (m *GetSecretRequest) MarshalTo(dAtA []byte) (int, error) + func (m *GetSecretRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *GetSecretRequest) Reset() + func (m *GetSecretRequest) Size() (n int) + func (m *GetSecretRequest) Unmarshal(dAtA []byte) error + func (m *GetSecretRequest) XXX_DiscardUnknown() + func (m *GetSecretRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *GetSecretRequest) XXX_Merge(src proto.Message) + func (m *GetSecretRequest) XXX_Size() int + func (m *GetSecretRequest) XXX_Unmarshal(b []byte) error + func (this *GetSecretRequest) Equal(that interface{}) bool + func (this *GetSecretRequest) GoString() string + func (this *GetSecretRequest) String() string + type GetSecretResponse struct + Data []byte + func (*GetSecretResponse) Descriptor() ([]byte, []int) + func (*GetSecretResponse) ProtoMessage() + func (m *GetSecretResponse) GetData() []byte + func (m *GetSecretResponse) Marshal() (dAtA []byte, err error) + func (m *GetSecretResponse) MarshalTo(dAtA []byte) (int, error) + func (m *GetSecretResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *GetSecretResponse) Reset() + func (m *GetSecretResponse) Size() (n int) + func (m *GetSecretResponse) Unmarshal(dAtA []byte) error + func (m *GetSecretResponse) XXX_DiscardUnknown() + func (m *GetSecretResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *GetSecretResponse) XXX_Merge(src proto.Message) + func (m *GetSecretResponse) XXX_Size() int + func (m *GetSecretResponse) XXX_Unmarshal(b []byte) error + func (this *GetSecretResponse) Equal(that interface{}) bool + func (this *GetSecretResponse) GoString() string + func (this *GetSecretResponse) String() string + type SecretStore interface + GetSecret func(context.Context, string) ([]byte, error) + type SecretsClient interface + GetSecret func(ctx context.Context, in *GetSecretRequest, opts ...grpc.CallOption) (*GetSecretResponse, error) + func NewSecretsClient(cc *grpc.ClientConn) SecretsClient + type SecretsServer interface + GetSecret func(context.Context, *GetSecretRequest) (*GetSecretResponse, error) + type UnimplementedSecretsServer struct + func (*UnimplementedSecretsServer) GetSecret(ctx context.Context, req *GetSecretRequest) (*GetSecretResponse, error)