Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GitConfig ¶ added in v0.6.0
type GitConfig struct {
Name string `envconfig:"GITCLIENT_NAME"`
Email string `envconfig:"GITCLIENT_EMAIL"`
SigningKeyType string `envconfig:"GITCLIENT_SIGNING_KEY_TYPE"`
SigningKeyPath string `envconfig:"GITCLIENT_SIGNING_KEY_PATH"`
}
func GitConfigFromEnv ¶ added in v0.6.0
func GitConfigFromEnv() GitConfig
type Mechanism ¶
type Mechanism interface {
// GetName returns the name of a promotion mechanism.
GetName() string
// Promote consults rules in the provided Stage to perform some portion of the
// transition to using artifacts from the provided FreightReferences. It
// may modify the provided Promotion's status.
Promote(context.Context, *kargoapi.Stage, *kargoapi.Promotion) error
}
Mechanism provides a consistent interface for all promotion mechanisms.
func NewMechanisms ¶
func NewMechanisms( kargoClient client.Client, argocdClient client.Client, credentialsDB credentials.Database, ) Mechanism
NewMechanisms returns the entrypoint to a hierarchical tree of promotion mechanisms.
Click to show internal directories.
Click to hide internal directories.