Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( BuiltinGeneralSourceKinds = MapMatcher{ {sourcev1.GroupVersion.Group, sourcev1.GitRepositoryKind}: &sourcev1.GitRepository{}, {sourcev1b2.GroupVersion.Group, sourcev1b2.BucketKind}: &sourcev1b2.Bucket{}, {sourcev1b2.GroupVersion.Group, sourcev1b2.OCIRepositoryKind}: &sourcev1b2.OCIRepository{}, } BuiltinFluxSourceKinds = MapMatcher{ {sourcev1.GroupVersion.Group, sourcev1.GitRepositoryKind}: &sourcev1.GitRepository{}, {sourcev1b2.GroupVersion.Group, sourcev1b2.BucketKind}: &sourcev1b2.Bucket{}, {sourcev1b2.GroupVersion.Group, sourcev1b2.OCIRepositoryKind}: &sourcev1b2.OCIRepository{}, {sourcev1.GroupVersion.Group, sourcev1.HelmRepositoryKind}: &sourcev1.HelmRepository{}, {sourcev1.GroupVersion.Group, sourcev1.HelmChartKind}: &sourcev1.HelmChart{}, {artifactv1.GroupVersion.Group, artifactv1.ArtifactKind}: &artifactv1.Artifact{}, } BuiltinHelmSourceKinds = MapMatcher{ {sourcev1.GroupVersion.Group, sourcev1.HelmRepositoryKind}: &sourcev1.HelmRepository{}, } DynamicSourceKinds = Not(BuiltinFluxSourceKinds) AllSourceKinds = MatchFunc(func(gk schema.GroupKind) bool { return true }) )
Functions ¶
This section is empty.
Types ¶
type MapMatcher ¶
type SourceMatcher ¶
func And ¶
func And(matchers ...SourceMatcher) SourceMatcher
func Not ¶
func Not(matcher SourceMatcher) SourceMatcher
func Or ¶
func Or(matchers ...SourceMatcher) SourceMatcher
Click to show internal directories.
Click to hide internal directories.