bindingcontext

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2025 License: Apache-2.0 Imports: 1 Imported by: 0 modules, 0 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 `json:"metadata"`
	// name of a binding or a group or kubeEventType if binding has no 'name' field
	Binding string `json:"binding,omitempty"`
	// additional fields for 'kubernetes' binding
	Type KubeEventType `json:"type,omitempty"`

	Snapshots map[string]ObjectAndFilterResults `json:"snapshots,omitempty"`
}

from shell operator

func (BindingContext) IsSynchronization

func (bc BindingContext) IsSynchronization() bool

type BindingType

type BindingType string
const (
	Schedule             BindingType = "schedule"
	OnStartup            BindingType = "onStartup"
	OnKubernetesEvent    BindingType = "kubernetes"
	KubernetesConversion BindingType = "kubernetesCustomResourceConversion"
	KubernetesValidating BindingType = "kubernetesValidating"
	KubernetesMutating   BindingType = "kubernetesMutating"
)

type KubeEventType

type KubeEventType string
const (
	TypeSynchronization KubeEventType = "Synchronization"
	TypeEvent           KubeEventType = "Event"
	TypeSchedule        KubeEventType = "Schedule"
	TypeGroup           KubeEventType = "Group"
)

type Metadata

type Metadata struct {
	Version             string      `json:"version,omitempty"`
	BindingType         BindingType `json:"bindingType,omitempty"`
	JqFilter            string      `json:"jqFilter,omitempty"`
	IncludeSnapshots    []string    `json:"includeSnapshots,omitempty"`
	IncludeAllSnapshots bool        `json:"includeAllSnapshots,omitempty"`
	Group               string      `json:"group,omitempty"`
}

type ObjectAndFilterResult

type ObjectAndFilterResult struct {
	Object       json.RawMessage `json:"object,omitempty"`
	FilterResult json.RawMessage `json:"filterResult,omitempty"`
}

type ObjectAndFilterResults

type ObjectAndFilterResults []ObjectAndFilterResult

type WatchEventType

type WatchEventType string
const (
	WatchEventAdded    WatchEventType = "Added"
	WatchEventModified WatchEventType = "Modified"
	WatchEventDeleted  WatchEventType = "Deleted"
)

Jump to

Keyboard shortcuts

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