Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UseCipdClientFactory ¶
func UseCipdClientFactory(ctx context.Context, factory CipdClientFactory) context.Context
UseCipdClientFactory returns a context that causes new Client instances to use the given factory when getting the CIPD client.
Types ¶
type CipdClient ¶
type CipdClient interface { ResolveVersion(ctx context.Context, packageName, version string) (common.Pin, error) EnsurePackages(ctx context.Context, packages common.PinSliceBySubdir, paranoia cipd.ParanoidMode, dryRun bool) (cipd.ActionMap, error) }
CipdClient provides a subset of the cipd.Client interface
type CipdClientFactory ¶
type CipdClientFactory func(ctx context.Context, cipdRoot string) (CipdClient, error)
CipdClientFactory creates the client for accessing CIPD that will deploy packages to the directory identified by cipdRoot.
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client provides the recipe-related operations required for bootstrapping.
func NewClient ¶
NewClient returns a new recipe client.
If ctx is a context returned from UseCipdClientFactory, then the returned client will use the factory that was passed to UseCipdClientFactory to get a CIPD client. Otherwise, a client created using cipd.NewClient with default options will be used.