util

package
v0.0.0-...-6f6c25d Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2019 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssignTypeKind

func AssignTypeKind(v interface{}) error

func CreateOrPatchBackupSession

func CreateOrPatchBackupSession(c cs.StashV1beta1Interface, meta metav1.ObjectMeta, transform func(bs *api.BackupSession) *api.BackupSession) (*api.BackupSession, kutil.VerbType, error)

func CreateOrPatchFunction

func CreateOrPatchFunction(c cs.StashV1beta1Interface, meta metav1.ObjectMeta, transform func(fn *api.Function) *api.Function) (*api.Function, kutil.VerbType, error)

func CreateOrPatchTask

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

func GetGroupVersionKind

func GetGroupVersionKind(v interface{}) schema.GroupVersionKind

func PatchBackupSessionObject

func PatchBackupSessionObject(c cs.StashV1beta1Interface, cur, mod *api.BackupSession) (*api.BackupSession, kutil.VerbType, error)

func PatchFunction

func PatchFunction(c cs.StashV1beta1Interface, cur *api.Function, transform func(*api.Function) *api.Function) (*api.Function, kutil.VerbType, error)

func PatchFunctionObject

func PatchFunctionObject(c cs.StashV1beta1Interface, cur, mod *api.Function) (*api.Function, kutil.VerbType, error)

func PatchTask

func PatchTask(c cs.StashV1beta1Interface, cur *api.Task, transform func(*api.Task) *api.Task) (*api.Task, kutil.VerbType, error)

func PatchTaskObject

func PatchTaskObject(c cs.StashV1beta1Interface, cur, mod *api.Task) (*api.Task, kutil.VerbType, error)

func SetBackupSessionStats

func SetBackupSessionStats(c cs.StashV1beta1Interface, backupSession *api.BackupSession, backupStats []api.BackupStats, phase api.BackupSessionPhase) (*api.BackupSession, error)

func SetRestoreSessionStats

func SetRestoreSessionStats(c cs.StashV1beta1Interface, recovery *api.RestoreSession, d string, phase api.RestorePhase) (*api.RestoreSession, error)

func TryUpdateBackupConfiguration

func TryUpdateBackupConfiguration(c cs.StashV1beta1Interface, meta metav1.ObjectMeta, transform func(*api.BackupConfiguration) *api.BackupConfiguration) (result *api.BackupConfiguration, err error)

func TryUpdateBackupSession

func TryUpdateBackupSession(c cs.StashV1beta1Interface, meta metav1.ObjectMeta, transform func(*api.BackupSession) *api.BackupSession) (result *api.BackupSession, err error)

func TryUpdateFunction

func TryUpdateFunction(c cs.StashV1beta1Interface, meta metav1.ObjectMeta, transform func(*api.Function) *api.Function) (result *api.Function, err error)

func TryUpdateRestoreSession

func TryUpdateRestoreSession(c cs.StashV1beta1Interface, meta metav1.ObjectMeta, transform func(*api.RestoreSession) *api.RestoreSession) (result *api.RestoreSession, err error)

func TryUpdateTask

func TryUpdateTask(c cs.StashV1beta1Interface, meta metav1.ObjectMeta, transform func(*api.Task) *api.Task) (result *api.Task, err error)

func UpdateBackupSessionStatus

func UpdateBackupSessionStatus(
	c cs.StashV1beta1Interface,
	in *api.BackupSession,
	transform func(*api.BackupSessionStatus) *api.BackupSessionStatus,
	useSubresource ...bool,
) (result *api.BackupSession, err error)

func UpdateRestoreSessionStatus

func UpdateRestoreSessionStatus(
	c cs.StashV1beta1Interface,
	in *api.RestoreSession,
	transform func(*api.RestoreSessionStatus) *api.RestoreSessionStatus,
	useSubresource ...bool,
) (result *api.RestoreSession, 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