Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GeneratorFactory ¶
func GeneratorFactory(fetcher parser.ArchiveFetcher) generators.GeneratorFactory
GeneratorFactory is a function for creating per-reconciliation generators for the OCIRepositoryGenerator.
Types ¶
type OCIRepositoryGenerator ¶
type OCIRepositoryGenerator struct { Client client.Reader logr.Logger Fetcher parser.ArchiveFetcher }
OCIRepositoryGenerator extracts files from Flux OCIRepository resources.
func NewGenerator ¶
func NewGenerator(l logr.Logger, c client.Reader, fetcher parser.ArchiveFetcher) *OCIRepositoryGenerator
NewGenerator creates and returns a new OCIRepository generator.
func (*OCIRepositoryGenerator) Generate ¶
func (g *OCIRepositoryGenerator) Generate(ctx context.Context, sg *templatesv1.GitOpsSetGenerator, ks *templatesv1.GitOpsSet) ([]map[string]any, error)
Generate is an implementation of the Generator interface.
If the OCIRepository generator generates from a list of files, each file is parsed and returned as a generated element.
func (*OCIRepositoryGenerator) Interval ¶
func (g *OCIRepositoryGenerator) Interval(sg *templatesv1.GitOpsSetGenerator) time.Duration
Interval is an implementation of the Generator interface.
OCIRepositoryGenerator is driven by watching a Flux OCIRepository resource.
Click to show internal directories.
Click to hide internal directories.