gopass: github.com/justwatchcom/gopass/pkg/backend/crypto/xc/xcpb Index | Files

package xcpb

import "github.com/justwatchcom/gopass/pkg/backend/crypto/xc/xcpb"

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

Package Files

identity.go xc.pb.go

Variables

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

type Chunk Uses

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

func (*Chunk) Descriptor Uses

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

func (*Chunk) GetBody Uses

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

func (*Chunk) ProtoMessage Uses

func (*Chunk) ProtoMessage()

func (*Chunk) Reset Uses

func (m *Chunk) Reset()

func (*Chunk) String Uses

func (m *Chunk) String() string
type Header struct {
    Sender     string            `protobuf:"bytes,1,opt,name=Sender" json:"Sender,omitempty"`
    Recipients map[string][]byte `protobuf:"bytes,2,rep,name=Recipients" json:"Recipients,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value,proto3"`
}

func (*Header) Descriptor Uses

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

func (*Header) GetRecipients Uses

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

func (*Header) GetSender Uses

func (m *Header) GetSender() string

func (*Header) ProtoMessage Uses

func (*Header) ProtoMessage()

func (*Header) Reset Uses

func (m *Header) Reset()

func (*Header) String Uses

func (m *Header) String() string

type Identity Uses

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 Uses

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

func (*Identity) GetComment Uses

func (m *Identity) GetComment() string

func (*Identity) GetEmail Uses

func (m *Identity) GetEmail() string

func (*Identity) GetName Uses

func (m *Identity) GetName() string

func (Identity) ID Uses

func (i Identity) ID() string

ID returns the GPG ID format

func (*Identity) ProtoMessage Uses

func (*Identity) ProtoMessage()

func (*Identity) Reset Uses

func (m *Identity) Reset()

func (*Identity) String Uses

func (m *Identity) String() string

type Message Uses

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 Uses

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

func (*Message) GetChunks Uses

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

func (*Message) GetCompressed Uses

func (m *Message) GetCompressed() bool

func (*Message) GetHeader Uses

func (m *Message) GetHeader() *Header

func (*Message) GetVersion Uses

func (m *Message) GetVersion() uint32

func (*Message) ProtoMessage Uses

func (*Message) ProtoMessage()

func (*Message) Reset Uses

func (m *Message) Reset()

func (*Message) String Uses

func (m *Message) String() string

type PrivateKey Uses

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 Uses

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

func (*PrivateKey) GetCiphertext Uses

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

func (*PrivateKey) GetNonce Uses

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

func (*PrivateKey) GetPublicKey Uses

func (m *PrivateKey) GetPublicKey() *PublicKey

func (*PrivateKey) GetSalt Uses

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

func (*PrivateKey) ProtoMessage Uses

func (*PrivateKey) ProtoMessage()

func (*PrivateKey) Reset Uses

func (m *PrivateKey) Reset()

func (*PrivateKey) String Uses

func (m *PrivateKey) String() string

type PublicKey Uses

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 Uses

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

func (*PublicKey) GetCreationTime Uses

func (m *PublicKey) GetCreationTime() uint64

func (*PublicKey) GetFingerprint Uses

func (m *PublicKey) GetFingerprint() string

func (*PublicKey) GetIdentity Uses

func (m *PublicKey) GetIdentity() *Identity

func (*PublicKey) GetPubKeyAlgo Uses

func (m *PublicKey) GetPubKeyAlgo() PublicKeyAlgorithm

func (*PublicKey) GetPublicKey Uses

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

func (*PublicKey) ProtoMessage Uses

func (*PublicKey) ProtoMessage()

func (*PublicKey) Reset Uses

func (m *PublicKey) Reset()

func (*PublicKey) String Uses

func (m *PublicKey) String() string

type PublicKeyAlgorithm Uses

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

func (PublicKeyAlgorithm) EnumDescriptor Uses

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

func (PublicKeyAlgorithm) String Uses

func (x PublicKeyAlgorithm) String() string

type Pubring Uses

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 Uses

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

func (*Pubring) GetPublicKeys Uses

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

func (*Pubring) GetVersion Uses

func (m *Pubring) GetVersion() uint32

func (*Pubring) ProtoMessage Uses

func (*Pubring) ProtoMessage()

func (*Pubring) Reset Uses

func (m *Pubring) Reset()

func (*Pubring) String Uses

func (m *Pubring) String() string

type Secring Uses

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 Uses

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

func (*Secring) GetPrivateKeys Uses

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

func (*Secring) GetVersion Uses

func (m *Secring) GetVersion() uint32

func (*Secring) ProtoMessage Uses

func (*Secring) ProtoMessage()

func (*Secring) Reset Uses

func (m *Secring) Reset()

func (*Secring) String Uses

func (m *Secring) String() string

Package xcpb imports 3 packages (graph). Updated 2018-06-13. Refresh now. Tools for package owners.