Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BindingContext ¶
type BindingContext struct {
Metadata `json:"metadata"`
// name of a binding or a group or kubeEventType if binding has no 'name' field
Binding string `json:"binding,omitempty"`
// additional fields for 'kubernetes' binding
Type KubeEventType `json:"type,omitempty"`
Snapshots map[string]ObjectAndFilterResults `json:"snapshots,omitempty"`
}
from shell operator
func (BindingContext) IsSynchronization ¶
func (bc BindingContext) IsSynchronization() bool
type BindingType ¶
type BindingType string
const ( Schedule BindingType = "schedule" OnStartup BindingType = "onStartup" OnKubernetesEvent BindingType = "kubernetes" KubernetesConversion BindingType = "kubernetesCustomResourceConversion" KubernetesValidating BindingType = "kubernetesValidating" KubernetesMutating BindingType = "kubernetesMutating" )
type KubeEventType ¶
type KubeEventType string
const ( TypeSynchronization KubeEventType = "Synchronization" TypeEvent KubeEventType = "Event" TypeSchedule KubeEventType = "Schedule" TypeGroup KubeEventType = "Group" )
type Metadata ¶
type Metadata struct {
Version string `json:"version,omitempty"`
BindingType BindingType `json:"bindingType,omitempty"`
JqFilter string `json:"jqFilter,omitempty"`
IncludeSnapshots []string `json:"includeSnapshots,omitempty"`
IncludeAllSnapshots bool `json:"includeAllSnapshots,omitempty"`
Group string `json:"group,omitempty"`
}
type ObjectAndFilterResult ¶
type ObjectAndFilterResult struct {
Object json.RawMessage `json:"object,omitempty"`
FilterResult json.RawMessage `json:"filterResult,omitempty"`
}
type ObjectAndFilterResults ¶
type ObjectAndFilterResults []ObjectAndFilterResult
type WatchEventType ¶
type WatchEventType string
const ( WatchEventAdded WatchEventType = "Added" WatchEventModified WatchEventType = "Modified" WatchEventDeleted WatchEventType = "Deleted" )
Click to show internal directories.
Click to hide internal directories.