util

package
v0.11.5 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2020 License: Apache-2.0 Imports: 17 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssignTypeKind

func AssignTypeKind(v interface{}) error

func CreateOrPatchRecovery

func CreateOrPatchRecovery(ctx context.Context, c cs.StashV1alpha1Interface, meta metav1.ObjectMeta, transform func(in *api.Recovery) *api.Recovery, opts metav1.PatchOptions) (*api.Recovery, kutil.VerbType, error)

func CreateOrPatchRestic

func CreateOrPatchRestic(ctx context.Context, c cs.StashV1alpha1Interface, meta metav1.ObjectMeta, transform func(in *api.Restic) *api.Restic, opts metav1.PatchOptions) (*api.Restic, kutil.VerbType, error)

func GetGroupVersionKind

func GetGroupVersionKind(v interface{}) schema.GroupVersionKind

func PatchRestic

func PatchRestic(ctx context.Context, c cs.StashV1alpha1Interface, cur *api.Restic, transform func(*api.Restic) *api.Restic, opts metav1.PatchOptions) (*api.Restic, kutil.VerbType, error)

func PatchResticObject

func PatchResticObject(ctx context.Context, c cs.StashV1alpha1Interface, cur, mod *api.Restic, opts metav1.PatchOptions) (*api.Restic, kutil.VerbType, error)

func TryUpdateRecovery

func TryUpdateRecovery(ctx context.Context, c cs.StashV1alpha1Interface, meta metav1.ObjectMeta, transform func(*api.Recovery) *api.Recovery, opts metav1.UpdateOptions) (result *api.Recovery, err error)

func TryUpdateRepository

func TryUpdateRepository(ctx context.Context, c cs.StashV1alpha1Interface, meta metav1.ObjectMeta, transform func(*api.Repository) *api.Repository, opts metav1.UpdateOptions) (result *api.Repository, err error)

func TryUpdateRestic

func TryUpdateRestic(ctx context.Context, c cs.StashV1alpha1Interface, meta metav1.ObjectMeta, transform func(*api.Restic) *api.Restic, opts metav1.UpdateOptions) (result *api.Restic, err error)

func UpdateRecoveryStatus

func UpdateRecoveryStatus(
	ctx context.Context,
	c cs.StashV1alpha1Interface,
	meta metav1.ObjectMeta,
	transform func(*api.RecoveryStatus) *api.RecoveryStatus,
	opts metav1.UpdateOptions,
) (result *api.Recovery, err error)

func UpdateRepositoryStatus

func UpdateRepositoryStatus(
	ctx context.Context,
	c cs.StashV1alpha1Interface,
	meta metav1.ObjectMeta,
	transform func(*api.RepositoryStatus) *api.RepositoryStatus,
	opts metav1.UpdateOptions,
) (result *api.Repository, 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