Documentation
¶
Overview ¶
Package sources provides image download sources for go-container.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CDNSource ¶
type CDNSource struct {
// contains filtered or unexported fields
}
CDNSource downloads images from a CDN or S3 bucket.
func NewCDNSource ¶
func NewCDNSource(cfg SourceConfig) *CDNSource
NewCDNSource creates a new CDN source.
func (*CDNSource) Download ¶
func (s *CDNSource) Download(ctx context.Context, m io.Medium, dest string, progress func(downloaded, total int64)) error
Download downloads the image from CDN.
func (*CDNSource) LatestVersion ¶
LatestVersion fetches version from manifest or returns "latest".