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 } // name of binding 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 }
Information about event for hook
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.