proxy

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2023 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProxyHandlerPrefix = "/cluster-proxy/"
)

Variables

This section is empty.

Functions

func AddToContainer

func AddToContainer(c *restful.Container, clusterReader cluster.ClusterReader) error

func ForEachObjectInYAML

func ForEachObjectInYAML(
	ctx context.Context,
	dc *discovery.DiscoveryClient,
	dyn dynamic.Interface,
	data []byte,
	actionFn ForEachObjectInYAMLActionFunc) []error

Types

type Action

type Action string
const (
	ActionApply  Action = "kubectl-apply"
	ActionDelete Action = "kubectl-delete"
	ActionProxy  Action = "proxy"
)

type Object

type Object struct {
	Data *unstructured.Unstructured
	GVK  *schema.GroupVersionKind
}

Jump to

Keyboard shortcuts

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