cluster-api: sigs.k8s.io/cluster-api/util/container Index | Files

package container

import "sigs.k8s.io/cluster-api/util/container"

Index

Package Files

image.go

func ImageTagIsValid Uses

func ImageTagIsValid(tagName string) bool

ImageTagIsValid ensures that a given image tag is compliant with the OCI spec

func ModifyImageRepository Uses

func ModifyImageRepository(imageName, repositoryName string) (string, error)

ModifyImageRepository takes an imageName (e.g., repository/image:tag), and returns an image name with updated repository

func ModifyImageTag Uses

func ModifyImageTag(imageName, tagName string) (string, error)

ModifyImageTag takes an imageName (e.g., repository/image:tag), and returns an image name with updated tag

func SemverToOCIImageTag Uses

func SemverToOCIImageTag(version string) string

SemverToOCIImageTag is a helper function that replaces all non-allowed symbols in tag strings with underscores. Image tag can only contain lowercase and uppercase letters, digits, underscores, periods and dashes. Current usage is for CI images where all of symbols except '+' are valid, but function is for generic usage where input can't be always pre-validated. Taken from k8s.io/cmd/kubeadm/app/util

type Image Uses

type Image struct {
    Repository string
    Name       string
    Tag        string
    Digest     string
}

Image type represents the container image details

func ImageFromString Uses

func ImageFromString(image string) (Image, error)

ImageFromString parses a docker image string into three parts: repo, tag and digest.

func (Image) String Uses

func (i Image) String() string

Package container imports 7 packages (graph) and is imported by 6 packages. Updated 2020-04-15. Refresh now. Tools for package owners.