xcpb

package
v1.10.1 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PublicKeyAlgorithm_name = map[int32]string{
		0: "UNKNOWN",
		1: "NACL",
	}
	PublicKeyAlgorithm_value = map[string]int32{
		"UNKNOWN": 0,
		"NACL":    1,
	}
)

Enum value maps for PublicKeyAlgorithm.

Functions

This section is empty.

Types

type Chunk

type Chunk struct {
	Body []byte `protobuf:"bytes,1,opt,name=Body,proto3" json:"Body,omitempty"`
	// contains filtered or unexported fields
}

func (*Chunk) Descriptor deprecated

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

Deprecated: Use Chunk.ProtoReflect.Descriptor instead.

func (*Chunk) GetBody

func (x *Chunk) GetBody() []byte

func (*Chunk) ProtoMessage

func (*Chunk) ProtoMessage()

func (*Chunk) ProtoReflect

func (x *Chunk) ProtoReflect() protoreflect.Message

func (*Chunk) Reset

func (x *Chunk) Reset()

func (*Chunk) String

func (x *Chunk) String() string
type Header struct {
	Sender     string            `protobuf:"bytes,1,opt,name=Sender,proto3" json:"Sender,omitempty"`
	Recipients map[string][]byte `` /* 161-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Header) Descriptor deprecated

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

Deprecated: Use Header.ProtoReflect.Descriptor instead.

func (*Header) GetRecipients

func (x *Header) GetRecipients() map[string][]byte

func (*Header) GetSender

func (x *Header) GetSender() string

func (*Header) ProtoMessage

func (*Header) ProtoMessage()

func (*Header) ProtoReflect

func (x *Header) ProtoReflect() protoreflect.Message

func (*Header) Reset

func (x *Header) Reset()

func (*Header) String

func (x *Header) String() string

type Identity

type Identity struct {
	Name    string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"`
	Comment string `protobuf:"bytes,2,opt,name=Comment,proto3" json:"Comment,omitempty"`
	Email   string `protobuf:"bytes,3,opt,name=Email,proto3" json:"Email,omitempty"`
	// contains filtered or unexported fields
}

func (*Identity) Descriptor deprecated

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

Deprecated: Use Identity.ProtoReflect.Descriptor instead.

func (*Identity) GetComment

func (x *Identity) GetComment() string

func (*Identity) GetEmail

func (x *Identity) GetEmail() string

func (*Identity) GetName

func (x *Identity) GetName() string

func (*Identity) ID

func (i *Identity) ID() string

ID returns the GPG ID format

func (*Identity) ProtoMessage

func (*Identity) ProtoMessage()

func (*Identity) ProtoReflect

func (x *Identity) ProtoReflect() protoreflect.Message

func (*Identity) Reset

func (x *Identity) Reset()

func (*Identity) String

func (x *Identity) String() string

type Message

type Message struct {
	Version    uint32   `protobuf:"varint,1,opt,name=Version,proto3" json:"Version,omitempty"`
	Header     *Header  `protobuf:"bytes,2,opt,name=Header,proto3" json:"Header,omitempty"`
	Chunks     []*Chunk `protobuf:"bytes,3,rep,name=Chunks,proto3" json:"Chunks,omitempty"`
	Compressed bool     `protobuf:"varint,4,opt,name=Compressed,proto3" json:"Compressed,omitempty"`
	// contains filtered or unexported fields
}

func (*Message) Descriptor deprecated

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

Deprecated: Use Message.ProtoReflect.Descriptor instead.

func (*Message) GetChunks

func (x *Message) GetChunks() []*Chunk

func (*Message) GetCompressed

func (x *Message) GetCompressed() bool

func (*Message) GetHeader

func (x *Message) GetHeader() *Header

func (*Message) GetVersion

func (x *Message) GetVersion() uint32

func (*Message) ProtoMessage

func (*Message) ProtoMessage()

func (*Message) ProtoReflect

func (x *Message) ProtoReflect() protoreflect.Message

func (*Message) Reset

func (x *Message) Reset()

func (*Message) String

func (x *Message) String() string

type PrivateKey

type PrivateKey struct {
	PublicKey  *PublicKey `protobuf:"bytes,1,opt,name=PublicKey,proto3" json:"PublicKey,omitempty"`
	Ciphertext []byte     `protobuf:"bytes,2,opt,name=Ciphertext,proto3" json:"Ciphertext,omitempty"`
	Nonce      []byte     `protobuf:"bytes,3,opt,name=Nonce,proto3" json:"Nonce,omitempty"`
	Salt       []byte     `protobuf:"bytes,4,opt,name=Salt,proto3" json:"Salt,omitempty"`
	// contains filtered or unexported fields
}

func (*PrivateKey) Descriptor deprecated

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

Deprecated: Use PrivateKey.ProtoReflect.Descriptor instead.

func (*PrivateKey) GetCiphertext

func (x *PrivateKey) GetCiphertext() []byte

func (*PrivateKey) GetNonce

func (x *PrivateKey) GetNonce() []byte

func (*PrivateKey) GetPublicKey

func (x *PrivateKey) GetPublicKey() *PublicKey

func (*PrivateKey) GetSalt

func (x *PrivateKey) GetSalt() []byte

func (*PrivateKey) ProtoMessage

func (*PrivateKey) ProtoMessage()

func (*PrivateKey) ProtoReflect

func (x *PrivateKey) ProtoReflect() protoreflect.Message

func (*PrivateKey) Reset

func (x *PrivateKey) Reset()

func (*PrivateKey) String

func (x *PrivateKey) String() string

type PublicKey

type PublicKey struct {
	PubKeyAlgo   PublicKeyAlgorithm `protobuf:"varint,1,opt,name=PubKeyAlgo,proto3,enum=xcpb.PublicKeyAlgorithm" json:"PubKeyAlgo,omitempty"`
	CreationTime uint64             `protobuf:"varint,2,opt,name=CreationTime,proto3" json:"CreationTime,omitempty"`
	PublicKey    []byte             `protobuf:"bytes,3,opt,name=PublicKey,proto3" json:"PublicKey,omitempty"`
	Identity     *Identity          `protobuf:"bytes,4,opt,name=Identity,proto3" json:"Identity,omitempty"`
	Fingerprint  string             `protobuf:"bytes,5,opt,name=Fingerprint,proto3" json:"Fingerprint,omitempty"`
	// contains filtered or unexported fields
}

func (*PublicKey) Descriptor deprecated

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

Deprecated: Use PublicKey.ProtoReflect.Descriptor instead.

func (*PublicKey) GetCreationTime

func (x *PublicKey) GetCreationTime() uint64

func (*PublicKey) GetFingerprint

func (x *PublicKey) GetFingerprint() string

func (*PublicKey) GetIdentity

func (x *PublicKey) GetIdentity() *Identity

func (*PublicKey) GetPubKeyAlgo

func (x *PublicKey) GetPubKeyAlgo() PublicKeyAlgorithm

func (*PublicKey) GetPublicKey

func (x *PublicKey) GetPublicKey() []byte

func (*PublicKey) ProtoMessage

func (*PublicKey) ProtoMessage()

func (*PublicKey) ProtoReflect

func (x *PublicKey) ProtoReflect() protoreflect.Message

func (*PublicKey) Reset

func (x *PublicKey) Reset()

func (*PublicKey) String

func (x *PublicKey) String() string

type PublicKeyAlgorithm

type PublicKeyAlgorithm int32
const (
	PublicKeyAlgorithm_UNKNOWN PublicKeyAlgorithm = 0
	PublicKeyAlgorithm_NACL    PublicKeyAlgorithm = 1
)

func (PublicKeyAlgorithm) Descriptor

func (PublicKeyAlgorithm) Enum

func (PublicKeyAlgorithm) EnumDescriptor deprecated

func (PublicKeyAlgorithm) EnumDescriptor() ([]byte, []int)

Deprecated: Use PublicKeyAlgorithm.Descriptor instead.

func (PublicKeyAlgorithm) Number

func (PublicKeyAlgorithm) String

func (x PublicKeyAlgorithm) String() string

func (PublicKeyAlgorithm) Type

type Pubring

type Pubring struct {
	Version    uint32       `protobuf:"varint,1,opt,name=Version,proto3" json:"Version,omitempty"`
	PublicKeys []*PublicKey `protobuf:"bytes,2,rep,name=PublicKeys,proto3" json:"PublicKeys,omitempty"`
	// contains filtered or unexported fields
}

func (*Pubring) Descriptor deprecated

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

Deprecated: Use Pubring.ProtoReflect.Descriptor instead.

func (*Pubring) GetPublicKeys

func (x *Pubring) GetPublicKeys() []*PublicKey

func (*Pubring) GetVersion

func (x *Pubring) GetVersion() uint32

func (*Pubring) ProtoMessage

func (*Pubring) ProtoMessage()

func (*Pubring) ProtoReflect

func (x *Pubring) ProtoReflect() protoreflect.Message

func (*Pubring) Reset

func (x *Pubring) Reset()

func (*Pubring) String

func (x *Pubring) String() string

type Secring

type Secring struct {
	Version     uint32        `protobuf:"varint,1,opt,name=Version,proto3" json:"Version,omitempty"`
	PrivateKeys []*PrivateKey `protobuf:"bytes,2,rep,name=PrivateKeys,proto3" json:"PrivateKeys,omitempty"`
	// contains filtered or unexported fields
}

func (*Secring) Descriptor deprecated

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

Deprecated: Use Secring.ProtoReflect.Descriptor instead.

func (*Secring) GetPrivateKeys

func (x *Secring) GetPrivateKeys() []*PrivateKey

func (*Secring) GetVersion

func (x *Secring) GetVersion() uint32

func (*Secring) ProtoMessage

func (*Secring) ProtoMessage()

func (*Secring) ProtoReflect

func (x *Secring) ProtoReflect() protoreflect.Message

func (*Secring) Reset

func (x *Secring) Reset()

func (*Secring) String

func (x *Secring) String() string

Jump to

Keyboard shortcuts

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