Documentation ¶
Index ¶
Constants ¶
View Source
const ( // AgentLatestVersion correspond to the latest stable agent release AgentLatestVersion = "7.47.0" // ClusterAgentLatestVersion correspond to the latest stable cluster-agent release ClusterAgentLatestVersion = "7.47.0" // GCRContainerRegistry correspond to the datadoghq GCR registry GCRContainerRegistry ContainerRegistry = "gcr.io/datadoghq" // DockerHubContainerRegistry correspond to the datadoghq docker.io registry DockerHubContainerRegistry ContainerRegistry = "docker.io/datadog" // PublicECSContainerRegistry correspond to the datadoghq PublicECSContainerRegistry registry PublicECSContainerRegistry ContainerRegistry = "public.ecr.aws/datadog" // DefaultImageRegistry correspond to the datadoghq containers registry DefaultImageRegistry = GCRContainerRegistry // JMXTagSuffix prefix tag for agent JMX images JMXTagSuffix = "-jmx" )
Variables ¶
This section is empty.
Functions ¶
func GetLatestAgentImage ¶
func GetLatestAgentImage(opts ...ImageOptions) string
GetLatestAgentImage return the latest stable agent release version
func GetLatestAgentImageJMX ¶
func GetLatestAgentImageJMX(opts ...ImageOptions) string
GetLatestAgentImageJMX return the latest JMX stable agent release version
func GetLatestClusterAgentImage ¶
func GetLatestClusterAgentImage(opts ...ImageOptions) string
GetLatestClusterAgentImage return the latest stable agent release version
func IsImageNameContainsTag ¶
IsImageNameContainsTag return true if the image name contains a tag
Types ¶
type ContainerRegistry ¶
type ContainerRegistry string
ContainerRegistry represent a container registry URL
type Image ¶
type Image struct {
// contains filtered or unexported fields
}
Image represent a container image information
type ImageOptions ¶
type ImageOptions func(*Image)
ImageOptions use to allow extra Image configuration
func WithImageName ¶
func WithImageName(name string) ImageOptions
WithImageName ImageOptions to specify the image name
func WithJMX ¶
func WithJMX(jmx bool) ImageOptions
WithJMX ImageOptions to specify if the JMX prefix should be added
func WithRegistry ¶
func WithRegistry(registry ContainerRegistry) ImageOptions
WithRegistry ImageOptions to specify the container registry
func WithTag ¶
func WithTag(tag string) ImageOptions
WithTag ImageOptions to specify the container image tag.
Click to show internal directories.
Click to hide internal directories.