kube

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2023 License: Apache-2.0 Imports: 17 Imported by: 2

Documentation

Index

Constants

View Source
const (
	// ProviderName is provider name for install.
	ProviderName = "kube"
	// AnnoWorkflowLastAppliedConfig is the annotation for last applied config
	AnnoWorkflowLastAppliedConfig = "workflow.oam.dev/last-applied-configuration"
	// AnnoWorkflowLastAppliedTime is annotation for last applied time
	AnnoWorkflowLastAppliedTime = "workflow.oam.dev/last-applied-time"
)
View Source
const (
	// WorkflowResourceCreator is the creator name of workflow resource
	WorkflowResourceCreator string = "workflow"
)

Variables

This section is empty.

Functions

func Install

func Install(p types.Providers, cli client.Client, labels map[string]string, handlers *Handlers)

Install register handlers to provider discover.

Types

type Deleter

type Deleter func(ctx context.Context, cluster, owner string, manifest *unstructured.Unstructured) error

Deleter is a client for delete resources.

type Dispatcher

type Dispatcher func(ctx context.Context, cluster, owner string, manifests ...*unstructured.Unstructured) error

Dispatcher is a client for apply resources.

type Handlers

type Handlers struct {
	Apply  Dispatcher
	Delete Deleter
}

Handlers handles resources.

Jump to

Keyboard shortcuts

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