Documentation
¶
Index ¶
- Constants
- Variables
- func CheckoutAndCompareGitHash(appInterface AppInterface, ...) (string, string, error)
- func DefaultAppInterfaceDirectory() string
- func DefaultDynatraceconfigDir() string
- func GeModulesNames(baseDir, dir string) ([]string, error)
- func GetCurrentGitHashFromAppInterface(saarYamlFile []byte, serviceName string) (string, string, string, error)
- func GetProductionDir(baseDir string) string
- func GetSaasDir(component string) (string, error)
- func GetServiceNames(appInterface AppInterface, saaDirs ...string) ([]string, error)
- func NewCmdDynatrace() *cobra.Command
- func Open(filepath string) (*hclwrite.File, error)
- func Save(filename string, file *hclwrite.File) error
- func UpdateDefaultValue(file *hclwrite.File, name string, value string) bool
- func ValidateModuleName(moduleName string) (string, error)
- func ValidateServiceName(serviceSlice []string, serviceName string) (string, error)
- type AppInterface
- type DynatraceConfig
- type Service
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{} )
View Source
var (
BaseDir string
)
Functions ¶
func CheckoutAndCompareGitHash ¶
func CheckoutAndCompareGitHash(appInterface AppInterface, gitURL, gitHash, currentGitHash, serviceFullPath string) (string, string, error)
func DefaultAppInterfaceDirectory ¶
func DefaultAppInterfaceDirectory() string
func DefaultDynatraceconfigDir ¶
func DefaultDynatraceconfigDir() string
func GeModulesNames ¶
func GetProductionDir ¶
func GetSaasDir ¶
func GetServiceNames ¶
func GetServiceNames(appInterface AppInterface, saaDirs ...string) ([]string, error)
func NewCmdDynatrace ¶
NewCmdPromote implements the promote command to promote services/operators
func UpdateDefaultValue ¶
func ValidateModuleName ¶
Types ¶
type AppInterface ¶
func BootstrapOsdCtlForAppInterfaceAndServicePromotions ¶
func BootstrapOsdCtlForAppInterfaceAndServicePromotions(appInterfaceCheckoutDir string) AppInterface
func (AppInterface) CommitSaasFile ¶
func (a AppInterface) CommitSaasFile(saasFile, commitMessage string) error
func (AppInterface) UpdateAppInterface ¶
func (a AppInterface) UpdateAppInterface(component, saasFile, currentGitHash, promotionGitHash, branchName string) error
func (AppInterface) UpdatePackageTag ¶
func (a AppInterface) UpdatePackageTag(saasFile, oldTag, promotionTag, branchName string) error
type DynatraceConfig ¶
func DynatraceConfigPromotion ¶
func DynatraceConfigPromotion(dynatraceConfigCheckoutDir string) DynatraceConfig
func (DynatraceConfig) UpdateDynatraceConfig ¶
func (a DynatraceConfig) UpdateDynatraceConfig(component, promotionGitHash, branchName string) error
type Service ¶
type Service struct {
Name string `yaml:"name"`
ResourceTemplates []struct {
Name string `yaml:"name"`
URL string `yaml:"url"`
PATH string `yaml:"path"`
Targets []struct {
Name string
Namespace map[string]string `yaml:"namespace"`
Ref string `yaml:"ref"`
Parameters map[string]interface{} `yaml:"parameters"`
} `yaml:"targets"`
} `yaml:"resourceTemplates"`
}
Click to show internal directories.
Click to hide internal directories.