Documentation ¶
Index ¶
- Constants
- func DefaultRequestMapper(list []runtime.Object) []reconcile.Request
- func Setup[T any, P ActionResourcePointerType[T]](ctx context.Context, mgr ctrl.Manager, client ctrlclient.Client, ...) (*builder.Builder, error)
- func SourceReferenceIndex[T ActionResource]() func(o ctrlclient.Object) []string
- func TriggerAlwaysPredicate(_ ActionResource, _ ArtifactSource) bool
- type ActionResource
- type ActionResourcePointerType
- type ArtifactSource
- type Option
- type Options
- type RequestMapper
- type SourceMatcher
- type SourceRevisionChangePredicate
- type TriggerPredicate
- type WithRequestMapper
- type WithTriggerPredicate
Constants ¶
View Source
const ( SourceRefIndexKey = ".metadata.sourceref" ArtifactOwnerIndexKey = ".metadata.artifactowner" )
Variables ¶
This section is empty.
Functions ¶
func SourceReferenceIndex ¶
func SourceReferenceIndex[T ActionResource]() func(o ctrlclient.Object) []string
func TriggerAlwaysPredicate ¶
func TriggerAlwaysPredicate(_ ActionResource, _ ArtifactSource) bool
Types ¶
type ActionResource ¶
type ActionResource interface { ctrlclient.Object GetSourceRef() (utils.SourceRefProvider, error) }
type ActionResourcePointerType ¶
type ActionResourcePointerType[T any] interface { *T ActionResource }
type ArtifactSource ¶
func GetSource ¶
func GetSource(ctx context.Context, client ctrlclient.Client, action ActionResource, options ...Option) (ArtifactSource, error)
type Option ¶
type Option interface {
Apply(options *Options)
}
func WithAllowedSourceKinds ¶
func WithAllowedSourceKinds(m SourceMatcher) Option
func WithForOptions ¶
type Options ¶
type Options struct { ForOptions []builder.ForOption NoCrossNamespaceRefs *bool AllowedSourceKinds SourceMatcher TriggerPredicate TriggerPredicate RequestMapper RequestMapper }
func EvalOptions ¶
func (*Options) CrossNamespaceRefsForbidden ¶
type SourceMatcher ¶
type SourceMatcher = matchers.SourceMatcher
type SourceRevisionChangePredicate ¶
func (SourceRevisionChangePredicate) Update ¶
func (SourceRevisionChangePredicate) Update(e event.UpdateEvent) bool
type TriggerPredicate ¶
type TriggerPredicate func(action ActionResource, art ArtifactSource) bool
type WithRequestMapper ¶
type WithRequestMapper RequestMapper
func (WithRequestMapper) Apply ¶
func (o WithRequestMapper) Apply(opts *Options)
type WithTriggerPredicate ¶
type WithTriggerPredicate TriggerPredicate
func (WithTriggerPredicate) Apply ¶
func (o WithTriggerPredicate) Apply(opts *Options)
Click to show internal directories.
Click to hide internal directories.