Documentation ¶
Index ¶
- Constants
- Variables
- func ApplyUnstructured(ctx context.Context, dynamicClient dynamic.Interface, ...) (*unstructured.Unstructured, error)
- func Decode(data []byte) ([]unstructured.Unstructured, error)
- func NewApplyHandler(container container.Container, routeType base.RouteType) echo.HandlerFunc
- func NewApplyOptions(dynamicClient dynamic.Interface, discoveryClient discovery.DiscoveryInterface) *applyOptions
- func ObjectToUnstructured(obj runtime.Object) ([]unstructured.Unstructured, error)
- func Patch(currentUnstr *unstructured.Unstructured, modified []byte, name string, ...) ([]byte, types.PatchType, error)
- type ApplyHandler
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 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
Click to show internal directories.
Click to hide internal directories.