apply

package
v0.0.0-...-ed75ec7 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2024 License: Apache-2.0 Imports: 32 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 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

type ApplyOptions

type ApplyOptions struct {
	// contains filtered or unexported fields
}

func NewApplyOptions

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

func (*ApplyOptions) Apply

func (o *ApplyOptions) Apply(ctx context.Context, data []byte) error

func (*ApplyOptions) ToRESTMapper

func (o *ApplyOptions) ToRESTMapper() (meta.RESTMapper, error)

func (*ApplyOptions) WithServerSide

func (o *ApplyOptions) WithServerSide(serverSide bool) *ApplyOptions

Jump to

Keyboard shortcuts

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