dynatrace

package
v0.52.0 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2026 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProductionDir = "terraform/redhat-aws/sd-sre/production"
)

Variables

View Source
var (
	ServicesSlice    []string
	ServicesFilesMap = map[string]string{}
	ModulesSlice     []string
	ModulesFilesMap  = map[string]string{}
)

Functions

func DefaultDynatraceconfigDir

func DefaultDynatraceconfigDir() string

func GeModulesNames

func GeModulesNames(baseDir, dir string) ([]string, error)

func GetProductionDir

func GetProductionDir(baseDir string) string

func GetSaasDir

func GetSaasDir(component string) (string, error)

func GetServiceNames

func GetServiceNames(appInterface git.AppInterface, saaDirs ...string) ([]string, error)

func NewCmdDynatrace

func NewCmdDynatrace() *cobra.Command

NewCmdDynatrace implements the promote command to promote services/operators

func Open

func Open(filepath string) (*hclwrite.File, error)

func Save

func Save(filename string, file *hclwrite.File) error

func UpdateDefaultValue

func UpdateDefaultValue(file *hclwrite.File, name string, value string) bool

func ValidateModuleName

func ValidateModuleName(moduleName string) (string, error)

func ValidateServiceName

func ValidateServiceName(serviceSlice []string, serviceName string) (string, error)

Types

type DynatraceConfig

type DynatraceConfig struct {
	GitDirectory string
	GitExecutor  iexec.IExec
}

func DynatraceConfigPromotion

func DynatraceConfigPromotion(dynatraceConfigCheckoutDir string) DynatraceConfig

func (DynatraceConfig) UpdateDynatraceConfig

func (a DynatraceConfig) UpdateDynatraceConfig(component, promotionGitHash, branchName string) error

Jump to

Keyboard shortcuts

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