Versions in this module Expand all Collapse all v0 v0.4.1 Mar 10, 2022 v0.4.0 Feb 7, 2022 Changes in this version + const ArgoCDSecretTypeCluster + const ArgoCDSecretTypeLabel + const DefaultPullRequestRequeueAfterSeconds + const DefaultRequeueAfterSeconds + const DefaultSCMProviderRequeueAfterSeconds + var EmptyAppSetGeneratorError = errors.New("ApplicationSet is empty") + var ErrLessThanTwoGenerators = errors.New("found less than two generators, Matrix support only two") + var ErrLessThanTwoGeneratorsInMerge = errors.New("found less than two generators, Merge requires two or more") + var ErrMoreThanTwoGenerators = errors.New("found more than two generators, Matrix support only two") + var ErrMoreThenOneInnerGenerators = errors.New("found more than one generator in matrix.Generators") + var ErrNoMergeKeys = errors.New("no merge keys were specified, Merge requires at least one") + var ErrNonUniqueParamSets = errors.New(...) + var NoRequeueAfter time.Duration + type ClusterGenerator struct + func (g *ClusterGenerator) GenerateParams(appSetGenerator *argoprojiov1alpha1.ApplicationSetGenerator, ...) ([]map[string]string, error) + func (g *ClusterGenerator) GetRequeueAfter(appSetGenerator *argoprojiov1alpha1.ApplicationSetGenerator) time.Duration + func (g *ClusterGenerator) GetTemplate(appSetGenerator *argoprojiov1alpha1.ApplicationSetGenerator) *argoprojiov1alpha1.ApplicationSetTemplate + type DuckTypeGenerator struct + func (g *DuckTypeGenerator) GenerateParams(appSetGenerator *argoprojiov1alpha1.ApplicationSetGenerator, ...) ([]map[string]string, error) + func (g *DuckTypeGenerator) GetRequeueAfter(appSetGenerator *argoprojiov1alpha1.ApplicationSetGenerator) time.Duration + func (g *DuckTypeGenerator) GetTemplate(appSetGenerator *argoprojiov1alpha1.ApplicationSetGenerator) *argoprojiov1alpha1.ApplicationSetTemplate + type Generator interface + GenerateParams func(appSetGenerator *argoprojiov1alpha1.ApplicationSetGenerator, ...) ([]map[string]string, error) + GetRequeueAfter func(appSetGenerator *argoprojiov1alpha1.ApplicationSetGenerator) time.Duration + GetTemplate func(appSetGenerator *argoprojiov1alpha1.ApplicationSetGenerator) *argoprojiov1alpha1.ApplicationSetTemplate + func GetRelevantGenerators(requestedGenerator *argoprojiov1alpha1.ApplicationSetGenerator, ...) []Generator + func NewClusterGenerator(c client.Client, ctx context.Context, clientset kubernetes.Interface, ...) Generator + func NewDuckTypeGenerator(ctx context.Context, dynClient dynamic.Interface, ...) Generator + func NewGitGenerator(repos services.Repos) Generator + func NewListGenerator() Generator + func NewMatrixGenerator(supportedGenerators map[string]Generator) Generator + func NewMergeGenerator(supportedGenerators map[string]Generator) Generator + func NewPullRequestGenerator(client client.Client) Generator + func NewSCMProviderGenerator(client client.Client) Generator + type GitGenerator struct + func (g *GitGenerator) GenerateParams(appSetGenerator *argoprojiov1alpha1.ApplicationSetGenerator, ...) ([]map[string]string, error) + func (g *GitGenerator) GetRequeueAfter(appSetGenerator *argoprojiov1alpha1.ApplicationSetGenerator) time.Duration + func (g *GitGenerator) GetTemplate(appSetGenerator *argoprojiov1alpha1.ApplicationSetGenerator) *argoprojiov1alpha1.ApplicationSetTemplate + type ListGenerator struct + func (g *ListGenerator) GenerateParams(appSetGenerator *argoprojiov1alpha1.ApplicationSetGenerator, ...) ([]map[string]string, error) + func (g *ListGenerator) GetRequeueAfter(appSetGenerator *argoprojiov1alpha1.ApplicationSetGenerator) time.Duration + func (g *ListGenerator) GetTemplate(appSetGenerator *argoprojiov1alpha1.ApplicationSetGenerator) *argoprojiov1alpha1.ApplicationSetTemplate + type MatrixGenerator struct + func (m *MatrixGenerator) GenerateParams(appSetGenerator *argoprojiov1alpha1.ApplicationSetGenerator, ...) ([]map[string]string, error) + func (m *MatrixGenerator) GetRequeueAfter(appSetGenerator *argoprojiov1alpha1.ApplicationSetGenerator) time.Duration + func (m *MatrixGenerator) GetTemplate(appSetGenerator *argoprojiov1alpha1.ApplicationSetGenerator) *argoprojiov1alpha1.ApplicationSetTemplate + type MergeGenerator struct + func (m *MergeGenerator) GenerateParams(appSetGenerator *argoprojiov1alpha1.ApplicationSetGenerator, ...) ([]map[string]string, error) + func (m *MergeGenerator) GetRequeueAfter(appSetGenerator *argoprojiov1alpha1.ApplicationSetGenerator) time.Duration + func (m *MergeGenerator) GetTemplate(appSetGenerator *argoprojiov1alpha1.ApplicationSetGenerator) *argoprojiov1alpha1.ApplicationSetTemplate + type PullRequestGenerator struct + func (g *PullRequestGenerator) GenerateParams(appSetGenerator *argoprojiov1alpha1.ApplicationSetGenerator, ...) ([]map[string]string, error) + func (g *PullRequestGenerator) GetRequeueAfter(appSetGenerator *argoprojiov1alpha1.ApplicationSetGenerator) time.Duration + func (g *PullRequestGenerator) GetTemplate(appSetGenerator *argoprojiov1alpha1.ApplicationSetGenerator) *argoprojiov1alpha1.ApplicationSetTemplate + type SCMProviderGenerator struct + func (g *SCMProviderGenerator) GenerateParams(appSetGenerator *argoprojiov1alpha1.ApplicationSetGenerator, ...) ([]map[string]string, error) + func (g *SCMProviderGenerator) GetRequeueAfter(appSetGenerator *argoprojiov1alpha1.ApplicationSetGenerator) time.Duration + func (g *SCMProviderGenerator) GetTemplate(appSetGenerator *argoprojiov1alpha1.ApplicationSetGenerator) *argoprojiov1alpha1.ApplicationSetTemplate + type TransformResult struct + Params []map[string]string + Template argoprojiov1alpha1.ApplicationSetTemplate + func Transform(requestedGenerator argoprojiov1alpha1.ApplicationSetGenerator, ...) ([]TransformResult, error)