Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ResourceLabels ¶
type ResourceLabels struct { Trigger *v1alpha1.Trigger Client dynamic.NamespaceableResourceInterface Obj *unstructured.Unstructured }
ResourceLabels implements trigger policy based on the resource labels
func NewResourceLabels ¶
func NewResourceLabels(trigger *v1alpha1.Trigger, client dynamic.NamespaceableResourceInterface, obj *unstructured.Unstructured) *ResourceLabels
func (*ResourceLabels) ApplyPolicy ¶
func (rl *ResourceLabels) ApplyPolicy(ctx context.Context) error
type StatusPolicy ¶
type StatusPolicy struct { // Status represents the status of a generic operation Status int // Statuses refers to list of response status allowed Statuses []int }
StatusPolicy implements the policy for a HTTP trigger
func NewStatusPolicy ¶
func NewStatusPolicy(status int, statuses []int) *StatusPolicy
NewStatusPolicy returns a new HTTP trigger policy
func (*StatusPolicy) ApplyPolicy ¶
func (hp *StatusPolicy) ApplyPolicy(ctx context.Context) error
Click to show internal directories.
Click to hide internal directories.