utils

package
v1.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EarlyExit

func EarlyExit(ctx context.Context,
	gqlUrl,
	gqlFile,
	gqlUsername,
	gqlPassowrd,
	prevBundleSha,
	saasName string) (bool, error)

query previous graphql bundle and latest bundle then compare bundles for relevant changes return true if gitlabSyncs and promotion targets of git partition sync for both bundles are same

func RecordMetrics

func RecordMetrics(instance string, status int, duration time.Duration)

Types

type ResourceTemplate

type ResourceTemplate struct {
	Targets []Target `yaml:"targets"`
}

type Saas

type Saas struct {
	Name              string             `yaml:"name"`
	ResourceTemplates []ResourceTemplate `yaml:"resourceTemplates"`
}

type SaasFile

type SaasFile struct {
	SaasDefinitions []Saas `yaml:"saas_files"`
}

type Target

type Target struct {
	Ref string `yaml:"ref"`
}

Jump to

Keyboard shortcuts

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