Documentation ¶
Index ¶
- Constants
- func AgentSemverVersion(e *CommonEnvironment) (*semver.Version, error)
- func ClusterAgentSemverVersion(e *CommonEnvironment) (*semver.Version, error)
- func EnvVariableResourceTags() map[string]string
- func FindEnvironmentName(environments []string, prefix string) string
- func SetConfigDefaultValue(config auto.ConfigMap, key, value string)
- type CloudProviderEnvironment
- type CommonEnvironment
- func (e *CommonEnvironment) AgentAPIKey() pulumi.StringOutput
- func (e *CommonEnvironment) AgentAPPKey() pulumi.StringOutput
- func (e *CommonEnvironment) AgentDeploy() bool
- func (e *CommonEnvironment) AgentFullImagePath() string
- func (e *CommonEnvironment) AgentUseFakeintake() bool
- func (e *CommonEnvironment) AgentVersion() string
- func (e *CommonEnvironment) ClusterAgentFullImagePath() string
- func (e *CommonEnvironment) ClusterAgentVersion() string
- func (e *CommonEnvironment) CommitSHA() string
- func (e *CommonEnvironment) DefaultResourceTags() map[string]string
- func (e *CommonEnvironment) DogstatsdDeploy() bool
- func (e *CommonEnvironment) DogstatsdFullImagePath() string
- func (e *CommonEnvironment) ExtraResourcesTags() map[string]string
- func (e *CommonEnvironment) GetBoolWithDefault(config *sdkconfig.Config, paramName string, defaultValue bool) bool
- func (e *CommonEnvironment) GetIntWithDefault(config *sdkconfig.Config, paramName string, defaultValue int) int
- func (e *CommonEnvironment) GetObjectWithDefault(config *sdkconfig.Config, paramName string, ...) interface{}
- func (p *CommonEnvironment) GetProvider(providerID ProviderID) pulumi.ProviderResource
- func (e *CommonEnvironment) GetStringListWithDefault(config *sdkconfig.Config, paramName string, defaultValue []string) []string
- func (e *CommonEnvironment) GetStringWithDefault(config *sdkconfig.Config, paramName string, defaultValue string) string
- func (e *CommonEnvironment) ImagePullPassword() pulumi.StringOutput
- func (e *CommonEnvironment) ImagePullRegistry() string
- func (e *CommonEnvironment) ImagePullUsername() string
- func (e *CommonEnvironment) InfraEnvironmentNames() []string
- func (e *CommonEnvironment) InfraOSDescriptor() string
- func (e *CommonEnvironment) InfraOSImageID() string
- func (e *CommonEnvironment) InfraSSHUser() string
- func (e *CommonEnvironment) InfraShouldDeployFakeintakeWithLB() bool
- func (e *CommonEnvironment) KubernetesVersion() string
- func (e *CommonEnvironment) PipelineID() string
- func (p *CommonEnvironment) RegisterProvider(providerID ProviderID, provider pulumi.ProviderResource)
- func (e *CommonEnvironment) ResourcesTags() pulumi.StringMap
- func (e *CommonEnvironment) Site() string
- func (e *CommonEnvironment) TestingWorkloadDeploy() bool
- func (e *CommonEnvironment) UpdaterDeploy() bool
- func (p *CommonEnvironment) WithProvider(providerID ProviderID) pulumi.InvokeOption
- func (p *CommonEnvironment) WithProviders(providerID ...ProviderID) pulumi.ResourceOption
- type ProviderID
Constants ¶
View Source
const ( DDInfraConfigNamespace = "ddinfra" DDAgentConfigNamespace = "ddagent" DDTestingWorkloadNamespace = "ddtestworkload" DDDogstatsdNamespace = "dddogstatsd" DDUpdaterConfigNamespace = "ddupdater" // Infra namespace DDInfraEnvironment = "env" DDInfraKubernetesVersion = "kubernetesVersion" DDInfraOSDescriptor = "osDescriptor" // osDescriptor is expected in the format: <osFamily>:<osVersion>:<osArch>, see components/os/descriptor.go DDInfraOSImageID = "osImageID" DDInfraDeployFakeintakeWithLoadBalancer = "deployFakeintakeWithLoadBalancer" DDInfraExtraResourcesTags = "extraResourcesTags" DDInfraSSHUser = "sshUser" // Agent Namespace DDAgentDeployParamName = "deploy" DDAgentVersionParamName = "version" DDAgentPipelineID = "pipeline_id" DDAgentCommitSHA = "commit_sha" DDAgentFullImagePathParamName = "fullImagePath" DDClusterAgentVersionParamName = "clusterAgentVersion" DDClusterAgentFullImagePathParamName = "clusterAgentFullImagePath" DDImagePullRegistryParamName = "imagePullRegistry" DDImagePullUsernameParamName = "imagePullUsername" DDImagePullPasswordParamName = "imagePullPassword" DDAgentAPIKeyParamName = "apiKey" DDAgentAPPKeyParamName = "appKey" DDAgentFakeintake = "fakeintake" DDAgentSite = "site" // Updater Namespace DDUpdaterParamName = "deploy" // Testing workload namerNamespace DDTestingWorkloadDeployParamName = "deploy" // Dogstatsd namespace DDDogstatsdDeployParamName = "deploy" DDDogstatsdFullImagePathParamName = "fullImagePath" )
Variables ¶
This section is empty.
Functions ¶
func AgentSemverVersion ¶
func AgentSemverVersion(e *CommonEnvironment) (*semver.Version, error)
func ClusterAgentSemverVersion ¶
func ClusterAgentSemverVersion(e *CommonEnvironment) (*semver.Version, error)
func EnvVariableResourceTags ¶
func FindEnvironmentName ¶
func SetConfigDefaultValue ¶
Types ¶
type CommonEnvironment ¶
type CommonEnvironment struct { Ctx *pulumi.Context CommonNamer namer.Namer CloudProviderEnvironment CloudProviderEnvironment InfraConfig *sdkconfig.Config AgentConfig *sdkconfig.Config TestingWorkloadConfig *sdkconfig.Config DogstatsdConfig *sdkconfig.Config UpdaterConfig *sdkconfig.Config // contains filtered or unexported fields }
func NewCommonEnvironment ¶
func NewCommonEnvironment(ctx *pulumi.Context, cloudProviderEnvironment CloudProviderEnvironment) (CommonEnvironment, error)
func (*CommonEnvironment) AgentAPIKey ¶
func (e *CommonEnvironment) AgentAPIKey() pulumi.StringOutput
func (*CommonEnvironment) AgentAPPKey ¶
func (e *CommonEnvironment) AgentAPPKey() pulumi.StringOutput
func (*CommonEnvironment) AgentDeploy ¶
func (e *CommonEnvironment) AgentDeploy() bool
Agent Namespace
func (*CommonEnvironment) AgentFullImagePath ¶
func (e *CommonEnvironment) AgentFullImagePath() string
func (*CommonEnvironment) AgentUseFakeintake ¶
func (e *CommonEnvironment) AgentUseFakeintake() bool
func (*CommonEnvironment) AgentVersion ¶
func (e *CommonEnvironment) AgentVersion() string
func (*CommonEnvironment) ClusterAgentFullImagePath ¶
func (e *CommonEnvironment) ClusterAgentFullImagePath() string
func (*CommonEnvironment) ClusterAgentVersion ¶
func (e *CommonEnvironment) ClusterAgentVersion() string
func (*CommonEnvironment) CommitSHA ¶
func (e *CommonEnvironment) CommitSHA() string
func (*CommonEnvironment) DefaultResourceTags ¶
func (e *CommonEnvironment) DefaultResourceTags() map[string]string
func (*CommonEnvironment) DogstatsdDeploy ¶
func (e *CommonEnvironment) DogstatsdDeploy() bool
Dogstatsd namespace
func (*CommonEnvironment) DogstatsdFullImagePath ¶
func (e *CommonEnvironment) DogstatsdFullImagePath() string
func (*CommonEnvironment) ExtraResourcesTags ¶
func (e *CommonEnvironment) ExtraResourcesTags() map[string]string
func (*CommonEnvironment) GetBoolWithDefault ¶
func (e *CommonEnvironment) GetBoolWithDefault(config *sdkconfig.Config, paramName string, defaultValue bool) bool
Generic methods
func (*CommonEnvironment) GetIntWithDefault ¶
func (*CommonEnvironment) GetObjectWithDefault ¶
func (e *CommonEnvironment) GetObjectWithDefault(config *sdkconfig.Config, paramName string, outputValue, defaultValue interface{}) interface{}
func (*CommonEnvironment) GetProvider ¶
func (p *CommonEnvironment) GetProvider(providerID ProviderID) pulumi.ProviderResource
func (*CommonEnvironment) GetStringListWithDefault ¶
func (*CommonEnvironment) GetStringWithDefault ¶
func (*CommonEnvironment) ImagePullPassword ¶
func (e *CommonEnvironment) ImagePullPassword() pulumi.StringOutput
func (*CommonEnvironment) ImagePullRegistry ¶
func (e *CommonEnvironment) ImagePullRegistry() string
func (*CommonEnvironment) ImagePullUsername ¶
func (e *CommonEnvironment) ImagePullUsername() string
func (*CommonEnvironment) InfraEnvironmentNames ¶
func (e *CommonEnvironment) InfraEnvironmentNames() []string
func (*CommonEnvironment) InfraOSDescriptor ¶
func (e *CommonEnvironment) InfraOSDescriptor() string
func (*CommonEnvironment) InfraOSImageID ¶
func (e *CommonEnvironment) InfraOSImageID() string
func (*CommonEnvironment) InfraSSHUser ¶
func (e *CommonEnvironment) InfraSSHUser() string
func (*CommonEnvironment) InfraShouldDeployFakeintakeWithLB ¶
func (e *CommonEnvironment) InfraShouldDeployFakeintakeWithLB() bool
func (*CommonEnvironment) KubernetesVersion ¶
func (e *CommonEnvironment) KubernetesVersion() string
func (*CommonEnvironment) PipelineID ¶
func (e *CommonEnvironment) PipelineID() string
func (*CommonEnvironment) RegisterProvider ¶
func (p *CommonEnvironment) RegisterProvider(providerID ProviderID, provider pulumi.ProviderResource)
func (*CommonEnvironment) ResourcesTags ¶
func (e *CommonEnvironment) ResourcesTags() pulumi.StringMap
func (*CommonEnvironment) Site ¶
func (e *CommonEnvironment) Site() string
func (*CommonEnvironment) TestingWorkloadDeploy ¶
func (e *CommonEnvironment) TestingWorkloadDeploy() bool
Testing workload namespace
func (*CommonEnvironment) UpdaterDeploy ¶
func (e *CommonEnvironment) UpdaterDeploy() bool
Updater namespace
func (*CommonEnvironment) WithProvider ¶
func (p *CommonEnvironment) WithProvider(providerID ProviderID) pulumi.InvokeOption
func (*CommonEnvironment) WithProviders ¶
func (p *CommonEnvironment) WithProviders(providerID ...ProviderID) pulumi.ResourceOption
type ProviderID ¶
type ProviderID string
const ( ProviderRandom ProviderID = "random" ProviderTLS ProviderID = "tls" ProviderCommand ProviderID = "command" ProviderAWS ProviderID = "aws" ProviderAWSX ProviderID = "awsx" ProviderEKS ProviderID = "eks" ProviderAzure ProviderID = "azure" )
Click to show internal directories.
Click to hide internal directories.