xcpb

package
v1.8.6 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package xcpb is a generated protocol buffer package.

It is generated from these files:

xc.proto

It has these top-level messages:

Header
Chunk
Message
Identity
PublicKey
PrivateKey
Secring
Pubring

Index

Constants

This section is empty.

Variables

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

Functions

This section is empty.

Types

type Chunk

type Chunk struct {
	Body []byte `protobuf:"bytes,1,opt,name=Body,proto3" json:"Body,omitempty"`
}

func (*Chunk) Descriptor

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

func (*Chunk) GetBody

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

func (*Chunk) ProtoMessage

func (*Chunk) ProtoMessage()

func (*Chunk) Reset

func (m *Chunk) Reset()

func (*Chunk) String

func (m *Chunk) String() string
type Header struct {
	Sender     string            `protobuf:"bytes,1,opt,name=Sender" json:"Sender,omitempty"`
	Recipients map[string][]byte `` /* 147-byte string literal not displayed */
}

func (*Header) Descriptor

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

func (*Header) GetRecipients

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

func (*Header) GetSender

func (m *Header) GetSender() string

func (*Header) ProtoMessage

func (*Header) ProtoMessage()

func (*Header) Reset

func (m *Header) Reset()

func (*Header) String

func (m *Header) String() string

type Identity

type Identity struct {
	Name    string `protobuf:"bytes,1,opt,name=Name" json:"Name,omitempty"`
	Comment string `protobuf:"bytes,2,opt,name=Comment" json:"Comment,omitempty"`
	Email   string `protobuf:"bytes,3,opt,name=Email" json:"Email,omitempty"`
}

func (*Identity) Descriptor

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

func (*Identity) GetComment

func (m *Identity) GetComment() string

func (*Identity) GetEmail

func (m *Identity) GetEmail() string

func (*Identity) GetName

func (m *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) Reset

func (m *Identity) Reset()

func (*Identity) String

func (m *Identity) String() string

type Message

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

func (*Message) Descriptor

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

func (*Message) GetChunks

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

func (*Message) GetCompressed

func (m *Message) GetCompressed() bool

func (*Message) GetHeader

func (m *Message) GetHeader() *Header

func (*Message) GetVersion

func (m *Message) GetVersion() uint32

func (*Message) ProtoMessage

func (*Message) ProtoMessage()

func (*Message) Reset

func (m *Message) Reset()

func (*Message) String

func (m *Message) String() string

type PrivateKey

type PrivateKey struct {
	PublicKey  *PublicKey `protobuf:"bytes,1,opt,name=PublicKey" 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"`
}

func (*PrivateKey) Descriptor

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

func (*PrivateKey) GetCiphertext

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

func (*PrivateKey) GetNonce

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

func (*PrivateKey) GetPublicKey

func (m *PrivateKey) GetPublicKey() *PublicKey

func (*PrivateKey) GetSalt

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

func (*PrivateKey) ProtoMessage

func (*PrivateKey) ProtoMessage()

func (*PrivateKey) Reset

func (m *PrivateKey) Reset()

func (*PrivateKey) String

func (m *PrivateKey) String() string

type PublicKey

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

func (*PublicKey) Descriptor

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

func (*PublicKey) GetCreationTime

func (m *PublicKey) GetCreationTime() uint64

func (*PublicKey) GetFingerprint

func (m *PublicKey) GetFingerprint() string

func (*PublicKey) GetIdentity

func (m *PublicKey) GetIdentity() *Identity

func (*PublicKey) GetPubKeyAlgo

func (m *PublicKey) GetPubKeyAlgo() PublicKeyAlgorithm

func (*PublicKey) GetPublicKey

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

func (*PublicKey) ProtoMessage

func (*PublicKey) ProtoMessage()

func (*PublicKey) Reset

func (m *PublicKey) Reset()

func (*PublicKey) String

func (m *PublicKey) String() string

type PublicKeyAlgorithm

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

func (PublicKeyAlgorithm) EnumDescriptor

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

func (PublicKeyAlgorithm) String

func (x PublicKeyAlgorithm) String() string

type Pubring

type Pubring struct {
	Version    uint32       `protobuf:"varint,1,opt,name=Version" json:"Version,omitempty"`
	PublicKeys []*PublicKey `protobuf:"bytes,2,rep,name=PublicKeys" json:"PublicKeys,omitempty"`
}

func (*Pubring) Descriptor

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

func (*Pubring) GetPublicKeys

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

func (*Pubring) GetVersion

func (m *Pubring) GetVersion() uint32

func (*Pubring) ProtoMessage

func (*Pubring) ProtoMessage()

func (*Pubring) Reset

func (m *Pubring) Reset()

func (*Pubring) String

func (m *Pubring) String() string

type Secring

type Secring struct {
	Version     uint32        `protobuf:"varint,1,opt,name=Version" json:"Version,omitempty"`
	PrivateKeys []*PrivateKey `protobuf:"bytes,2,rep,name=PrivateKeys" json:"PrivateKeys,omitempty"`
}

func (*Secring) Descriptor

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

func (*Secring) GetPrivateKeys

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

func (*Secring) GetVersion

func (m *Secring) GetVersion() uint32

func (*Secring) ProtoMessage

func (*Secring) ProtoMessage()

func (*Secring) Reset

func (m *Secring) Reset()

func (*Secring) String

func (m *Secring) String() string

Jump to

Keyboard shortcuts

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