util

package
v0.1.30 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertLocalTimeToUTC

func ConvertLocalTimeToUTC(localTimeStr string) string

func GenerateCronExpression

func GenerateCronExpression(daysOfWeek string, backupTime string) string

func IsDaysOfWeekValid

func IsDaysOfWeekValid(daysOfWeek string) bool

func IsTimeFormatValid

func IsTimeFormatValid(timeStr string) bool

func SetBackupSpecUseRoles added in v0.1.30

func SetBackupSpecUseRoles(cmd *cobra.Command, spec *ybmclient.BackupSpec)

SetBackupSpecUseRoles sets UseRoles on a BackupSpec from the command flag

func SetRestoreSpecUseRoles added in v0.1.30

func SetRestoreSpecUseRoles(cmd *cobra.Command, spec *ybmclient.RestoreSpec)

SetRestoreSpecUseRoles sets UseRoles on a RestoreSpec from the command flag

func SetScheduleSpecV2UseRoles added in v0.1.30

func SetScheduleSpecV2UseRoles(cmd *cobra.Command, spec *ybmclient.ScheduleSpecV2)

SetScheduleSpecV2UseRoles sets UseRoles on a ScheduleSpecV2 from the command flag

func SetSelectiveRestoreAndKeyspaceUpdateSpec added in v0.1.30

func SetSelectiveRestoreAndKeyspaceUpdateSpec(cmd *cobra.Command, spec *ybmclient.RestoreSpec) error

func SetUseRolesFromFlag added in v0.1.30

func SetUseRolesFromFlag(cmd *cobra.Command, spec UseRolesSetter) bool

SetUseRolesFromFlag checks the --include-roles flag and sets UseRoles on the spec if enabled Returns true if the flag was set, false otherwise

Types

type UseRolesSetter added in v0.1.30

type UseRolesSetter interface {
	SetUseRoles(v bool)
}

UseRolesSetter is an interface for specs that support the UseRoles field

Jump to

Keyboard shortcuts

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