Documentation ¶
Index ¶
- Constants
- func CompareVersionInfo(a VersionInfo, b VersionInfo) int
- func MakeSystemContext(dockerReference reference.Named, dockerConfig *DockerConfig) *types.SystemContext
- func ParseDockerAuthsFromSecret(secret *corev1.Secret) (map[string]DockerAuth, error)
- type DockerAuth
- type DockerConfig
- type ImageVersion
- type ImageVersionProvider
- type VersionInfo
Constants ¶
View Source
const VersionLabel = "com.dynatrace.build-version"
VersionLabel is the name of the label used on ActiveGate-provided images.
Variables ¶
This section is empty.
Functions ¶
func CompareVersionInfo ¶
func CompareVersionInfo(a VersionInfo, b VersionInfo) int
CompareVersionInfo returns:
0: if a == b n > 0: if a > b n < 0: if a < b 0 with error: if a == nil || b == nil
func MakeSystemContext ¶
func MakeSystemContext(dockerReference reference.Named, dockerConfig *DockerConfig) *types.SystemContext
MakeSystemContext returns a SystemConfig for the given image and Dockerconfig.
func ParseDockerAuthsFromSecret ¶
func ParseDockerAuthsFromSecret(secret *corev1.Secret) (map[string]DockerAuth, error)
Types ¶
type DockerAuth ¶
type DockerConfig ¶
type DockerConfig struct { Auths map[string]DockerAuth SkipCertCheck bool }
type ImageVersion ¶
ImageVersion includes information for a given image. Version can be empty if the corresponding label isn't set.
func GetImageVersion ¶
func GetImageVersion(imageName string, dockerConfig *DockerConfig) (ImageVersion, error)
GetImageVersion fetches image information for imageName
type ImageVersionProvider ¶
type ImageVersionProvider func(img string, dockerConfig *DockerConfig) (ImageVersion, error)
ImageVersionProvider can fetch image information from img
type VersionInfo ¶
type VersionInfo struct {
// contains filtered or unexported fields
}
func ExtractVersion ¶
func ExtractVersion(versionString string) (VersionInfo, error)
func (VersionInfo) String ¶
func (v VersionInfo) String() string
Click to show internal directories.
Click to hide internal directories.