Documentation ¶
Index ¶
- Variables
- func AddImageNames(store storage.Store, image *storage.Image, addNames []string) error
- func ExpandNames(names []string) ([]string, error)
- func FindImage(store storage.Store, image string) (*storage.Image, error)
- func GetFailureCause(err, defaultError error) error
- func ResolveName(name string, firstRegistry string, sc *types.SystemContext, ...) []string
Constants ¶
This section is empty.
Variables ¶
var ( // RegistryDefaultPathPrefix contains a per-registry listing of default prefixes // to prepend to image names that only contain a single path component. RegistryDefaultPathPrefix = map[string]string{ "index.docker.io": "library", "docker.io": "library", } )
Functions ¶
func AddImageNames ¶
AddImageNames adds the specified names to the specified image.
func ExpandNames ¶
ExpandNames takes unqualified names, parses them as image names, and returns the fully expanded result, including a tag. Names which don't include a registry name will be marked for the most-preferred registry (i.e., the first one in our configuration).
func GetFailureCause ¶
GetFailureCause checks the type of the error "err" and returns a new error message that reflects the reason of the failure. In case err type is not a familiar one the error "defaultError" is returned.
func ResolveName ¶
func ResolveName(name string, firstRegistry string, sc *types.SystemContext, store storage.Store) []string
ResolveName checks if name is a valid image name, and if that name doesn't include a domain portion, returns a list of the names which it might correspond to in the registries.
Types ¶
This section is empty.