Help us shape the future of Go! Take the 2026 Go Developer Survey

runner

package
v0.81.0 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2026 License: Apache-2.0 Imports: 20 Imported by: 12

Documentation

Overview

Package runner implements local and ci profile runners

Index

Constants

View Source
const (
	// AgentAPIKey pulumi config parameter name
	AgentAPIKey = commonconfig.DDAgentConfigNamespace + ":" + commonconfig.DDAgentAPIKeyParamName
	// AgentAPPKey pulumi config parameter name
	AgentAPPKey = commonconfig.DDAgentConfigNamespace + ":" + commonconfig.DDAgentAPPKeyParamName
	// AgentPipelineID pulumi config parameter name
	AgentPipelineID = commonconfig.DDAgentConfigNamespace + ":" + commonconfig.DDAgentPipelineID
	// AgentMajorVersion pulumi config parameter name
	AgentMajorVersion = commonconfig.DDAgentConfigNamespace + ":" + commonconfig.DDAgentMajorVersion
	// AgentCommitSHA pulumi config parameter name
	AgentCommitSHA = commonconfig.DDAgentConfigNamespace + ":" + commonconfig.DDAgentCommitSHA
	// AgentFIPS pulumi config parameter name
	AgentFIPS = commonconfig.DDAgentConfigNamespace + ":" + commonconfig.DDAgentFIPS

	// InfraEnvironmentVariables pulumi config parameter name
	InfraEnvironmentVariables = commonconfig.DDInfraConfigNamespace + ":" + commonconfig.DDInfraEnvironment

	// InfraExtraResourcesTags pulumi config parameter name
	InfraExtraResourcesTags = commonconfig.DDInfraConfigNamespace + ":" + commonconfig.DDInfraExtraResourcesTags

	//InfraInitOnly pulumi config parameter name
	InfraInitOnly = commonconfig.DDInfraConfigNamespace + ":" + commonconfig.DDInfraInitOnly

	// ImagePullRegistry pulumi config parameter name
	ImagePullRegistry = commonconfig.DDAgentConfigNamespace + ":" + commonconfig.DDImagePullRegistryParamName
	// ImagePullUsername pulumi config parameter name
	ImagePullUsername = commonconfig.DDAgentConfigNamespace + ":" + commonconfig.DDImagePullUsernameParamName
	// ImagePullPassword pulumi config parameter name
	ImagePullPassword = commonconfig.DDAgentConfigNamespace + ":" + commonconfig.DDImagePullPasswordParamName

	// AWSKeyPairName pulumi config parameter name
	AWSKeyPairName = commonconfig.DDInfraConfigNamespace + ":" + infraaws.DDInfraDefaultKeyPairParamName
	// AWSPublicKeyPath pulumi config parameter name
	AWSPublicKeyPath = commonconfig.DDInfraConfigNamespace + ":" + infraaws.DDinfraDefaultPublicKeyPath
	// AWSPrivateKeyPath pulumi config parameter name
	AWSPrivateKeyPath = commonconfig.DDInfraConfigNamespace + ":" + infraaws.DDInfraDefaultPrivateKeyPath
	// AWSPrivateKeyPassword pulumi config parameter name
	AWSPrivateKeyPassword = commonconfig.DDInfraConfigNamespace + ":" + infraaws.DDInfraDefaultPrivateKeyPassword

	// AzurePublicKeyPath pulumi config paramater name
	AzurePublicKeyPath = commonconfig.DDInfraConfigNamespace + ":" + infraazure.DDInfraDefaultPublicKeyPath
	// AzurePrivateKeyPath pulumi config paramater name
	AzurePrivateKeyPath = commonconfig.DDInfraConfigNamespace + ":" + infraazure.DDInfraDefaultPrivateKeyPath
	// AzurePrivateKeyPassword pulumi config paramater name
	AzurePrivateKeyPassword = commonconfig.DDInfraConfigNamespace + ":" + infraazure.DDInfraDefaultPrivateKeyPassword

	// GCPPublicKeyPath pulumi config paramater name
	GCPPublicKeyPath = commonconfig.DDInfraConfigNamespace + ":" + infragcp.DDInfraDefaultPublicKeyPath
	// GCPPrivateKeyPath pulumi config paramater name
	GCPPrivateKeyPath = commonconfig.DDInfraConfigNamespace + ":" + infragcp.DDInfraDefaultPrivateKeyPath
	// GCPPrivateKeyPassword pulumi config paramater name
	GCPPrivateKeyPassword = commonconfig.DDInfraConfigNamespace + ":" + infragcp.DDInfraDefaultPrivateKeyPassword

	// LocalPublicKeyPath pulumi config paramater name
	LocalPublicKeyPath = commonconfig.DDInfraConfigNamespace + ":" + infralocal.DDInfraDefaultPublicKeyPath
)

Variables

This section is empty.

Functions

func SetConfigMapFromStore added in v0.79.0

func SetConfigMapFromStore(store parameters.Store, cm ConfigMap, paramName parameters.StoreKey, configMapKey string, secret bool) error

SetConfigMapFromStore sets a config map value from the given store, marking it as secret or not.

Types

type CloudProvider

type CloudProvider string

CloudProvider alias to string

const (
	// AWS cloud provider
	AWS CloudProvider = "aws"
	// Azure cloud provider
	Azure CloudProvider = "az"
	// GCP cloud provider
	GCP CloudProvider = "gcp"
	// EnvPrefix prefix for e2e environment variables
	EnvPrefix = "E2E_"
)

type ConfigMap

type ConfigMap auto.ConfigMap

ConfigMap type alias to auto.ConfigMap

func BuildStackParameters

func BuildStackParameters(profile Profile, scenarioConfig ConfigMap) (ConfigMap, error)

BuildStackParameters creates a config map from a profile, a scenario config map and env/cli configuration parameters

func (ConfigMap) Merge

func (cm ConfigMap) Merge(in ConfigMap)

Merge in ConfigMap into current config map

func (ConfigMap) Set

func (cm ConfigMap) Set(key, val string, secret bool)

Set a value by key in a config map

func (ConfigMap) ToPulumi

func (cm ConfigMap) ToPulumi() auto.ConfigMap

ToPulumi casts current config map to a Pulumi auto.ConfigMap

type NonFatalError added in v0.77.0

type NonFatalError error

NonFatalError is a non-fatal error that can be returned by the local profile

type Profile

type Profile interface {
	// EnvironmentName returns the environment names for cloud providers
	EnvironmentNames() string
	// ProjectName used by Pulumi
	ProjectName() string
	// GetWorkspacePath returns the directory for local Pulumi workspace.
	// Since one Workspace supports one single program and we have one program per stack,
	// the path should be unique for each stack.
	GetWorkspacePath(stackName string) string
	// ParamStore returns the normal parameter store
	ParamStore() parameters.Store
	// SecretStore returns the secure parameter store
	SecretStore() parameters.Store
	// NamePrefix returns a prefix to name objects
	NamePrefix() string
	// AllowDevMode returns if DevMode is allowed
	AllowDevMode() bool
	// GetOutputDir returns the root output directory for tests to store output files and artifacts.
	// e.g. /tmp/e2e-output/ or ~/e2e-output/
	GetOutputDir() (string, error)
	// CreateOutputSubDir creates an output directory inside the runner root directory for tests to store output files and artifacts.
	CreateOutputSubDir(subdirectory string) (string, error)
}

Profile interface defines functions required by a profile

func GetProfile

func GetProfile() Profile

GetProfile return a profile initialising it at first call

func NewCIProfile

func NewCIProfile() (Profile, error)

NewCIProfile creates a new CI profile

func NewLocalProfile

func NewLocalProfile() (Profile, error)

NewLocalProfile creates a new local profile

Directories

Path Synopsis
Package parameters implements parameters for profiles
Package parameters implements parameters for profiles

Jump to

Keyboard shortcuts

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