expectations

package
v0.0.0-...-03eeb13 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConditionComparator

func ConditionComparator(t T, e, a any)

func ConditionsComparator

func ConditionsComparator(t T, e, a any)

func CreateApplicationComparator

func CreateApplicationComparator(c client.Client, ctx context.Context) Comparator

func CreateApplicationsComparator

func CreateApplicationsComparator(c client.Client, ctx context.Context) Comparator

func CreateDeploymentComparator

func CreateDeploymentComparator(c client.Client, ctx context.Context) Comparator

func CreateDeploymentsComparator

func CreateDeploymentsComparator(c client.Client, ctx context.Context) Comparator

func CreateEnvironmentComparator

func CreateEnvironmentComparator(c client.Client, ctx context.Context) Comparator

func CreateEnvironmentsComparator

func CreateEnvironmentsComparator(c client.Client, ctx context.Context) Comparator

func RepositoriesComparator

func RepositoriesComparator(t T, e, a any)

func RepositoryComparator

func RepositoryComparator(t T, e, a any)

Types

type AppE

type AppE struct {
	Name         string
	Status       AppStatusE
	Environments []EnvE
}

type AppStatusE

type AppStatusE struct {
	Conditions map[string]*ConditionE
}

type ConditionE

type ConditionE struct {
	Type    string
	Status  *string
	Reason  *regexp.Regexp
	Message *regexp.Regexp
}

type DeploymentE

type DeploymentE struct {
	Spec      DeploymentSpecE
	Status    DeploymentStatusE
	Resources []ResourceE
}

type DeploymentSpecE

type DeploymentSpecE struct {
	Repository v1.DeploymentRepositoryReference
}

type DeploymentStatusE

type DeploymentStatusE struct {
	Branch                string
	Conditions            map[string]*ConditionE
	LastAttemptedRevision string
	LastAppliedRevision   string
	ResolvedRepository    string
}

type E

type E struct {
	Applications map[string]AppE
}

type EnvE

type EnvE struct {
	Spec        EnvSpecE
	Status      EnvStatusE
	Deployments []DeploymentE
}

type EnvSpecE

type EnvSpecE struct{ PreferredBranch string }

type EnvStatusE

type EnvStatusE struct{ Conditions map[string]*ConditionE }

type RepositoryE

type RepositoryE struct {
	Name   string
	Spec   RepositorySpecE
	Status RepositoryStatusE
}

type RepositorySpecE

type RepositorySpecE struct{}

type RepositoryStatusE

type RepositoryStatusE struct {
	Conditions    map[string]*ConditionE
	DefaultBranch string
	Revisions     map[string]string
}

type ResourceE

type ResourceE struct {
	Object    client.Object
	Name      string
	Namespace string
	Validator func(T, ResourceE)
}

Jump to

Keyboard shortcuts

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