Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ExcludeGitDir is a regular expression which may be passed to // Client.Upload to exclude the ".git" directory. ExcludeGitDir = `^(.*\/)*\.git(\/.*)*$` // InstanceChromiumSwarm is the RBE instance used for chromium-swarm. InstanceChromiumSwarm = "projects/chromium-swarm/instances/default_instance" // InstanceChromiumSwarmDev is the RBE instance used for chromium-swarm-dev. InstanceChromiumSwarmDev = "projects/chromium-swarm-dev/instances/default_instance" // InstanceChromeSwarming is the RBE instance used for chrome-swarming. InstanceChromeSwarming = "projects/chrome-swarming/instances/default_instance" )
Variables ¶
View Source
var ( // EmptyDigest is the digest of an empty entry in RBE-CAS. EmptyDigest = digest.Empty.String() )
Functions ¶
func DigestToString ¶
DigestToString creates a string for the digest with the given hash and size.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a struct used to interact with RBE-CAS.
type RBEClient ¶
type RBEClient interface { Close() error ComputeMerkleTree(ctx context.Context, execRoot, workingDir, remoteWorkingDir string, is *command.InputSpec, cache filemetadata.Cache) (root digest.Digest, inputs []*uploadinfo.Entry, stats *client.TreeStats, err error) DownloadDirectory(ctx context.Context, d digest.Digest, execRoot string, cache filemetadata.Cache) (map[string]*client.TreeOutput, *client.MovedBytesMetadata, error) GetDirectoryTree(ctx context.Context, d *remoteexecution.Digest) (result []*remoteexecution.Directory, err error) UploadIfMissing(ctx context.Context, data ...*uploadinfo.Entry) ([]digest.Digest, int64, error) }
RBEClient is an abstraction of client.Client which enables mocks for testing.
Click to show internal directories.
Click to hide internal directories.