Documentation ¶
Overview ¶
Package artifetcher downloads the artifact given a URL.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArtifactoryRequestError ¶ added in v0.6.0
type ArtifactoryRequestError struct {
Err error
}
func (ArtifactoryRequestError) Error ¶ added in v0.6.0
func (e ArtifactoryRequestError) Error() string
type Artifetcher ¶
Artifetcher fetches artifacts within a file system with an Extractor.
func (*Artifetcher) Fetch ¶
func (a *Artifetcher) Fetch(url, manifest string) (string, error)
Fetch downloads an artifact located at URL. It then passes it to the extractor with the manifest for unzipping.
Returns a string to the unzipped artifacts path and an error.
func (*Artifetcher) FetchZipFromRequest ¶ added in v0.4.0
func (a *Artifetcher) FetchZipFromRequest(req *http.Request) (string, error)
FetchZipFromRequest fetches files from a compressed zip file in the request body.
Returns a string to the unzipped application path and an error.
type CreateTempDirectoryError ¶ added in v0.6.0
type CreateTempDirectoryError struct {
Err error
}
func (CreateTempDirectoryError) Error ¶ added in v0.6.0
func (e CreateTempDirectoryError) Error() string
type CreateTempFileError ¶ added in v0.6.0
type CreateTempFileError struct {
Err error
}
func (CreateTempFileError) Error ¶ added in v0.6.0
func (e CreateTempFileError) Error() string
type GetStatusError ¶ added in v0.6.0
func (GetStatusError) Error ¶ added in v0.6.0
func (e GetStatusError) Error() string
type GetUrlError ¶ added in v0.6.0
func (GetUrlError) Error ¶ added in v0.6.0
func (e GetUrlError) Error() string
type UnzipError ¶ added in v0.6.0
type UnzipError struct {
Err error
}
func (UnzipError) Error ¶ added in v0.6.0
func (e UnzipError) Error() string
type WriteResponseError ¶ added in v0.6.0
type WriteResponseError struct {
Err error
}
func (WriteResponseError) Error ¶ added in v0.6.0
func (e WriteResponseError) Error() string
Click to show internal directories.
Click to hide internal directories.