repository

package
v0.17.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 13, 2018 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Overview

Package repository is an implementation of Docker2ACIBackend for Docker remote registries.

Note: this package is an implementation detail and shouldn't be used outside of docker2aci.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RepoData

type RepoData struct {
	Tokens    []string
	Endpoints []string
	Cookie    []string
}

type RepositoryBackend

type RepositoryBackend struct {
	// contains filtered or unexported fields
}

func NewRepositoryBackend

func NewRepositoryBackend(username, password string, insecure common.InsecureConfig, debug log.Logger, mediaTypes common.MediaTypeSet, registryOptions common.RegistryOptionSet) *RepositoryBackend

func (*RepositoryBackend) BuildACI

func (rb *RepositoryBackend) BuildACI(layerIDs []string, manhash string, dockerURL *common.ParsedDockerURL, outputDir string, tmpBaseDir string, compression common.Compression) ([]string, []*schema.ImageManifest, error)

func (*RepositoryBackend) GetImageInfo

func (rb *RepositoryBackend) GetImageInfo(url string) ([]string, string, *common.ParsedDockerURL, error)

GetImageInfo, given the url for a docker image, will return the following: - []string: an ordered list of all layer hashes - string: a unique identifier for this image, like a hash of the manifest - *common.ParsedDockerURL: a parsed docker URL - error: an error if one occurred

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL