util

package
v0.13.1 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2021 License: Apache-2.0 Imports: 12 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateOrPatchFunction

func CreateOrPatchFunction(ctx context.Context, c cs.StashV1beta1Interface, meta metav1.ObjectMeta, transform func(in *api.Function) *api.Function, opts metav1.PatchOptions) (*api.Function, kutil.VerbType, error)

func CreateOrPatchTask

func CreateOrPatchTask(ctx context.Context, c cs.StashV1beta1Interface, meta metav1.ObjectMeta, transform func(in *api.Task) *api.Task, opts metav1.PatchOptions) (*api.Task, kutil.VerbType, error)

func PatchFunction

func PatchFunction(ctx context.Context, c cs.StashV1beta1Interface, cur *api.Function, transform func(*api.Function) *api.Function, opts metav1.PatchOptions) (*api.Function, kutil.VerbType, error)

func PatchTask

func PatchTask(ctx context.Context, c cs.StashV1beta1Interface, cur *api.Task, transform func(*api.Task) *api.Task, opts metav1.PatchOptions) (*api.Task, kutil.VerbType, error)

func PatchTaskObject

func PatchTaskObject(ctx context.Context, c cs.StashV1beta1Interface, cur, mod *api.Task, opts metav1.PatchOptions) (*api.Task, kutil.VerbType, error)

func TryUpdateBackupBatch

func TryUpdateBackupBatch(ctx context.Context, c cs.StashV1beta1Interface, meta metav1.ObjectMeta, transform func(*api.BackupBatch) *api.BackupBatch, opts metav1.UpdateOptions) (result *api.BackupBatch, err error)

func TryUpdateBackupBlueprint

func TryUpdateBackupBlueprint(ctx context.Context, c cs.StashV1beta1Interface, meta metav1.ObjectMeta, transform func(*api.BackupBlueprint) *api.BackupBlueprint, opts metav1.UpdateOptions) (result *api.BackupBlueprint, err error)

func TryUpdateFunction

func TryUpdateFunction(ctx context.Context, c cs.StashV1beta1Interface, meta metav1.ObjectMeta, transform func(*api.Function) *api.Function, opts metav1.UpdateOptions) (result *api.Function, err error)

func TryUpdateRestoreBatch

func TryUpdateRestoreBatch(ctx context.Context, c cs.StashV1beta1Interface, meta metav1.ObjectMeta, transform func(*api.RestoreBatch) *api.RestoreBatch, opts metav1.UpdateOptions) (result *api.RestoreBatch, err error)

func TryUpdateTask

func TryUpdateTask(ctx context.Context, c cs.StashV1beta1Interface, meta metav1.ObjectMeta, transform func(*api.Task) *api.Task, opts metav1.UpdateOptions) (result *api.Task, err error)

func UpdateBackupBatchStatus

func UpdateBackupBatchStatus(
	ctx context.Context,
	c cs.StashV1beta1Interface,
	meta metav1.ObjectMeta,
	transform func(*api.BackupBatchStatus) (types.UID, *api.BackupBatchStatus),
	opts metav1.UpdateOptions,
) (result *api.BackupBatch, err error)

func UpdateRestoreBatchStatus

func UpdateRestoreBatchStatus(
	ctx context.Context,
	c cs.StashV1beta1Interface,
	meta metav1.ObjectMeta,
	transform func(*api.RestoreBatchStatus) (types.UID, *api.RestoreBatchStatus),
	opts metav1.UpdateOptions,
) (result *api.RestoreBatch, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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