pathmapping

package
v0.0.0-...-4cc801b Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2020 License: Apache-2.0 Imports: 6 Imported by: 2

Documentation

Overview

Package pathmapping maps image names to repositories with new prefixes

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FlattenRepoPath

func FlattenRepoPath(repoPrefix string, originalImage image.Name) (image.Name, error)

FlattenRepoPath maps the given Name to a new Name with a given repository prefix. It aims to avoid collisions between repositories and to include enough of the original name to make it recognizable by a human being.

func FlattenRepoPathPreserveTagDigest

func FlattenRepoPathPreserveTagDigest(repoPrefix string, originalImage image.Name) (image.Name, error)

FlattenRepoPathPreserveTagDigest maps the given Name to a new Name with a given repository prefix. It aims to avoid collisions between repositories and to include enough of the original name to make it recognizable by a human being. It preserves any tag and/or digest.

Types

type PathMapping

type PathMapping func(repoPrefix string, originalImage image.Name) (image.Name, error)

PathMapping is a type of function which maps a given Name to a new Name by apply a repository prefix.

Jump to

Keyboard shortcuts

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