dtversion

package
v1.3.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package dtversion's purpose is to convert the component/image versions used by Dynatrace into semver or a valid image-tag. - Example version used by Dynatrace:

  • 1.283.132.20240205-143805 (this translates to [version-number].[sprint-number].[quick-fix].[build-date]-[build-timestamp])
  • The operator does not care about the [build-date] and [build-timestamp] parts, so we can ignore those, and after that converting it to semver is trivial
  • As semver: v1.283.132
  • The same is true for the Dynatrace Environment's image registry and the public-registries used by Dynatrace, however they are still technically not semver.
  • As image-tag: 1.283.132

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToImageTag

func ToImageTag(version string) string

func ToSemver

func ToSemver(version string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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