Documentation
¶
Index ¶
- func ConvertLocalTimeToUTC(localTimeStr string) string
- func GenerateCronExpression(daysOfWeek string, backupTime string) string
- func IsDaysOfWeekValid(daysOfWeek string) bool
- func IsTimeFormatValid(timeStr string) bool
- func SetBackupSpecUseRoles(cmd *cobra.Command, spec *ybmclient.BackupSpec)
- func SetRestoreSpecUseRoles(cmd *cobra.Command, spec *ybmclient.RestoreSpec)
- func SetScheduleSpecV2UseRoles(cmd *cobra.Command, spec *ybmclient.ScheduleSpecV2)
- func SetSelectiveRestoreAndKeyspaceUpdateSpec(cmd *cobra.Command, spec *ybmclient.RestoreSpec) error
- func SetUseRolesFromFlag(cmd *cobra.Command, spec UseRolesSetter) bool
- type UseRolesSetter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertLocalTimeToUTC ¶
func GenerateCronExpression ¶
func IsDaysOfWeekValid ¶
func IsTimeFormatValid ¶
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
Click to show internal directories.
Click to hide internal directories.