operator

package
v0.0.0-...-e679083 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SubscriptionGVR

func SubscriptionGVR(subscription workspace.SchemaVersion) schema.GroupVersionResource

Types

type ApplyOptions

type ApplyOptions struct {
	Options
	OwnerReferences []v1.OwnerReference
}

type Callback

type Callback = func(interface{}, error) error

type Callbacks

type Callbacks struct {
	Pre  []Callback
	Post []Callback
}

type DeleteOptions

type DeleteOptions struct {
	v1.DeletionPropagation
	Options
}

type Operator

type Operator interface {
	Apply(context.Context, ApplyOptions) error
	Delete(context.Context, DeleteOptions) error
}

func NewAPIRuleOperator

func NewAPIRuleOperator(c client.Client, fnName string, u ...unstructured.Unstructured) Operator

func NewGenericOperator

func NewGenericOperator(c client.Client, u ...unstructured.Unstructured) Operator

func NewSubscriptionOperator

func NewSubscriptionOperator(c client.Client, fnName, fnNamespace string, u ...unstructured.Unstructured) Operator

type Options

type Options struct {
	Callbacks
	DryRun       []string
	WaitForApply bool
}

Directories

Path Synopsis
Package mock_operator is a generated GoMock package.
Package mock_operator is a generated GoMock package.

Jump to

Keyboard shortcuts

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