promotion

package
v0.3.2-rc.1 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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 into the specified Freight. It returns current promo status
	// and Freight, which may possibly be updated by the process.
	Promote(
		context.Context,
		*kargoapi.Stage,
		*kargoapi.Promotion,
		kargoapi.SimpleFreight,
	) (*kargoapi.PromotionStatus, kargoapi.SimpleFreight, error)
}

Mechanism provides a consistent interface for all promotion mechanisms.

func NewMechanisms

func NewMechanisms(
	argoClient client.Client,
	credentialsDB credentials.Database,
) Mechanism

NewMechanisms returns the entrypoint to a hierarchical tree of promotion mechanisms.

Jump to

Keyboard shortcuts

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