defaulting

package
v1.2.0-rc.1 Latest Latest
Warning

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

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

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

func IsImageNameContainsTag(name string) bool

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

func NewImage

func NewImage(name, tag string, isJMX bool) *Image

NewImage return a new Image instance

func (*Image) String

func (i *Image) String() string

String return the string representation of an image

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.

Jump to

Keyboard shortcuts

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