Documentation ¶
Index ¶
- Variables
- func DownloadImage(ctx context.Context, c *libClient.Client, imagePath, arch string, ...) error
- func DownloadImageNoProgress(ctx context.Context, c *libClient.Client, imagePath, arch string, ...) error
- func NormalizeLibraryRef(ref string) (*libClient.Ref, error)
- func Pull(ctx context.Context, imgCache *cache.Handle, pullFrom *libClient.Ref, ...) (imagePath string, err error)
- func PullToFile(ctx context.Context, imgCache *cache.Handle, pullTo string, ...) (imagePath string, err error)
- func SearchLibrary(ctx context.Context, c *libClient.Client, value, arch string, signed bool) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrLibraryPullUnsigned = errors.New("failed to verify container")
ErrLibraryPullUnsigned indicates that the interactive portion of the pull was aborted.
Functions ¶
func DownloadImage ¶
func DownloadImage(ctx context.Context, c *libClient.Client, imagePath, arch string, libraryRef *libClient.Ref, pb libClient.ProgressBar) error
DownloadImage is a helper function to wrap library image download operation
func DownloadImageNoProgress ¶
func DownloadImageNoProgress(ctx context.Context, c *libClient.Client, imagePath, arch string, libraryRef *libClient.Ref) error
DownloadImageNoProgress downloads an image from the library without displaying a progress bar while doing so
func NormalizeLibraryRef ¶
NormalizeLibraryRef parses library ref and sets default tag, if necessary.
func Pull ¶
func Pull(ctx context.Context, imgCache *cache.Handle, pullFrom *libClient.Ref, arch string, tmpDir string, libraryConfig *libClient.Config) (imagePath string, err error)
Pull will pull a library image to the cache or direct to a temporary file if cache is disabled
func PullToFile ¶
func PullToFile(ctx context.Context, imgCache *cache.Handle, pullTo string, pullFrom *libClient.Ref, arch string, tmpDir string, libraryConfig *libClient.Config, co []keyClient.Option) (imagePath string, err error)
PullToFile will pull a library image to the specified location, through the cache, or directly if cache is disabled
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.