Documentation ¶
Index ¶
- func CloseResponse(resp *http.Response)
- func FileExists(afile string) bool
- func GetFileSize(afile string) int64
- func ImageExists(imageid string) (bool, error)
- func ImageExistsInRegistry(imageid string) (bool, error)
- func PullImage(imageid string) error
- func RemoveDoubleDots(s string) string
- func Sanitize(s string) string
- func SaveImage(imageid string, folder string) error
- func Search(term string) ([]docker.APIImageSearch, error)
- func ZipFiles(filename string, files []string) error
- type PullResponse
- type SaveResponse
- type SearchResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloseResponse ¶
func ImageExists ¶
ImageExists checks if image is downloaded
func ImageExistsInRegistry ¶
ImageExistsInRegistry determines if an image exists in the docker registry
func RemoveDoubleDots ¶
Types ¶
type PullResponse ¶
type PullResponse struct { ID string `json:"id,omitempty"` Status string `json:"status,omitempty"` Error string `json:"error,omitempty"` }
PullResponse is response format when calling pull image
type SaveResponse ¶
type SaveResponse struct { ID string `json:"id,omitempty"` URL string `json:"url,omitempty"` Error string `json:"error,omitempty"` Size int64 `json:"size,omitempty"` Status string `json:"status,omitempty"` }
SaveResponse is response format when calling save image
type SearchResponse ¶
type SearchResponse struct { Term string `json:"term"` Error string `json:"error,omitempty"` Status string `json:"status,omitempty"` SearchResult []docker.APIImageSearch `json:"search_result,omitempty"` }
SearchResponse
Source Files ¶
Click to show internal directories.
Click to hide internal directories.