Documentation ¶
Index ¶
- Variables
- type Blob
- type Digest
- type Digest_Type
- func (Digest_Type) Descriptor() protoreflect.EnumDescriptor
- func (x Digest_Type) Enum() *Digest_Type
- func (Digest_Type) EnumDescriptor() ([]byte, []int)deprecated
- func (x Digest_Type) Number() protoreflect.EnumNumber
- func (x Digest_Type) String() string
- func (Digest_Type) Type() protoreflect.EnumType
- type File
- type FileNode
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Digest_Type_name = map[int32]string{ 0: "TYPE_UNSPECIFIED", 1: "TYPE_SHAKE256", } Digest_Type_value = map[string]int32{ "TYPE_UNSPECIFIED": 0, "TYPE_SHAKE256": 1, } )
Enum value maps for Digest_Type.
View Source
var File_buf_registry_storage_v1beta1_storage_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Blob ¶
type Blob struct { // The digest of the blob. Digest *Digest `protobuf:"bytes,1,opt,name=digest,proto3" json:"digest,omitempty"` // Content is the content of the blob. // // May be empty. Content []byte `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"` // contains filtered or unexported fields }
Content with its associated digest.
func (*Blob) ProtoReflect ¶
func (x *Blob) ProtoReflect() protoreflect.Message
type Digest ¶
type Digest struct { // The type of the Digest. Type Digest_Type `protobuf:"varint,1,opt,name=type,proto3,enum=buf.registry.storage.v1beta1.Digest_Type" json:"type,omitempty"` // The value of the Digest. Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
A digest.
func (*Digest) GetType ¶
func (x *Digest) GetType() Digest_Type
func (*Digest) ProtoReflect ¶
func (x *Digest) ProtoReflect() protoreflect.Message
type Digest_Type ¶
type Digest_Type int32
The type of Digest.
const ( Digest_TYPE_UNSPECIFIED Digest_Type = 0 // The SHAKE-256 hash function of the SHA-3 family. Digest_TYPE_SHAKE256 Digest_Type = 1 )
func (Digest_Type) Descriptor ¶
func (Digest_Type) Descriptor() protoreflect.EnumDescriptor
func (Digest_Type) Enum ¶
func (x Digest_Type) Enum() *Digest_Type
func (Digest_Type) EnumDescriptor
deprecated
func (Digest_Type) EnumDescriptor() ([]byte, []int)
Deprecated: Use Digest_Type.Descriptor instead.
func (Digest_Type) Number ¶
func (x Digest_Type) Number() protoreflect.EnumNumber
func (Digest_Type) String ¶
func (x Digest_Type) String() string
func (Digest_Type) Type ¶
func (Digest_Type) Type() protoreflect.EnumType
type File ¶
type File struct { // The path of the File. // // The path must be relative, and connect contain any "." or ".." components // The separator "/" must be used. Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` // Content is the content of the blob. // // May be empty. Content []byte `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"` // contains filtered or unexported fields }
A file that can be read or written to from disk.
A File includes a path and associated content. Files are purposfully simple, and do not include attributes such as permissions.
func (*File) ProtoReflect ¶
func (x *File) ProtoReflect() protoreflect.Message
type FileNode ¶
type FileNode struct { // The path of the file. // // The path must be relative, and connect contain any "." or ".." components // The separator "/" must be used. Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` // The digest of the file. // // The digest is always set, even if the file is empty. Digest *Digest `protobuf:"bytes,2,opt,name=digest,proto3" json:"digest,omitempty"` // contains filtered or unexported fields }
A pointer to a file that can be read or written to from disk.
A FileNode includes a path and a digest. FilesNodes are purposfully simple, and do not include attributes such as permissions.
func (*FileNode) ProtoReflect ¶
func (x *FileNode) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.