Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GeneratorFactory ¶
func GeneratorFactory(generatorsMap map[string]generators.GeneratorFactory) generators.GeneratorFactory
GeneratorFactory is a function for creating per-reconciliation generators for the MatrixGenerator.
Types ¶
type MatrixGenerator ¶
type MatrixGenerator struct { Client client.Reader logr.Logger // contains filtered or unexported fields }
MatrixGenerator is a generator that combines the results of multiple generators into a single set of values.
func NewGenerator ¶
func NewGenerator(l logr.Logger, c client.Reader, g map[string]generators.GeneratorFactory) *MatrixGenerator
NewGenerator creates and returns a new matrix generator.
func (*MatrixGenerator) Generate ¶
func (mg *MatrixGenerator) Generate(ctx context.Context, sg *templatesv1.GitOpsSetGenerator, ks *templatesv1.GitOpsSet) ([]map[string]any, error)
func (*MatrixGenerator) Interval ¶
func (g *MatrixGenerator) Interval(sg *templatesv1.GitOpsSetGenerator) time.Duration
Interval is an implementation of the Generator interface.
Click to show internal directories.
Click to hide internal directories.