protobuf

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidEntrypoint     = errors.New("invalid entrypoint")
	ErrInvalidEntrypointTime = errors.New("%w: time validation failed")
)
View Source
var File_protobuf_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Directory

type Directory struct {

	// List of directory entries, shall be sorted by the name (sorting topologically by the utf-8 byte representation of the name)
	Entries []*Directory_Entry `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"`
	// contains filtered or unexported fields
}

Directory represents a content of a static directory

func (*Directory) Descriptor deprecated

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

Deprecated: Use Directory.ProtoReflect.Descriptor instead.

func (*Directory) GetEntries

func (x *Directory) GetEntries() []*Directory_Entry

func (*Directory) ProtoMessage

func (*Directory) ProtoMessage()

func (*Directory) ProtoReflect

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

func (*Directory) Reset

func (x *Directory) Reset()

func (*Directory) String

func (x *Directory) String() string

type Directory_Entry added in v0.0.6

type Directory_Entry struct {
	Name string      `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Ep   *Entrypoint `protobuf:"bytes,2,opt,name=ep,proto3" json:"ep,omitempty"`
	// contains filtered or unexported fields
}

func (*Directory_Entry) Descriptor deprecated added in v0.0.6

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

Deprecated: Use Directory_Entry.ProtoReflect.Descriptor instead.

func (*Directory_Entry) GetEp added in v0.0.6

func (x *Directory_Entry) GetEp() *Entrypoint

func (*Directory_Entry) GetName added in v0.0.6

func (x *Directory_Entry) GetName() string

func (*Directory_Entry) ProtoMessage added in v0.0.6

func (*Directory_Entry) ProtoMessage()

func (*Directory_Entry) ProtoReflect added in v0.0.6

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

func (*Directory_Entry) Reset added in v0.0.6

func (x *Directory_Entry) Reset()

func (*Directory_Entry) String added in v0.0.6

func (x *Directory_Entry) String() string

type Entrypoint

type Entrypoint struct {
	BlobName                []byte   `protobuf:"bytes,1,opt,name=blobName,proto3" json:"blobName,omitempty"`
	KeyInfo                 *KeyInfo `protobuf:"bytes,2,opt,name=keyInfo,proto3" json:"keyInfo,omitempty"`
	MimeType                string   `protobuf:"bytes,3,opt,name=mimeType,proto3" json:"mimeType,omitempty"`
	NotValidBeforeUnixMicro int64    `protobuf:"varint,4,opt,name=notValidBeforeUnixMicro,proto3" json:"notValidBeforeUnixMicro,omitempty"`
	NotValidAfterUnixMicro  int64    `protobuf:"varint,5,opt,name=notValidAfterUnixMicro,proto3" json:"notValidAfterUnixMicro,omitempty"`
	// contains filtered or unexported fields
}

Entry represents a single entry of a directory

func EntryPointFromBytes

func EntryPointFromBytes(b []byte) (*Entrypoint, error)

func (*Entrypoint) Descriptor deprecated

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

Deprecated: Use Entrypoint.ProtoReflect.Descriptor instead.

func (*Entrypoint) GetBlobName

func (x *Entrypoint) GetBlobName() []byte

func (*Entrypoint) GetKeyInfo

func (x *Entrypoint) GetKeyInfo() *KeyInfo

func (*Entrypoint) GetMimeType

func (x *Entrypoint) GetMimeType() string

func (*Entrypoint) GetNotValidAfterUnixMicro

func (x *Entrypoint) GetNotValidAfterUnixMicro() int64

func (*Entrypoint) GetNotValidBeforeUnixMicro

func (x *Entrypoint) GetNotValidBeforeUnixMicro() int64

func (*Entrypoint) ProtoMessage

func (*Entrypoint) ProtoMessage()

func (*Entrypoint) ProtoReflect

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

func (*Entrypoint) Reset

func (x *Entrypoint) Reset()

func (*Entrypoint) String

func (x *Entrypoint) String() string

func (*Entrypoint) ToBytes

func (ep *Entrypoint) ToBytes() ([]byte, error)

func (*Entrypoint) Validate

func (ep *Entrypoint) Validate(currentTime time.Time) error

type KeyInfo

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

KeyInfo represents encryption key information

func (*KeyInfo) Descriptor deprecated

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

Deprecated: Use KeyInfo.ProtoReflect.Descriptor instead.

func (*KeyInfo) GetKey

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

func (*KeyInfo) ProtoMessage

func (*KeyInfo) ProtoMessage()

func (*KeyInfo) ProtoReflect

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

func (*KeyInfo) Reset

func (x *KeyInfo) Reset()

func (*KeyInfo) String

func (x *KeyInfo) String() string

type WriterInfo

type WriterInfo struct {
	BlobName []byte `protobuf:"bytes,1,opt,name=blobName,proto3" json:"blobName,omitempty"`
	Key      []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
	AuthInfo []byte `protobuf:"bytes,3,opt,name=authInfo,proto3" json:"authInfo,omitempty"`
	// contains filtered or unexported fields
}

WriterInfo contains information that allows updating given blob

func WriterInfoFromBytes

func WriterInfoFromBytes(b []byte) (*WriterInfo, error)

func (*WriterInfo) Descriptor deprecated

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

Deprecated: Use WriterInfo.ProtoReflect.Descriptor instead.

func (*WriterInfo) GetAuthInfo

func (x *WriterInfo) GetAuthInfo() []byte

func (*WriterInfo) GetBlobName

func (x *WriterInfo) GetBlobName() []byte

func (*WriterInfo) GetKey

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

func (*WriterInfo) ProtoMessage

func (*WriterInfo) ProtoMessage()

func (*WriterInfo) ProtoReflect

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

func (*WriterInfo) Reset

func (x *WriterInfo) Reset()

func (*WriterInfo) String

func (x *WriterInfo) String() string

func (*WriterInfo) ToBytes

func (wi *WriterInfo) ToBytes() ([]byte, error)

Jump to

Keyboard shortcuts

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