setup

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AllGenerators = []string{"GitRepository", "OCIRepository", "Cluster", "PullRequests", "List", "APIClient", "ImagePolicy", "Matrix", "Config"}

AllGenerators contains the name of all possible Generators.

View Source
var DefaultGenerators = []string{"GitRepository", "OCIRepository", "PullRequests", "List", "APIClient", "Matrix", "Config"}

DefaultGenerators contains the name of the default set of enabled Generators, this leaves out generators that require optional dependencies.

Functions

func GetGenerators

func GetGenerators(enabledGenerators []string, fetcher parser.ArchiveFetcher, clientFactory apiclient.HTTPClientFactory) map[string]generators.GeneratorFactory

GetGenenerators returns a set of generator factories for the set of enabled generators.

func NewSchemeForGenerators

func NewSchemeForGenerators(enabledGenerators []string) (*runtime.Scheme, error)

NewSchemeForGenerators creates and returns a runtime.Scheme configured with the correct schemes for the enabled generators.

func ValidateEnabledGenerators

func ValidateEnabledGenerators(enabledGenerators []string) error

ValidateEnabledGenerators returns an error if an invalid name is provided for the set of enabled generators.

If all provided names are valid, no error is returned.

Types

This section is empty.

Jump to

Keyboard shortcuts

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