cipd

package
v0.0.0-...-d3da680 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package cipd is a CIPD client used by the Swarming server.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client can talk to the CIPD server.

func (*Client) FetchInstance

func (c *Client) FetchInstance(ctx context.Context, server, cipdpkg, iid string) (pkg.Instance, error)

FetchInstance fetches contents of a package given via its instance ID.

The returned package instance must be eventually closed. Do not use with big packages, it will OOM.

Returns gRPC errors.

func (*Client) ResolveVersion

func (c *Client) ResolveVersion(ctx context.Context, server, cipdpkg, version string) (string, error)

ResolveVersion asks the CIPD server to resolve a version label into a concrete CIPD instance ID.

This also indirectly checks if such package version exists at all.

Returns gRPC errors.

Jump to

Keyboard shortcuts

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