git

package
v0.45.0 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BaseDir string
)

Functions

func CheckoutAndCompareGitHash

func CheckoutAndCompareGitHash(gitExecutor iexec.IExec, gitURL, gitHash, currentGitHash string) (string, string, error)

func DefaultAppInterfaceDirectory added in v0.23.0

func DefaultAppInterfaceDirectory() string

func GetCurrentGitHashFromAppInterface

func GetCurrentGitHashFromAppInterface(saarYamlFile []byte, serviceName string, namespaceRef string) (string, string, error)

func GetCurrentPackageTagFromAppInterface added in v0.18.0

func GetCurrentPackageTagFromAppInterface(saasFile string) (string, error)

Types

type AppInterface added in v0.23.0

type AppInterface struct {
	GitDirectory string
	GitExecutor  iexec.IExec
}

func BootstrapOsdCtlForAppInterfaceAndServicePromotions

func BootstrapOsdCtlForAppInterfaceAndServicePromotions(appInterfaceCheckoutDir string, gitExecutor iexec.Exec) AppInterface

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"`
		Targets []struct {
			Name       string
			Namespace  map[string]string      `yaml:"namespace"`
			Ref        string                 `yaml:"ref"`
			Parameters map[string]interface{} `yaml:"parameters"`
		} `yaml:"targets"`
	} `yaml:"resourceTemplates"`
}

Jump to

Keyboard shortcuts

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