update

package
v0.0.0-...-5984036 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindDigest

func FindDigest(imageDigests []kelda.ImageDigest, controllerName, containerName,
	imageURL string) (*kelda.ImageDigest, bool)

FindDigest finds the specific kelda.ImageDigest from an array with the specified controller name and container name. If it doesn't find the element, it'll return nil.

func GetDigestFromContainerInfo

func GetDigestFromContainerInfo(info *ContainerInfo,
	secretClient typev1.SecretInterface,
	saClient typev1.ServiceAccountInterface) (string, error)

GetDigestFromContainerInfo retrieves the digest of the image specified in the ContainerInfo from its registry.

func InjectDigestIntoImageURL

func InjectDigestIntoImageURL(imageURL, newDigest string) string

InjectDigestIntoImageURL strips the original tag or digest (if any) in an image URL and appends a new digest to it.

Types

type ContainerInfo

type ContainerInfo struct {
	ControllerName string
	ContainerName  string
	ImageURL       string
	PullSecrets    []string
	ServiceAccount string
}

ContainerInfo contains a unique identifier for a container within a microservice and all information needed to pull its digest.

func GetContainerInfosFromManifests

func GetContainerInfosFromManifests(manifests []string) ([]ContainerInfo, error)

GetContainerInfosFromManifests parses the given manifests and returns ContainerInfos for all containers found.

Jump to

Keyboard shortcuts

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