manifest

package
v0.0.0-...-7220889 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2025 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Overview

Package manifest provides protocol buffer message for artfs manifest.

Index

Constants

This section is empty.

Variables

View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Digest.ProtoReflect.Descriptor instead.

func (*Digest) GetHash

func (x *Digest) GetHash() string

func (*Digest) GetSizeBytes

func (x *Digest) GetSizeBytes() int64

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 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) Descriptor() ([]byte, []int)

Deprecated: Use Manifest.ProtoReflect.Descriptor instead.

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

func (*Manifest) Reset

func (x *Manifest) Reset()

func (*Manifest) String

func (x *Manifest) String() string

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

Jump to

Keyboard shortcuts

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