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 ¶
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.
Click to show internal directories.
Click to hide internal directories.