Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Factory ¶
func Factory(fakes map[string]*Instance) bscas.CasClientFactory
Factory creates a factory that returns CAS clients that use fake data to respond to requests.
The fake data is taken from the fakes argument, which is a map from instance names to the Instance containing the fake data for the instance. Missing keys will have a default Instance. A nil value indicates that the given instance does not exist.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is the client that will serve fake data for a given instance
func (*Client) DownloadDirectory ¶
func (c *Client) DownloadDirectory(ctx context.Context, d digest.Digest, execRoot string, cache filemetadata.Cache) (map[string]*client.TreeOutput, *client.MovedBytesMetadata, error)
Click to show internal directories.
Click to hide internal directories.