Documentation
¶
Index ¶
- type CreateOperation
- type DeleteOperation
- type ObjectPatchCollector
- func (c *ObjectPatchCollector) Create(obj any)
- func (c *ObjectPatchCollector) CreateIfNotExists(obj any)
- func (c *ObjectPatchCollector) CreateOrUpdate(obj any)
- func (c *ObjectPatchCollector) Delete(apiVersion string, kind string, namespace string, name string)
- func (c *ObjectPatchCollector) DeleteInBackground(apiVersion string, kind string, namespace string, name string)
- func (c *ObjectPatchCollector) DeleteNonCascading(apiVersion string, kind string, namespace string, name string)
- func (c *ObjectPatchCollector) JQFilter(filter string, apiVersion string, kind string, namespace string, name string, ...)
- func (c *ObjectPatchCollector) JSONPatch(patch any, apiVersion string, kind string, namespace string, name string, ...)
- func (c *ObjectPatchCollector) MergePatch(patch any, apiVersion string, kind string, namespace string, name string, ...)
- func (c *ObjectPatchCollector) Operations() []pkg.PatchCollectorOperation
- func (c *ObjectPatchCollector) PatchWithJQ(jqfilter string, apiVersion string, kind string, namespace string, name string, ...)
- func (c *ObjectPatchCollector) PatchWithJSON(jsonPatch any, apiVersion string, kind string, namespace string, name string, ...)
- func (c *ObjectPatchCollector) PatchWithMerge(mergePatch any, apiVersion string, kind string, namespace string, name string, ...)
- func (c *ObjectPatchCollector) WriteOutput(w io.Writer) error
- type Patch
- type PatchOperation
- type Snapshot
- type Snapshots
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateOperation ¶
type CreateOperation string
const ( Create CreateOperation = "Create" CreateOrUpdate CreateOperation = "CreateOrUpdate" CreateIfNotExists CreateOperation = "CreateIfNotExists" )
type DeleteOperation ¶
type DeleteOperation string
const ( // DeletePropagationForeground Delete DeleteOperation = "Delete" // DeletePropagationBackground DeleteInBackground DeleteOperation = "DeleteInBackground" // DeletePropagationOrphan DeleteNonCascading DeleteOperation = "DeleteNonCascading" )
type ObjectPatchCollector ¶
type ObjectPatchCollector struct {
// contains filtered or unexported fields
}
func NewObjectPatchCollector ¶
func NewObjectPatchCollector(logger *log.Logger) *ObjectPatchCollector
func (*ObjectPatchCollector) Create ¶
func (c *ObjectPatchCollector) Create(obj any)
func (*ObjectPatchCollector) CreateIfNotExists ¶
func (c *ObjectPatchCollector) CreateIfNotExists(obj any)
func (*ObjectPatchCollector) CreateOrUpdate ¶
func (c *ObjectPatchCollector) CreateOrUpdate(obj any)
func (*ObjectPatchCollector) Delete ¶
func (c *ObjectPatchCollector) Delete(apiVersion string, kind string, namespace string, name string)
func (*ObjectPatchCollector) DeleteInBackground ¶
func (c *ObjectPatchCollector) DeleteInBackground(apiVersion string, kind string, namespace string, name string)
func (*ObjectPatchCollector) DeleteNonCascading ¶
func (c *ObjectPatchCollector) DeleteNonCascading(apiVersion string, kind string, namespace string, name string)
func (*ObjectPatchCollector) JQFilter ¶
func (c *ObjectPatchCollector) JQFilter(filter string, apiVersion string, kind string, namespace string, name string, opts ...pkg.PatchCollectorOption)
func (*ObjectPatchCollector) JSONPatch ¶
func (c *ObjectPatchCollector) JSONPatch(patch any, apiVersion string, kind string, namespace string, name string, opts ...pkg.PatchCollectorOption)
func (*ObjectPatchCollector) MergePatch ¶
func (c *ObjectPatchCollector) MergePatch(patch any, apiVersion string, kind string, namespace string, name string, opts ...pkg.PatchCollectorOption)
func (*ObjectPatchCollector) Operations ¶
func (c *ObjectPatchCollector) Operations() []pkg.PatchCollectorOperation
Operations returns all collected operations
func (*ObjectPatchCollector) PatchWithJQ ¶
func (c *ObjectPatchCollector) PatchWithJQ(jqfilter string, apiVersion string, kind string, namespace string, name string, opts ...pkg.PatchCollectorOption)
func (*ObjectPatchCollector) PatchWithJSON ¶
func (c *ObjectPatchCollector) PatchWithJSON(jsonPatch any, apiVersion string, kind string, namespace string, name string, opts ...pkg.PatchCollectorOption)
func (*ObjectPatchCollector) PatchWithMerge ¶
func (c *ObjectPatchCollector) PatchWithMerge(mergePatch any, apiVersion string, kind string, namespace string, name string, opts ...pkg.PatchCollectorOption)
func (*ObjectPatchCollector) WriteOutput ¶
func (c *ObjectPatchCollector) WriteOutput(w io.Writer) error
type Patch ¶
type Patch struct {
// contains filtered or unexported fields
}
func (*Patch) Description ¶
func (*Patch) WithIgnoreHookError ¶
func (*Patch) WithIgnoreMissingObject ¶
func (*Patch) WithSubresource ¶
type PatchOperation ¶
type PatchOperation string
const ( MergePatch PatchOperation = "MergePatch" JQPatch PatchOperation = "JQPatch" JSONPatch PatchOperation = "JSONPatch" )
Click to show internal directories.
Click to hide internal directories.