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.
Click to show internal directories.
Click to hide internal directories.