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 Patch(currentUnstr *unstructured.Unstructured, modified []byte, name string, ...) ([]byte, types.PatchType, error)
- type ApplyHandler
- type ApplyOptions
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 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) ToRESTMapper ¶
func (o *ApplyOptions) ToRESTMapper() (meta.RESTMapper, error)
func (*ApplyOptions) WithServerSide ¶
func (o *ApplyOptions) WithServerSide(serverSide bool) *ApplyOptions
Click to show internal directories.
Click to hide internal directories.