apipb

package
v0.0.0-...-da0747f Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2017 License: Apache-2.0 Imports: 8 Imported by: 0

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

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

func RegisterAPIServer(s *grpc.Server, srv APIServer)

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)
	GetPublicShares(ctx context.Context, in *GetPublicSharesRequest, opts ...grpc.CallOption) (*PublicShares, error)
	GetPrivateShares(ctx context.Context, in *GetPrivateSharesRequest, opts ...grpc.CallOption) (*PrivateShares, error)
	GetCipherText(ctx context.Context, in *GetCipherTextRequest, opts ...grpc.CallOption) (*CipherText, error)
}

func NewAPIClient

func NewAPIClient(cc *grpc.ClientConn) APIClient

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) MarshalTo

func (m *ByteContent) MarshalTo(dAtA []byte) (int, 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) MarshalTo

func (m *CipherText) MarshalTo(dAtA []byte) (int, 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"`
	Shares     *Shares     `protobuf:"bytes,2,opt,name=shares" json:"shares,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 {
	SecretId  string `protobuf:"bytes,1,opt,name=secret_id,json=secretId,proto3" json:"secret_id,omitempty"`
	Requester string `protobuf:"bytes,2,opt,name=requester,proto3" json:"requester,omitempty"`
}

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 {
	SecretId string `protobuf:"bytes,1,opt,name=secret_id,json=secretId,proto3" json:"secret_id,omitempty"`
}

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) 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 (m *GetSecretRequest) String() string

func (*GetSecretRequest) Unmarshal

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

type PrivateShare

type PrivateShare struct {
	Content   *ByteContent `protobuf:"bytes,1,opt,name=content" json:"content,omitempty"`
	Signature *ByteContent `protobuf:"bytes,2,opt,name=signature" json:"signature,omitempty"`
	Hash      *ByteContent `protobuf:"bytes,3,opt,name=hash" json:"hash,omitempty"`
	Receiver  string       `protobuf:"bytes,4,opt,name=receiver,proto3" json:"receiver,omitempty"`
	Signer    string       `protobuf:"bytes,5,opt,name=signer,proto3" json:"signer,omitempty"`
}

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) MarshalTo

func (m *PrivateShare) MarshalTo(dAtA []byte) (int, 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 {
	Items []*PrivateShare `protobuf:"bytes,1,rep,name=items" json:"items,omitempty"`
}

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) MarshalTo

func (m *PrivateShares) MarshalTo(dAtA []byte) (int, 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 {
	Content   *ByteContent `protobuf:"bytes,1,opt,name=content" json:"content,omitempty"`
	Signature *ByteContent `protobuf:"bytes,2,opt,name=signature" json:"signature,omitempty"`
	Hash      *ByteContent `protobuf:"bytes,3,opt,name=hash" json:"hash,omitempty"`
	Signer    string       `protobuf:"bytes,4,opt,name=signer,proto3" json:"signer,omitempty"`
}

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) MarshalTo

func (m *PublicShare) MarshalTo(dAtA []byte) (int, 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 {
	Items []*PublicShare `protobuf:"bytes,1,rep,name=items" json:"items,omitempty"`
}

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) MarshalTo

func (m *PublicShares) MarshalTo(dAtA []byte) (int, 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 {
	Public  *PublicShares  `protobuf:"bytes,1,opt,name=public" json:"public,omitempty"`
	Private *PrivateShares `protobuf:"bytes,2,opt,name=private" json:"private,omitempty"`
}

func (*Shares) Descriptor

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

func (*Shares) GetPrivate

func (m *Shares) GetPrivate() *PrivateShares

func (*Shares) GetPublic

func (m *Shares) GetPublic() *PublicShares

func (*Shares) Marshal

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

func (*Shares) MarshalTo

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

func (*Shares) ProtoMessage

func (*Shares) ProtoMessage()

func (*Shares) Reset

func (m *Shares) Reset()

func (*Shares) Size

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

func (*Shares) String

func (m *Shares) String() string

func (*Shares) Unmarshal

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

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) MarshalTo

func (m *SimpleSecret) MarshalTo(dAtA []byte) (int, 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

Jump to

Keyboard shortcuts

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