Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGrabClient ¶
Types ¶
type DockerClient ¶
type DockerClient struct { RepoData RepoData // contains filtered or unexported fields }
func NewDockerClient ¶
func NewDockerClient(r RepoData) *DockerClient
func (*DockerClient) DownloadArtifact ¶
func (c *DockerClient) DownloadArtifact(a *artifact.PackageArtifact) (*artifact.PackageArtifact, error)
func (*DockerClient) DownloadFile ¶
func (c *DockerClient) DownloadFile(name string) (string, error)
type HttpClient ¶
type HttpClient struct {
RepoData RepoData
}
func NewHttpClient ¶
func NewHttpClient(r RepoData) *HttpClient
func (*HttpClient) DownloadArtifact ¶
func (c *HttpClient) DownloadArtifact(a *artifact.PackageArtifact) (*artifact.PackageArtifact, error)
func (*HttpClient) DownloadFile ¶
func (c *HttpClient) DownloadFile(name string) (string, error)
func (*HttpClient) PrepareReq ¶
func (c *HttpClient) PrepareReq(dst, url string) (*grab.Request, error)
type LocalClient ¶
type LocalClient struct {
RepoData RepoData
}
func NewLocalClient ¶
func NewLocalClient(r RepoData) *LocalClient
func (*LocalClient) DownloadArtifact ¶
func (c *LocalClient) DownloadArtifact(a *artifact.PackageArtifact) (*artifact.PackageArtifact, error)
func (*LocalClient) DownloadFile ¶
func (c *LocalClient) DownloadFile(name string) (string, error)
Click to show internal directories.
Click to hide internal directories.