Documentation ¶
Index ¶
- Variables
- type Directory
- type Directory_Entry
- func (*Directory_Entry) Descriptor() ([]byte, []int)deprecated
- func (x *Directory_Entry) GetEp() *Entrypoint
- func (x *Directory_Entry) GetName() string
- func (*Directory_Entry) ProtoMessage()
- func (x *Directory_Entry) ProtoReflect() protoreflect.Message
- func (x *Directory_Entry) Reset()
- func (x *Directory_Entry) String() string
- type Entrypoint
- func (*Entrypoint) Descriptor() ([]byte, []int)deprecated
- func (x *Entrypoint) GetBlobName() []byte
- func (x *Entrypoint) GetKeyInfo() *KeyInfo
- func (x *Entrypoint) GetMimeType() string
- func (x *Entrypoint) GetNotValidAfterUnixMicro() int64
- func (x *Entrypoint) GetNotValidBeforeUnixMicro() int64
- func (*Entrypoint) ProtoMessage()
- func (x *Entrypoint) ProtoReflect() protoreflect.Message
- func (x *Entrypoint) Reset()
- func (x *Entrypoint) String() string
- func (ep *Entrypoint) ToBytes() ([]byte, error)
- func (ep *Entrypoint) Validate(currentTime time.Time) error
- type KeyInfo
- type WriterInfo
- func (*WriterInfo) Descriptor() ([]byte, []int)deprecated
- func (x *WriterInfo) GetAuthInfo() []byte
- func (x *WriterInfo) GetBlobName() []byte
- func (x *WriterInfo) GetKey() []byte
- func (*WriterInfo) ProtoMessage()
- func (x *WriterInfo) ProtoReflect() protoreflect.Message
- func (x *WriterInfo) Reset()
- func (x *WriterInfo) String() string
- func (wi *WriterInfo) ToBytes() ([]byte, error)
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) GetEntries ¶
func (x *Directory) GetEntries() []*Directory_Entry
func (*Directory) ProtoMessage ¶
func (*Directory) ProtoMessage()
func (*Directory) ProtoReflect ¶
func (x *Directory) ProtoReflect() protoreflect.Message
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)
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) ProtoMessage ¶
func (*KeyInfo) ProtoMessage()
func (*KeyInfo) ProtoReflect ¶
func (x *KeyInfo) ProtoReflect() protoreflect.Message
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)
Click to show internal directories.
Click to hide internal directories.