Documentation
¶
Index ¶
- Variables
- func DetermineMostGranularRepoTags(repoTags []string) string
- func LoadImageRepoTags(fqnTagsPath string) ([]string, error)
- func ReplaceImageReferences(contents []byte, oldRef string, newRef string) ([]byte, error)
- func ReplaceImageReferencesForAliases(contents []byte, newRef string, aliases ...string) ([]byte, error)
- func TranslateUserProvidedRepoTags(imageRepoTags []string, userProvidedRepoTags []string) []string
- type Pusher
- type PusherOpts
- type RepoTag
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNoReplacementsMade = errors.New("no replacements made")
)
Functions ¶
func LoadImageRepoTags ¶
func ReplaceImageReferences ¶
func ReplaceImageReferencesForAliases ¶ added in v0.0.2
func TranslateUserProvidedRepoTags ¶
TranslateUserProvidedRepoTags translates user-provided repo tags into repo tags that are pushed:
- Support pushing by user-provided repository and tag:
`push index.docker.io/foo/bar:my-tag`
- Support pushing by user-provided repository, SBOM repository tags:
`push index.docker.io/foo/bar:`
- Support pushing by SBOM repository, user-provided tag:
`push :my-tag`
- Support pushing by user-provided registry, SBOM repository path and tags:
`push localhost:5000`
Types ¶
type Pusher ¶
type Pusher struct {
// contains filtered or unexported fields
}
func NewPusher ¶
func NewPusher(opts *PusherOpts) *Pusher
type PusherOpts ¶
Click to show internal directories.
Click to hide internal directories.