Documentation ¶
Index ¶
- Constants
- func NewProxyRegistry(ctx context.Context, rootdir, domain string) (distribution.Namespace, error)
- func NewProxyRegistryWithAuth(ctx context.Context, username, password, rootdir, domain string) (distribution.Namespace, error)
- type BlobList
- type DefaultImageSaver
- type Driver
- type DriverParameters
- type ImageListWithAuth
- type ImageManifest
- type ImageSave
- type ManifestList
- type Named
- type Section
Constants ¶
const ( HTTPS = "https://" HTTP = "http://" )
Variables ¶
This section is empty.
Functions ¶
func NewProxyRegistry ¶
Types ¶
type BlobList ¶ added in v0.9.0
type BlobList struct { Layers []distribution.Descriptor `json:"layers"` Config distribution.Descriptor `json:"config"` MediaType string `json:"mediaType"` Schema int `json:"schemaVersion"` }
BlobList this package unmarshal blobs from json into a BlobList struct then return a slice of blob digest
type DefaultImageSaver ¶
type DefaultImageSaver struct {
// contains filtered or unexported fields
}
func (*DefaultImageSaver) SaveImages ¶
func (*DefaultImageSaver) SaveImagesWithAuth ¶
func (is *DefaultImageSaver) SaveImagesWithAuth(imageList ImageListWithAuth, dir string, platform v1.Platform) error
type Driver ¶
type Driver struct {
// contains filtered or unexported fields
}
Driver is a storage driver.StorageDriver implementation backed by a local filesystem. All provided paths will be sub paths of the RootDirectory.
func FromParameters ¶
FromParameters constructs a new Driver with a given parameters map Optional Parameters: - rootdirectory - maxthreads
func New ¶
func New(params DriverParameters) *Driver
New constructs a new Driver with a given rootDirectory
type DriverParameters ¶
DriverParameters represents all configuration options available for the filesystem driver
type ImageListWithAuth ¶
type ImageListWithAuth []Section
type ImageManifest ¶ added in v0.9.0
type ImageSave ¶
type ImageSave interface { // SaveImages is not concurrently safe SaveImages(images []string, dir string, platform v1.Platform) error }
ImageSave can save a list of images of the specified platform
func NewImageSaver ¶
type ManifestList ¶ added in v0.9.0
type ManifestList struct { List []ImageManifest `json:"manifests"` MediaType string `json:"mediaType"` Schema int `json:"schemaVersion"` }
ManifestList this package unmarshal manifests from json into a ManifestList struct then choose corresponding manifest by platform