binding_context

package
v0.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 5, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL