binding_context

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: Apache-2.0 Imports: 6 Imported by: 5 modules, 19 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 *apixv1.ConversionReview
	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