hook

package
v1.0.0-beta.8 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2020 License: Apache-2.0 Imports: 4 Imported by: 18

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)

Jump to

Keyboard shortcuts

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