Documentation ¶
Index ¶
- Constants
- Variables
- func FilterByConditions(conditions []string, input string) bool
- func FilterWebhook(filter *v1beta1.EventSourceFilter, input []string) bool
- func NewEventRecorder(mgr manager.Manager) record.EventRecorder
- func NewFieldIndexer(mgr manager.Manager) client.FieldIndexer
- func NewHandler(handler httputil.Handler) http.Handler
- func ValidateJSONSchema(schemaJSON, docJSON *extv1.JSON) (*extv1.JSON, error)
- type RenderedTrigger
- type TriggerHandler
- type TriggerNotFoundError
- type TriggerOptions
- type ValidationErrors
Constants ¶
View Source
const ( ReasonCreated = "Created" ReasonCreateFailed = "CreateFailed" ReasonAlreadyExists = "AlreadyExists" ReasonUpdated = "Updated" ReasonUpdateFailed = "UpdateFailed" ReasonDeleted = "Deleted" ReasonDeleteFailed = "DeleteFailed" ReasonInvalidWebhook = "InvalidWebhook" ReasonNotExist = "NotExist" ReasonTriggered = "Triggered" ReasonTriggerFailed = "TriggerFailed" ReasonFailed = "Failed" )
Variables ¶
View Source
var ErrInvalidAction = errors.New("invalid action")
View Source
var TriggerHandlerSet = wire.NewSet( wire.Struct(new(TriggerHandler), "*"), )
TriggerHandlerSet provides a TriggerHandler. nolint: gochecknoglobals
Functions ¶
func FilterByConditions ¶
func FilterWebhook ¶
func FilterWebhook(filter *v1beta1.EventSourceFilter, input []string) bool
func NewEventRecorder ¶
func NewEventRecorder(mgr manager.Manager) record.EventRecorder
func NewFieldIndexer ¶
func NewFieldIndexer(mgr manager.Manager) client.FieldIndexer
Types ¶
type RenderedTrigger ¶
type RenderedTrigger struct { ResourceTemplate *v1beta1.ResourceTemplate Trigger *v1beta1.Trigger }
type TriggerHandler ¶
type TriggerHandler struct { Client client.Client Recorder record.EventRecorder }
func NewTriggerHandler ¶
func NewTriggerHandler(mgr manager.Manager) *TriggerHandler
func (*TriggerHandler) Handle ¶
func (t *TriggerHandler) Handle(ctx context.Context, options *TriggerOptions) error
type TriggerNotFoundError ¶
type TriggerNotFoundError struct {
// contains filtered or unexported fields
}
func (TriggerNotFoundError) Error ¶
func (t TriggerNotFoundError) Error() string
func (TriggerNotFoundError) Unwrap ¶
func (t TriggerNotFoundError) Unwrap() error
type TriggerOptions ¶
type ValidationErrors ¶
type ValidationErrors []string
func (ValidationErrors) Error ¶
func (v ValidationErrors) Error() string
Click to show internal directories.
Click to hide internal directories.