Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BindingContext ¶
type BindingContext struct {
Metadata struct {
Version string
BindingType BindingType
JqFilter string
IncludeSnapshots []string
IncludeAllSnapshots bool
Group string
}
// name of a binding or a group or kubeEventType if binding has no 'name' field
Binding string
// additional fields for 'kubernetes' binding
Type KubeEventType
WatchEvent WatchEventType
Objects []ObjectAndFilterResult
Snapshots map[string][]ObjectAndFilterResult
AdmissionReview *v1.AdmissionReview
ConversionReview map[string]interface{}
FromVersion string
ToVersion string
}
BindingContext contains information about event for hook
func (BindingContext) IsSynchronization ¶
func (bc BindingContext) IsSynchronization() bool
func (BindingContext) Map ¶
func (bc BindingContext) Map() map[string]interface{}
func (BindingContext) MapV0 ¶
func (bc BindingContext) MapV0() map[string]interface{}
func (BindingContext) MapV1 ¶
func (bc BindingContext) MapV1() map[string]interface{}
func (BindingContext) MarshalJSON ¶
func (bc BindingContext) MarshalJSON() ([]byte, error)
type BindingContextList ¶
type BindingContextList []map[string]interface{}
func ConvertBindingContextList ¶
func ConvertBindingContextList(version string, contexts []BindingContext) BindingContextList
func (BindingContextList) Json ¶
func (b BindingContextList) Json() ([]byte, error)
Click to show internal directories.
Click to hide internal directories.