Documentation ¶
Overview ¶
Package apipb is a generated protocol buffer package.
It is generated from these files:
pkg/api/apipb/api.proto
It has these top-level messages:
ByteContent CipherText Shares PublicShares PrivateShares PublicShare PrivateShare CreateSecretRequest SimpleSecret GetSecretRequest GetPublicSharesRequest GetPrivateSharesRequest GetCipherTextRequest
Index ¶
- Variables
- func RegisterAPIServer(s *grpc.Server, srv APIServer)
- type APIClient
- type APIServer
- type ByteContent
- func (*ByteContent) Descriptor() ([]byte, []int)
- func (m *ByteContent) GetBytes() []byte
- func (m *ByteContent) Marshal() (dAtA []byte, err error)
- func (c ByteContent) MarshalJSON() ([]byte, error)
- func (m *ByteContent) MarshalTo(dAtA []byte) (int, error)
- func (*ByteContent) ProtoMessage()
- func (m *ByteContent) Reset()
- func (m *ByteContent) Size() (n int)
- func (m *ByteContent) String() string
- func (m *ByteContent) Unmarshal(dAtA []byte) error
- func (c *ByteContent) UnmarshalJSON(b []byte) error
- type CipherText
- func (*CipherText) Descriptor() ([]byte, []int)
- func (m *CipherText) GetContent() *ByteContent
- func (m *CipherText) Marshal() (dAtA []byte, err error)
- func (m *CipherText) MarshalTo(dAtA []byte) (int, error)
- func (*CipherText) ProtoMessage()
- func (m *CipherText) Reset()
- func (m *CipherText) Size() (n int)
- func (m *CipherText) String() string
- func (m *CipherText) Unmarshal(dAtA []byte) error
- type CreateSecretRequest
- func (*CreateSecretRequest) Descriptor() ([]byte, []int)
- func (m *CreateSecretRequest) GetCipherText() *CipherText
- func (m *CreateSecretRequest) GetShares() *Shares
- func (m *CreateSecretRequest) Marshal() (dAtA []byte, err error)
- func (m *CreateSecretRequest) MarshalTo(dAtA []byte) (int, error)
- func (*CreateSecretRequest) ProtoMessage()
- func (m *CreateSecretRequest) Reset()
- func (m *CreateSecretRequest) Size() (n int)
- func (m *CreateSecretRequest) String() string
- func (m *CreateSecretRequest) Unmarshal(dAtA []byte) error
- type GetCipherTextRequest
- func (*GetCipherTextRequest) Descriptor() ([]byte, []int)
- func (m *GetCipherTextRequest) GetSecretId() string
- func (m *GetCipherTextRequest) Marshal() (dAtA []byte, err error)
- func (m *GetCipherTextRequest) MarshalTo(dAtA []byte) (int, error)
- func (*GetCipherTextRequest) ProtoMessage()
- func (m *GetCipherTextRequest) Reset()
- func (m *GetCipherTextRequest) Size() (n int)
- func (m *GetCipherTextRequest) String() string
- func (m *GetCipherTextRequest) Unmarshal(dAtA []byte) error
- type GetPrivateSharesRequest
- func (*GetPrivateSharesRequest) Descriptor() ([]byte, []int)
- func (m *GetPrivateSharesRequest) GetRequester() string
- func (m *GetPrivateSharesRequest) GetSecretId() string
- func (m *GetPrivateSharesRequest) Marshal() (dAtA []byte, err error)
- func (m *GetPrivateSharesRequest) MarshalTo(dAtA []byte) (int, error)
- func (*GetPrivateSharesRequest) ProtoMessage()
- func (m *GetPrivateSharesRequest) Reset()
- func (m *GetPrivateSharesRequest) Size() (n int)
- func (m *GetPrivateSharesRequest) String() string
- func (m *GetPrivateSharesRequest) Unmarshal(dAtA []byte) error
- type GetPublicSharesRequest
- func (*GetPublicSharesRequest) Descriptor() ([]byte, []int)
- func (m *GetPublicSharesRequest) GetSecretId() string
- func (m *GetPublicSharesRequest) Marshal() (dAtA []byte, err error)
- func (m *GetPublicSharesRequest) MarshalTo(dAtA []byte) (int, error)
- func (*GetPublicSharesRequest) ProtoMessage()
- func (m *GetPublicSharesRequest) Reset()
- func (m *GetPublicSharesRequest) Size() (n int)
- func (m *GetPublicSharesRequest) String() string
- func (m *GetPublicSharesRequest) Unmarshal(dAtA []byte) error
- type GetSecretRequest
- func (*GetSecretRequest) Descriptor() ([]byte, []int)
- func (m *GetSecretRequest) GetSecretId() string
- func (m *GetSecretRequest) Marshal() (dAtA []byte, err error)
- func (m *GetSecretRequest) MarshalTo(dAtA []byte) (int, error)
- func (*GetSecretRequest) ProtoMessage()
- func (m *GetSecretRequest) Reset()
- func (m *GetSecretRequest) Size() (n int)
- func (m *GetSecretRequest) String() string
- func (m *GetSecretRequest) Unmarshal(dAtA []byte) error
- type PrivateShare
- func (*PrivateShare) Descriptor() ([]byte, []int)
- func (m *PrivateShare) GetContent() *ByteContent
- func (m *PrivateShare) GetHash() *ByteContent
- func (m *PrivateShare) GetReceiver() string
- func (m *PrivateShare) GetSignature() *ByteContent
- func (m *PrivateShare) GetSigner() string
- func (m *PrivateShare) Marshal() (dAtA []byte, err error)
- func (m *PrivateShare) MarshalTo(dAtA []byte) (int, error)
- func (*PrivateShare) ProtoMessage()
- func (m *PrivateShare) Reset()
- func (m *PrivateShare) Size() (n int)
- func (m *PrivateShare) String() string
- func (m *PrivateShare) Unmarshal(dAtA []byte) error
- type PrivateShares
- func (*PrivateShares) Descriptor() ([]byte, []int)
- func (m *PrivateShares) GetItems() []*PrivateShare
- func (m *PrivateShares) Marshal() (dAtA []byte, err error)
- func (m *PrivateShares) MarshalTo(dAtA []byte) (int, error)
- func (*PrivateShares) ProtoMessage()
- func (m *PrivateShares) Reset()
- func (m *PrivateShares) Size() (n int)
- func (m *PrivateShares) String() string
- func (m *PrivateShares) Unmarshal(dAtA []byte) error
- type PublicShare
- func (*PublicShare) Descriptor() ([]byte, []int)
- func (m *PublicShare) GetContent() *ByteContent
- func (m *PublicShare) GetHash() *ByteContent
- func (m *PublicShare) GetSignature() *ByteContent
- func (m *PublicShare) GetSigner() string
- func (m *PublicShare) Marshal() (dAtA []byte, err error)
- func (m *PublicShare) MarshalTo(dAtA []byte) (int, error)
- func (*PublicShare) ProtoMessage()
- func (m *PublicShare) Reset()
- func (m *PublicShare) Size() (n int)
- func (m *PublicShare) String() string
- func (m *PublicShare) Unmarshal(dAtA []byte) error
- type PublicShares
- func (*PublicShares) Descriptor() ([]byte, []int)
- func (m *PublicShares) GetItems() []*PublicShare
- func (m *PublicShares) Marshal() (dAtA []byte, err error)
- func (m *PublicShares) MarshalTo(dAtA []byte) (int, error)
- func (*PublicShares) ProtoMessage()
- func (m *PublicShares) Reset()
- func (m *PublicShares) Size() (n int)
- func (m *PublicShares) String() string
- func (m *PublicShares) Unmarshal(dAtA []byte) error
- type Shares
- func (*Shares) Descriptor() ([]byte, []int)
- func (m *Shares) GetPrivate() *PrivateShares
- func (m *Shares) GetPublic() *PublicShares
- func (m *Shares) Marshal() (dAtA []byte, err error)
- func (m *Shares) MarshalTo(dAtA []byte) (int, error)
- func (*Shares) ProtoMessage()
- func (m *Shares) Reset()
- func (m *Shares) Size() (n int)
- func (m *Shares) String() string
- func (m *Shares) Unmarshal(dAtA []byte) error
- type SimpleSecret
- func (*SimpleSecret) Descriptor() ([]byte, []int)
- func (m *SimpleSecret) GetSecretId() string
- func (m *SimpleSecret) Marshal() (dAtA []byte, err error)
- func (m *SimpleSecret) MarshalTo(dAtA []byte) (int, error)
- func (*SimpleSecret) ProtoMessage()
- func (m *SimpleSecret) Reset()
- func (m *SimpleSecret) Size() (n int)
- func (m *SimpleSecret) String() string
- func (m *SimpleSecret) Unmarshal(dAtA []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthApi = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowApi = fmt.Errorf("proto: integer overflow") )
Functions ¶
func RegisterAPIServer ¶
Types ¶
type APIClient ¶
type APIClient interface { CreateSecret(ctx context.Context, in *CreateSecretRequest, opts ...grpc.CallOption) (*SimpleSecret, error) GetSecret(ctx context.Context, in *GetSecretRequest, opts ...grpc.CallOption) (*SimpleSecret, error) GetCipherText(ctx context.Context, in *GetCipherTextRequest, opts ...grpc.CallOption) (*CipherText, error) }
func NewAPIClient ¶
func NewAPIClient(cc *grpc.ClientConn) APIClient
type APIServer ¶
type APIServer interface { CreateSecret(context.Context, *CreateSecretRequest) (*SimpleSecret, error) GetSecret(context.Context, *GetSecretRequest) (*SimpleSecret, error) GetCipherText(context.Context, *GetCipherTextRequest) (*CipherText, error) }
type ByteContent ¶
type ByteContent struct {
Bytes []byte `protobuf:"bytes,1,opt,name=bytes,proto3" json:"bytes,omitempty"`
}
func (*ByteContent) Descriptor ¶
func (*ByteContent) Descriptor() ([]byte, []int)
func (*ByteContent) GetBytes ¶
func (m *ByteContent) GetBytes() []byte
func (*ByteContent) Marshal ¶
func (m *ByteContent) Marshal() (dAtA []byte, err error)
func (ByteContent) MarshalJSON ¶
func (c ByteContent) MarshalJSON() ([]byte, error)
func (*ByteContent) ProtoMessage ¶
func (*ByteContent) ProtoMessage()
func (*ByteContent) Reset ¶
func (m *ByteContent) Reset()
func (*ByteContent) Size ¶
func (m *ByteContent) Size() (n int)
func (*ByteContent) String ¶
func (m *ByteContent) String() string
func (*ByteContent) Unmarshal ¶
func (m *ByteContent) Unmarshal(dAtA []byte) error
func (*ByteContent) UnmarshalJSON ¶
func (c *ByteContent) UnmarshalJSON(b []byte) error
type CipherText ¶
type CipherText struct {
Content *ByteContent `protobuf:"bytes,1,opt,name=content" json:"content,omitempty"`
}
func (*CipherText) Descriptor ¶
func (*CipherText) Descriptor() ([]byte, []int)
func (*CipherText) GetContent ¶
func (m *CipherText) GetContent() *ByteContent
func (*CipherText) Marshal ¶
func (m *CipherText) Marshal() (dAtA []byte, err error)
func (*CipherText) ProtoMessage ¶
func (*CipherText) ProtoMessage()
func (*CipherText) Reset ¶
func (m *CipherText) Reset()
func (*CipherText) Size ¶
func (m *CipherText) Size() (n int)
func (*CipherText) String ¶
func (m *CipherText) String() string
func (*CipherText) Unmarshal ¶
func (m *CipherText) Unmarshal(dAtA []byte) error
type CreateSecretRequest ¶
type CreateSecretRequest struct { CipherText *CipherText `protobuf:"bytes,1,opt,name=cipher_text,json=cipherText" json:"cipher_text,omitempty"` }
func (*CreateSecretRequest) Descriptor ¶
func (*CreateSecretRequest) Descriptor() ([]byte, []int)
func (*CreateSecretRequest) GetCipherText ¶
func (m *CreateSecretRequest) GetCipherText() *CipherText
func (*CreateSecretRequest) GetShares ¶
func (m *CreateSecretRequest) GetShares() *Shares
func (*CreateSecretRequest) Marshal ¶
func (m *CreateSecretRequest) Marshal() (dAtA []byte, err error)
func (*CreateSecretRequest) MarshalTo ¶
func (m *CreateSecretRequest) MarshalTo(dAtA []byte) (int, error)
func (*CreateSecretRequest) ProtoMessage ¶
func (*CreateSecretRequest) ProtoMessage()
func (*CreateSecretRequest) Reset ¶
func (m *CreateSecretRequest) Reset()
func (*CreateSecretRequest) Size ¶
func (m *CreateSecretRequest) Size() (n int)
func (*CreateSecretRequest) String ¶
func (m *CreateSecretRequest) String() string
func (*CreateSecretRequest) Unmarshal ¶
func (m *CreateSecretRequest) Unmarshal(dAtA []byte) error
type GetCipherTextRequest ¶
type GetCipherTextRequest struct {
SecretId string `protobuf:"bytes,1,opt,name=secret_id,json=secretId,proto3" json:"secret_id,omitempty"`
}
func (*GetCipherTextRequest) Descriptor ¶
func (*GetCipherTextRequest) Descriptor() ([]byte, []int)
func (*GetCipherTextRequest) GetSecretId ¶
func (m *GetCipherTextRequest) GetSecretId() string
func (*GetCipherTextRequest) Marshal ¶
func (m *GetCipherTextRequest) Marshal() (dAtA []byte, err error)
func (*GetCipherTextRequest) MarshalTo ¶
func (m *GetCipherTextRequest) MarshalTo(dAtA []byte) (int, error)
func (*GetCipherTextRequest) ProtoMessage ¶
func (*GetCipherTextRequest) ProtoMessage()
func (*GetCipherTextRequest) Reset ¶
func (m *GetCipherTextRequest) Reset()
func (*GetCipherTextRequest) Size ¶
func (m *GetCipherTextRequest) Size() (n int)
func (*GetCipherTextRequest) String ¶
func (m *GetCipherTextRequest) String() string
func (*GetCipherTextRequest) Unmarshal ¶
func (m *GetCipherTextRequest) Unmarshal(dAtA []byte) error
type GetPrivateSharesRequest ¶
type GetPrivateSharesRequest struct {}
func (*GetPrivateSharesRequest) Descriptor ¶
func (*GetPrivateSharesRequest) Descriptor() ([]byte, []int)
func (*GetPrivateSharesRequest) GetRequester ¶
func (m *GetPrivateSharesRequest) GetRequester() string
func (*GetPrivateSharesRequest) GetSecretId ¶
func (m *GetPrivateSharesRequest) GetSecretId() string
func (*GetPrivateSharesRequest) Marshal ¶
func (m *GetPrivateSharesRequest) Marshal() (dAtA []byte, err error)
func (*GetPrivateSharesRequest) MarshalTo ¶
func (m *GetPrivateSharesRequest) MarshalTo(dAtA []byte) (int, error)
func (*GetPrivateSharesRequest) ProtoMessage ¶
func (*GetPrivateSharesRequest) ProtoMessage()
func (*GetPrivateSharesRequest) Reset ¶
func (m *GetPrivateSharesRequest) Reset()
func (*GetPrivateSharesRequest) Size ¶
func (m *GetPrivateSharesRequest) Size() (n int)
func (*GetPrivateSharesRequest) String ¶
func (m *GetPrivateSharesRequest) String() string
func (*GetPrivateSharesRequest) Unmarshal ¶
func (m *GetPrivateSharesRequest) Unmarshal(dAtA []byte) error
type GetPublicSharesRequest ¶
type GetPublicSharesRequest struct {
}func (*GetPublicSharesRequest) Descriptor ¶
func (*GetPublicSharesRequest) Descriptor() ([]byte, []int)
func (*GetPublicSharesRequest) GetSecretId ¶
func (m *GetPublicSharesRequest) GetSecretId() string
func (*GetPublicSharesRequest) Marshal ¶
func (m *GetPublicSharesRequest) Marshal() (dAtA []byte, err error)
func (*GetPublicSharesRequest) MarshalTo ¶
func (m *GetPublicSharesRequest) MarshalTo(dAtA []byte) (int, error)
func (*GetPublicSharesRequest) ProtoMessage ¶
func (*GetPublicSharesRequest) ProtoMessage()
func (*GetPublicSharesRequest) Reset ¶
func (m *GetPublicSharesRequest) Reset()
func (*GetPublicSharesRequest) Size ¶
func (m *GetPublicSharesRequest) Size() (n int)
func (*GetPublicSharesRequest) String ¶
func (m *GetPublicSharesRequest) String() string
func (*GetPublicSharesRequest) Unmarshal ¶
func (m *GetPublicSharesRequest) Unmarshal(dAtA []byte) error
type GetSecretRequest ¶
type GetSecretRequest struct {
SecretId string `protobuf:"bytes,1,opt,name=secret_id,json=secretId,proto3" json:"secret_id,omitempty"`
}
func (*GetSecretRequest) Descriptor ¶
func (*GetSecretRequest) Descriptor() ([]byte, []int)
func (*GetSecretRequest) GetSecretId ¶
func (m *GetSecretRequest) GetSecretId() string
func (*GetSecretRequest) Marshal ¶
func (m *GetSecretRequest) Marshal() (dAtA []byte, err 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 (m *GetSecretRequest) String() string
func (*GetSecretRequest) Unmarshal ¶
func (m *GetSecretRequest) Unmarshal(dAtA []byte) error
type PrivateShare ¶
type PrivateShare struct {}
func (*PrivateShare) Descriptor ¶
func (*PrivateShare) Descriptor() ([]byte, []int)
func (*PrivateShare) GetContent ¶
func (m *PrivateShare) GetContent() *ByteContent
func (*PrivateShare) GetHash ¶
func (m *PrivateShare) GetHash() *ByteContent
func (*PrivateShare) GetReceiver ¶
func (m *PrivateShare) GetReceiver() string
func (*PrivateShare) GetSignature ¶
func (m *PrivateShare) GetSignature() *ByteContent
func (*PrivateShare) GetSigner ¶
func (m *PrivateShare) GetSigner() string
func (*PrivateShare) Marshal ¶
func (m *PrivateShare) Marshal() (dAtA []byte, err error)
func (*PrivateShare) ProtoMessage ¶
func (*PrivateShare) ProtoMessage()
func (*PrivateShare) Reset ¶
func (m *PrivateShare) Reset()
func (*PrivateShare) Size ¶
func (m *PrivateShare) Size() (n int)
func (*PrivateShare) String ¶
func (m *PrivateShare) String() string
func (*PrivateShare) Unmarshal ¶
func (m *PrivateShare) Unmarshal(dAtA []byte) error
type PrivateShares ¶
type PrivateShares struct {
}func (*PrivateShares) Descriptor ¶
func (*PrivateShares) Descriptor() ([]byte, []int)
func (*PrivateShares) GetItems ¶
func (m *PrivateShares) GetItems() []*PrivateShare
func (*PrivateShares) Marshal ¶
func (m *PrivateShares) Marshal() (dAtA []byte, err error)
func (*PrivateShares) ProtoMessage ¶
func (*PrivateShares) ProtoMessage()
func (*PrivateShares) Reset ¶
func (m *PrivateShares) Reset()
func (*PrivateShares) Size ¶
func (m *PrivateShares) Size() (n int)
func (*PrivateShares) String ¶
func (m *PrivateShares) String() string
func (*PrivateShares) Unmarshal ¶
func (m *PrivateShares) Unmarshal(dAtA []byte) error
type PublicShare ¶
type PublicShare struct {}
func (*PublicShare) Descriptor ¶
func (*PublicShare) Descriptor() ([]byte, []int)
func (*PublicShare) GetContent ¶
func (m *PublicShare) GetContent() *ByteContent
func (*PublicShare) GetHash ¶
func (m *PublicShare) GetHash() *ByteContent
func (*PublicShare) GetSignature ¶
func (m *PublicShare) GetSignature() *ByteContent
func (*PublicShare) GetSigner ¶
func (m *PublicShare) GetSigner() string
func (*PublicShare) Marshal ¶
func (m *PublicShare) Marshal() (dAtA []byte, err error)
func (*PublicShare) ProtoMessage ¶
func (*PublicShare) ProtoMessage()
func (*PublicShare) Reset ¶
func (m *PublicShare) Reset()
func (*PublicShare) Size ¶
func (m *PublicShare) Size() (n int)
func (*PublicShare) String ¶
func (m *PublicShare) String() string
func (*PublicShare) Unmarshal ¶
func (m *PublicShare) Unmarshal(dAtA []byte) error
type PublicShares ¶
type PublicShares struct {
}func (*PublicShares) Descriptor ¶
func (*PublicShares) Descriptor() ([]byte, []int)
func (*PublicShares) GetItems ¶
func (m *PublicShares) GetItems() []*PublicShare
func (*PublicShares) Marshal ¶
func (m *PublicShares) Marshal() (dAtA []byte, err error)
func (*PublicShares) ProtoMessage ¶
func (*PublicShares) ProtoMessage()
func (*PublicShares) Reset ¶
func (m *PublicShares) Reset()
func (*PublicShares) Size ¶
func (m *PublicShares) Size() (n int)
func (*PublicShares) String ¶
func (m *PublicShares) String() string
func (*PublicShares) Unmarshal ¶
func (m *PublicShares) Unmarshal(dAtA []byte) error
type Shares ¶
type Shares struct {}
func (*Shares) Descriptor ¶
func (*Shares) GetPrivate ¶
func (m *Shares) GetPrivate() *PrivateShares
func (*Shares) GetPublic ¶
func (m *Shares) GetPublic() *PublicShares
func (*Shares) ProtoMessage ¶
func (*Shares) ProtoMessage()
type SimpleSecret ¶
type SimpleSecret struct {
SecretId string `protobuf:"bytes,1,opt,name=secret_id,json=secretId,proto3" json:"secret_id,omitempty"`
}
func (*SimpleSecret) Descriptor ¶
func (*SimpleSecret) Descriptor() ([]byte, []int)
func (*SimpleSecret) GetSecretId ¶
func (m *SimpleSecret) GetSecretId() string
func (*SimpleSecret) Marshal ¶
func (m *SimpleSecret) Marshal() (dAtA []byte, err error)
func (*SimpleSecret) ProtoMessage ¶
func (*SimpleSecret) ProtoMessage()
func (*SimpleSecret) Reset ¶
func (m *SimpleSecret) Reset()
func (*SimpleSecret) Size ¶
func (m *SimpleSecret) Size() (n int)
func (*SimpleSecret) String ¶
func (m *SimpleSecret) String() string
func (*SimpleSecret) Unmarshal ¶
func (m *SimpleSecret) Unmarshal(dAtA []byte) error
Click to show internal directories.
Click to hide internal directories.