git

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BaseDir string
)

Functions

func BootstrapOsdCtlForAppInterfaceAndServicePromotions

func BootstrapOsdCtlForAppInterfaceAndServicePromotions()

func CheckoutAndCompareGitHash

func CheckoutAndCompareGitHash(gitURL, gitHash, currentGitHash string) (string, error)

func GetCurrentGitHashFromAppInterface

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

func UpdateAndCommitChangesForAppInterface

func UpdateAndCommitChangesForAppInterface(serviceName, saasFile, currentGitHash, promotionGitHash string) error

Types

type Service

type Service struct {
	Name              string `yaml:"name"`
	ResourceTemplates []struct {
		URL     string `yaml:"url"`
		Targets []struct {
			Namespace map[string]string `yaml:"namespace"`
			Ref       string            `yaml:"ref"`
		} `yaml:"targets"`
	} `yaml:"resourceTemplates"`
}

Jump to

Keyboard shortcuts

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