apply

package
v0.0.0-...-0f0353a Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const POSTApply = 8

Variables

View Source
var Scheme = runtime.NewScheme()

Functions

func ApplyUnstructured

func ApplyUnstructured(ctx context.Context, dynamicClient dynamic.Interface, restMapper meta.RESTMapper, unstructuredObj unstructured.Unstructured, serverSide bool) (*unstructured.Unstructured, error)

func Decode

func Decode(data []byte) ([]unstructured.Unstructured, error)

func NewApplyHandler

func NewApplyHandler(container container.Container, routeType base.RouteType) echo.HandlerFunc

func NewApplyOptions

func NewApplyOptions(dynamicClient dynamic.Interface, discoveryClient discovery.DiscoveryInterface) *applyOptions

func ObjectToUnstructured

func ObjectToUnstructured(obj runtime.Object) ([]unstructured.Unstructured, error)

func Patch

func Patch(currentUnstr *unstructured.Unstructured, modified []byte, name string, gvk schema.GroupVersionKind) ([]byte, types.PatchType, error)

Types

type ApplyHandler

type ApplyHandler struct {
	BaseHandler base.BaseHandler
}

func (*ApplyHandler) PostApply

func (h *ApplyHandler) PostApply(c echo.Context) error

Jump to

Keyboard shortcuts

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