Documentation
¶
Overview ¶
Package manifest provides protocol buffer message for artfs manifest.
Index ¶
- Variables
- type Digest
- type FileManifest
- func (*FileManifest) Descriptor() ([]byte, []int)deprecated
- func (x *FileManifest) GetDigest() *Digest
- func (x *FileManifest) GetIsEmptyDirectory() bool
- func (x *FileManifest) GetIsExecutable() bool
- func (x *FileManifest) GetNodeProperties() *NodeProperties
- func (x *FileManifest) GetPath() string
- func (x *FileManifest) GetSymlinkTarget() string
- func (*FileManifest) ProtoMessage()
- func (x *FileManifest) ProtoReflect() protoreflect.Message
- func (x *FileManifest) Reset()
- func (x *FileManifest) String() string
- type Manifest
- type NodeProperties
- func (*NodeProperties) Descriptor() ([]byte, []int)deprecated
- func (x *NodeProperties) GetMtime() *timestamppb.Timestamp
- func (x *NodeProperties) GetProperties() []*NodeProperty
- func (x *NodeProperties) GetUnixMode() *wrapperspb.UInt32Value
- func (*NodeProperties) ProtoMessage()
- func (x *NodeProperties) ProtoReflect() protoreflect.Message
- func (x *NodeProperties) Reset()
- func (x *NodeProperties) String() string
- type NodeProperty
- func (*NodeProperty) Descriptor() ([]byte, []int)deprecated
- func (x *NodeProperty) GetName() string
- func (x *NodeProperty) GetValue() string
- func (*NodeProperty) ProtoMessage()
- func (x *NodeProperty) ProtoReflect() protoreflect.Message
- func (x *NodeProperty) Reset()
- func (x *NodeProperty) String() string
Constants ¶
This section is empty.
Variables ¶
var File_manifest_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Digest ¶
type Digest struct { // The hash, represented as a lowercase hexadecimal string, padded with // leading zeroes up to the hash function length. Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` // The size of the blob, in bytes. SizeBytes int64 `protobuf:"varint,2,opt,name=size_bytes,json=sizeBytes,proto3" json:"size_bytes,omitempty"` // contains filtered or unexported fields }
A copy of Digest from https://github.com/bazelbuild/remote-apis/blob/main/build/bazel/remote/execution/v2/remote_execution.proto to avoid importing it as a proto dependency.
func (*Digest) Descriptor
deprecated
func (*Digest) GetSizeBytes ¶
func (*Digest) ProtoMessage ¶
func (*Digest) ProtoMessage()
func (*Digest) ProtoReflect ¶
func (x *Digest) ProtoReflect() protoreflect.Message
type FileManifest ¶
type FileManifest struct { // The digest of the file's content. Digest *Digest `protobuf:"bytes,1,opt,name=digest,proto3" json:"digest,omitempty"` // The path of the file. Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` // True if this file is executable, false otherwise. IsExecutable bool `protobuf:"varint,3,opt,name=is_executable,json=isExecutable,proto3" json:"is_executable,omitempty"` // True if path is an empty directory. IsEmptyDirectory bool `protobuf:"varint,4,opt,name=is_empty_directory,json=isEmptyDirectory,proto3" json:"is_empty_directory,omitempty"` // If it is a symlink, then its target path. SymlinkTarget string `protobuf:"bytes,5,opt,name=symlink_target,json=symlinkTarget,proto3" json:"symlink_target,omitempty"` // Properties for each FileManifest entry. NodeProperties *NodeProperties `protobuf:"bytes,6,opt,name=node_properties,json=nodeProperties,proto3" json:"node_properties,omitempty"` // contains filtered or unexported fields }
This proto is intended to match with the tree.TreeOutput struct in the remote-apis-sdks, so that we can reuse some of the functions for downloading.
func (*FileManifest) Descriptor
deprecated
func (*FileManifest) Descriptor() ([]byte, []int)
Deprecated: Use FileManifest.ProtoReflect.Descriptor instead.
func (*FileManifest) GetDigest ¶
func (x *FileManifest) GetDigest() *Digest
func (*FileManifest) GetIsEmptyDirectory ¶
func (x *FileManifest) GetIsEmptyDirectory() bool
func (*FileManifest) GetIsExecutable ¶
func (x *FileManifest) GetIsExecutable() bool
func (*FileManifest) GetNodeProperties ¶
func (x *FileManifest) GetNodeProperties() *NodeProperties
func (*FileManifest) GetPath ¶
func (x *FileManifest) GetPath() string
func (*FileManifest) GetSymlinkTarget ¶
func (x *FileManifest) GetSymlinkTarget() string
func (*FileManifest) ProtoMessage ¶
func (*FileManifest) ProtoMessage()
func (*FileManifest) ProtoReflect ¶
func (x *FileManifest) ProtoReflect() protoreflect.Message
func (*FileManifest) Reset ¶
func (x *FileManifest) Reset()
func (*FileManifest) String ¶
func (x *FileManifest) String() string
type Manifest ¶
type Manifest struct { // Map of all files from filepath to FileManifest. Files map[string]*FileManifest `` /* 137-byte string literal not displayed */ // contains filtered or unexported fields }
func (*Manifest) Descriptor
deprecated
func (*Manifest) GetFiles ¶
func (x *Manifest) GetFiles() map[string]*FileManifest
func (*Manifest) ProtoMessage ¶
func (*Manifest) ProtoMessage()
func (*Manifest) ProtoReflect ¶
func (x *Manifest) ProtoReflect() protoreflect.Message
type NodeProperties ¶
type NodeProperties struct { // A list of string-based // [NodeProperties][build.bazel.remote.execution.v2.NodeProperty]. Properties []*NodeProperty `protobuf:"bytes,1,rep,name=properties,proto3" json:"properties,omitempty"` // The file's last modification timestamp. Mtime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=mtime,proto3" json:"mtime,omitempty"` // The UNIX file mode, e.g., 0755. UnixMode *wrapperspb.UInt32Value `protobuf:"bytes,3,opt,name=unix_mode,json=unixMode,proto3" json:"unix_mode,omitempty"` // contains filtered or unexported fields }
A copy of NodeProperties from https://github.com/bazelbuild/remote-apis/blob/main/build/bazel/remote/execution/v2/remote_execution.proto to avoid importing it as a proto dependency.
func (*NodeProperties) Descriptor
deprecated
func (*NodeProperties) Descriptor() ([]byte, []int)
Deprecated: Use NodeProperties.ProtoReflect.Descriptor instead.
func (*NodeProperties) GetMtime ¶
func (x *NodeProperties) GetMtime() *timestamppb.Timestamp
func (*NodeProperties) GetProperties ¶
func (x *NodeProperties) GetProperties() []*NodeProperty
func (*NodeProperties) GetUnixMode ¶
func (x *NodeProperties) GetUnixMode() *wrapperspb.UInt32Value
func (*NodeProperties) ProtoMessage ¶
func (*NodeProperties) ProtoMessage()
func (*NodeProperties) ProtoReflect ¶
func (x *NodeProperties) ProtoReflect() protoreflect.Message
func (*NodeProperties) Reset ¶
func (x *NodeProperties) Reset()
func (*NodeProperties) String ¶
func (x *NodeProperties) String() string
type NodeProperty ¶
type NodeProperty struct { // The property name. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The property value. Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
A copy of NodeProperty from https://github.com/bazelbuild/remote-apis/blob/main/build/bazel/remote/execution/v2/remote_execution.proto to avoid importing it as a proto dependency.
func (*NodeProperty) Descriptor
deprecated
func (*NodeProperty) Descriptor() ([]byte, []int)
Deprecated: Use NodeProperty.ProtoReflect.Descriptor instead.
func (*NodeProperty) GetName ¶
func (x *NodeProperty) GetName() string
func (*NodeProperty) GetValue ¶
func (x *NodeProperty) GetValue() string
func (*NodeProperty) ProtoMessage ¶
func (*NodeProperty) ProtoMessage()
func (*NodeProperty) ProtoReflect ¶
func (x *NodeProperty) ProtoReflect() protoreflect.Message
func (*NodeProperty) Reset ¶
func (x *NodeProperty) Reset()
func (*NodeProperty) String ¶
func (x *NodeProperty) String() string