Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultRetries int = 3
DefaultRetries is the default number of retries
View Source
var MaxBackoff float64 = 30
MaxBackoff is the maximum backoff time per retry in seconds
Functions ¶
This section is empty.
Types ¶
type PullableImage ¶
type PullableImage struct { // Name of image to pull Name string // Path to registry cert Cert *string // Number of attempts to retry pulling Retries int // Metadata for rootfs extraction Spec Spec // contains filtered or unexported fields }
PullableImage contains metadata necessary for pulling images
func NewPullableImage ¶
func NewPullableImage(path string) (*PullableImage, error)
NewPullableImage initializes a PullableImage spec from a user provided config
func (*PullableImage) Pull ¶
func (pullable *PullableImage) Pull() (*PulledImage, error)
Pull a v1.Image and initialize a PulledImage struct to include the v1.img and metadata for extracting to a rootfs
type PulledImage ¶
type PulledImage struct {
// contains filtered or unexported fields
}
PulledImage using provided PullableImage
func (*PulledImage) Digest ¶
func (pulledImg *PulledImage) Digest() (string, error)
Digest from pulled image
Click to show internal directories.
Click to hide internal directories.