storagev1beta1

package
v1.31.0-20231030205331... Latest Latest
Warning

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

Go to latest
Published: unknown License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

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) Descriptor deprecated

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

Deprecated: Use Blob.ProtoReflect.Descriptor instead.

func (*Blob) GetContent

func (x *Blob) GetContent() []byte

func (*Blob) GetDigest

func (x *Blob) GetDigest() *Digest

func (*Blob) ProtoMessage

func (*Blob) ProtoMessage()

func (*Blob) ProtoReflect

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

func (*Blob) Reset

func (x *Blob) Reset()

func (*Blob) String

func (x *Blob) String() string

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) Descriptor deprecated

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

Deprecated: Use Digest.ProtoReflect.Descriptor instead.

func (*Digest) GetType

func (x *Digest) GetType() Digest_Type

func (*Digest) GetValue

func (x *Digest) GetValue() []byte

func (*Digest) ProtoMessage

func (*Digest) ProtoMessage()

func (*Digest) ProtoReflect

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

func (*Digest) Reset

func (x *Digest) Reset()

func (*Digest) String

func (x *Digest) String() string

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) 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

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.
	//
	// TODO: Can we encode the above requirements via validation?
	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) Descriptor deprecated

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

Deprecated: Use File.ProtoReflect.Descriptor instead.

func (*File) GetContent

func (x *File) GetContent() []byte

func (*File) GetPath

func (x *File) GetPath() string

func (*File) ProtoMessage

func (*File) ProtoMessage()

func (*File) ProtoReflect

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

func (*File) Reset

func (x *File) Reset()

func (*File) String

func (x *File) String() string

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.
	//
	// TODO: Can we encode the above requirements via validation?
	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) Descriptor deprecated

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

Deprecated: Use FileNode.ProtoReflect.Descriptor instead.

func (*FileNode) GetDigest

func (x *FileNode) GetDigest() *Digest

func (*FileNode) GetPath

func (x *FileNode) GetPath() string

func (*FileNode) ProtoMessage

func (*FileNode) ProtoMessage()

func (*FileNode) ProtoReflect

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

func (*FileNode) Reset

func (x *FileNode) Reset()

func (*FileNode) String

func (x *FileNode) String() string

Jump to

Keyboard shortcuts

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