containerv1

package
v0.2.11 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2023 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_harp_container_v1_container_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Container

type Container struct {

	// Container headers.
	Headers *Header `protobuf:"bytes,1,opt,name=headers,proto3" json:"headers,omitempty"`
	// Raw hold the complete serialized object in protobuf.
	Raw []byte `protobuf:"bytes,2,opt,name=raw,proto3" json:"raw,omitempty"`
	// contains filtered or unexported fields
}

Container describes the container attributes.

func (*Container) Descriptor deprecated

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

Deprecated: Use Container.ProtoReflect.Descriptor instead.

func (*Container) GetHeaders

func (x *Container) GetHeaders() *Header

func (*Container) GetRaw

func (x *Container) GetRaw() []byte

func (*Container) ProtoMessage

func (*Container) ProtoMessage()

func (*Container) ProtoReflect

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

func (*Container) Reset

func (x *Container) Reset()

func (*Container) String

func (x *Container) String() string
type Header struct {

	// Content encoding describes the content encoding used for raw.
	// Unspecified means no encoding.
	ContentEncoding string `protobuf:"bytes,1,opt,name=content_encoding,json=contentEncoding,proto3" json:"content_encoding,omitempty"`
	// Content type is the serialization method used to serialize 'raw'.
	// Unspecified means "application/vnd.harp.protobuf".
	ContentType string `protobuf:"bytes,2,opt,name=content_type,json=contentType,proto3" json:"content_type,omitempty"`
	// Ephemeral public key used for encryption.
	EncryptionPublicKey []byte `protobuf:"bytes,3,opt,name=encryption_public_key,json=encryptionPublicKey,proto3" json:"encryption_public_key,omitempty"`
	// Container box contains public signing key encrypted with payload key.
	ContainerBox []byte `protobuf:"bytes,4,opt,name=container_box,json=containerBox,proto3" json:"container_box,omitempty"`
	// Recipient list for identity bound secret container.
	Recipients []*Recipient `protobuf:"bytes,6,rep,name=recipients,proto3" json:"recipients,omitempty"`
	// Seal strategy
	SealVersion uint32 `protobuf:"varint,7,opt,name=seal_version,json=sealVersion,proto3" json:"seal_version,omitempty"`
	// contains filtered or unexported fields
}

Header describes container headers.

func (*Header) Descriptor deprecated

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

Deprecated: Use Header.ProtoReflect.Descriptor instead.

func (*Header) GetContainerBox

func (x *Header) GetContainerBox() []byte

func (*Header) GetContentEncoding

func (x *Header) GetContentEncoding() string

func (*Header) GetContentType

func (x *Header) GetContentType() string

func (*Header) GetEncryptionPublicKey

func (x *Header) GetEncryptionPublicKey() []byte

func (*Header) GetRecipients

func (x *Header) GetRecipients() []*Recipient

func (*Header) GetSealVersion added in v0.2.3

func (x *Header) GetSealVersion() uint32

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 Recipient

type Recipient struct {

	// Recipient identifier
	Identifier []byte `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"`
	// Encrypted copy of the payload key for recipient.
	Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
	// contains filtered or unexported fields
}

Recipient describes container recipient informations.

func (*Recipient) Descriptor deprecated

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

Deprecated: Use Recipient.ProtoReflect.Descriptor instead.

func (*Recipient) GetIdentifier

func (x *Recipient) GetIdentifier() []byte

func (*Recipient) GetKey

func (x *Recipient) GetKey() []byte

func (*Recipient) ProtoMessage

func (*Recipient) ProtoMessage()

func (*Recipient) ProtoReflect

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

func (*Recipient) Reset

func (x *Recipient) Reset()

func (*Recipient) String

func (x *Recipient) String() string

Jump to

Keyboard shortcuts

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