Documentation ¶
Index ¶
- type Client
- func (c *Client) Archive(name, version, path string, out io.Writer) error
- func (c *Client) Directory(name, version, path string) ([]string, []string, error)
- func (c *Client) Download(name, version string) (string, error)
- func (c *Client) File(name, version, path string) (string, error)
- func (c *Client) Versions(name string) ([]string, string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Contents map[string]map[string]string Latest string DirectoryErr error DownloadErr error FileErr error VersionsErr error }
Client is a mock implementation of the registry.Client interface.
func (*Client) Directory ¶
Directory lists all the sub-directories and files at the given path in the mocked contents. Package name is ignored.
func (*Client) Download ¶
Download writes the mocked contents to a temporary directory. Package name is ignored.
Click to show internal directories.
Click to hide internal directories.