Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Root Directive Keys. SortByKey = "sort_by" QueryKey = "query" IncludeTotalCountKey = "include_total_count" SchedulesKey = "schedules" TotalCountKey = "total_count" ScopeKey = "scope" ClusterScopeKey = "cluster" ClusterGroupScopeKey = "cluster_group" ClusterGroupNameKey = "cluster_group_name" )
View Source
const ( ResourceName = "tanzu-mission-control_backup_schedule" // Root Keys. NameKey = "name" ClusterNameKey = "cluster_name" SpecKey = "spec" SelectorKey = "selector" ProvisionerNameKey = "provisioner_name" ManagementClusterNameKey = "management_cluster_name" BackupScopeKey = "backup_scope" // Selector Directive Keys. NamesKey = "names" ExcludedNamesKey = "excluded_names" // Spec Directive Keys. PausedKey = "paused" ScheduleKey = "schedule" TemplateKey = "template" // Schedule Directive Keys. RateKey = "rate" // Template Directive Keys. BackupTTLKey = "backup_ttl" SystemExcludedNamespacesKey = "sys_excluded_namespaces" ExcludedNamespacesKey = "excluded_namespaces" IncludedNamespacesKey = "included_namespaces" ExcludedResourcesKey = "excluded_resources" IncludedResourcesKey = "included_resources" IncludeClusterResourcesKey = "include_cluster_resources" DefaultVolumesToResticKey = "default_volumes_to_restic" SnapshotVolumesKey = "snapshot_volumes" CsiSnapshotTimeoutKey = "csi_snapshot_timeout" IncludedClusterScopedResourcesKey = "included_cluster_scoped_resources" ExcludedClusterScopedResourcesKey = "excluded_cluster_scoped_resources" SnapshotMoveDataKey = "snapshot_move_data" IncludedNamespaceScopedResourcesKey = "included_namespace_scoped_resources" ExcludedNamespaceScopedResourcesKey = "excluded_namespace_scoped_resources" DefaultVolumesToFsBackupKey = "default_volumes_to_fs_backup" StorageLocationKey = "storage_location" VolumeSnapshotLocationsKey = "volume_snapshot_locations" OrderedResourcesKey = "ordered_resources" HooksKey = "hooks" LabelSelectorKey = "label_selector" OrLabelSelectorKey = "or_label_selector" // Hooks Directive Keys. ResourceKey = "resource" // Resource Directive Keys. PreHookKey = "pre_hook" PostHookKey = "post_hook" // Pre/Post Hook Directive Keys. ExecKey = "exec" // Exec Directive Keys. CommandKey = "command" ContainerKey = "container" OnErrorKey = "on_error" TimeoutKey = "timeout" // (Or)Label Selector Directive Keys. MatchLabelsKey = "match_labels" MatchExrpessionKey = "match_expression" // Match Expressions Directive Keys. MeKey = "key" MeOperatorKey = "operator" MeValuesKey = "values" )
Variables ¶
View Source
var ( ScopeValidValues = []string{string(FullClusterBackupScope), string(NamespacesBackupScope), string(LabelSelectorBackupScope)} OnErrorValidValues = []string{ string(backupschedulemodels.VmwareTanzuManageV1alpha1ClusterDataprotectionBackupHookErrorModeFAIL), string(backupschedulemodels.VmwareTanzuManageV1alpha1ClusterDataprotectionBackupHookErrorModeCONTINUE), } )
Functions ¶
func ResourceBackupSchedule ¶
Types ¶
type BackupScope ¶
type BackupScope string
const ( FullClusterBackupScope BackupScope = "FULL_CLUSTER" NamespacesBackupScope BackupScope = "SET_NAMESPACES" LabelSelectorBackupScope BackupScope = "LABEL_SELECTOR" )
Source Files ¶
Click to show internal directories.
Click to hide internal directories.