Documentation
¶
Index ¶
- Variables
- func CheckoutAndCompareGitHash(gitExecutor iexec.IExec, gitURL, gitHash, currentGitHash string, ...) (string, string, error)
- func DefaultAppInterfaceDirectory() string
- func GetBaseDir(exec iexec.IExec) (string, error)
- func GetCurrentGitHashAndPathFromAppInterface(saarYamlFile []byte, serviceName string, namespaceRef string) (string, string, string, error)
- func GetCurrentGitHashFromAppInterface(saarYamlFile []byte, serviceName string, namespaceRef string) (string, string, error)
- func GetCurrentPackageTagFromAppInterface(saasFile string) (string, error)
- type AppInterface
- func (a *AppInterface) CommitSaasAndAppYmlFile(saasFile, serviceName, commitMessage string) error
- func (a *AppInterface) CommitSaasFile(saasFile, commitMessage string) error
- func (a *AppInterface) UpdateAppInterface(_, saasFile, currentGitHash, promotionGitHash, branchName string) error
- func (a *AppInterface) UpdatePackageTag(saasFile, oldTag, promotionTag, branchName string) error
- type Service
Constants ¶
This section is empty.
Variables ¶
View Source
var (
BaseDir string
)
Functions ¶
func DefaultAppInterfaceDirectory ¶ added in v0.23.0
func DefaultAppInterfaceDirectory() string
func GetBaseDir ¶ added in v0.51.0
GetBaseDir returns the base directory of the git repository, this can only be called once per process
func GetCurrentGitHashAndPathFromAppInterface ¶ added in v0.51.0
func GetCurrentGitHashAndPathFromAppInterface(saarYamlFile []byte, serviceName string, namespaceRef string) (string, string, string, error)
GetCurrentGitHashAndPathFromAppInterface returns the current git hash, service repo, and service path This version also returns the PATH field from the resource template (used by dynatrace)
func GetCurrentPackageTagFromAppInterface ¶ added in v0.18.0
Types ¶
type AppInterface ¶ added in v0.23.0
func BootstrapOsdCtlForAppInterfaceAndServicePromotions ¶
func BootstrapOsdCtlForAppInterfaceAndServicePromotions(appInterfaceCheckoutDir string, gitExecutor iexec.Exec) AppInterface
func (*AppInterface) CommitSaasAndAppYmlFile ¶ added in v0.47.0
func (a *AppInterface) CommitSaasAndAppYmlFile(saasFile, serviceName, commitMessage string) error
func (*AppInterface) CommitSaasFile ¶ added in v0.23.0
func (a *AppInterface) CommitSaasFile(saasFile, commitMessage string) error
func (*AppInterface) UpdateAppInterface ¶ added in v0.23.0
func (a *AppInterface) UpdateAppInterface(_, saasFile, currentGitHash, promotionGitHash, branchName string) error
func (*AppInterface) UpdatePackageTag ¶ added in v0.23.0
func (a *AppInterface) UpdatePackageTag(saasFile, oldTag, promotionTag, 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"` // Optional: path within the repo (used by dynatrace)
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.