backupscheduletests

package
v1.4.6-rc4 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2024 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FullClusterBackupScheduleResourceName = "test_full_cluster_backup"
	FullClusterBackupScheduleName         = "full-cluster-backup"

	NamespacesBackupScheduleResourceName = "test_namespaces_backup"
	NamespacesBackupScheduleName         = "namespaces-backup"

	LabelsBackupScheduleResourceName = "test_labels_backup"
	LabelsBackupScheduleName         = "labels-backup"
)
View Source
const (
	DataSourceName = "test_cluster_scope"
)

Variables

View Source
var (
	FullClusterBackupScheduleResourceFullName = fmt.Sprintf("%s.%s", backupscheduleres.ResourceName, FullClusterBackupScheduleResourceName)
	NamespacesBackupScheduleResourceFullName  = fmt.Sprintf("%s.%s", backupscheduleres.ResourceName, NamespacesBackupScheduleResourceName)
	LabelsBackupScheduleResourceFullName      = fmt.Sprintf("%s.%s", backupscheduleres.ResourceName, LabelsBackupScheduleResourceName)
)
View Source
var (
	DataSourceFullName = fmt.Sprintf("data.%s.%s", backupscheduleres.ResourceName, DataSourceName)
)

Functions

This section is empty.

Types

type DataSourceBuildMode

type DataSourceBuildMode string
const (
	DsFullBuild  DataSourceBuildMode = "FULL"
	DsNoParentRs DataSourceBuildMode = "NO_PARENT_RESOURCE"
)

type DataSourceTFConfigBuilder

type DataSourceTFConfigBuilder struct {
	BackupScheduleRequiredResource string
	ClusterInfo                    string
	ClusterGroupInfo               string
}

func InitDataSourceTFConfigBuilder

func InitDataSourceTFConfigBuilder(scopeHelper *commonscope.ScopeHelperResources, resourceConfigBuilder *ResourceTFConfigBuilder, bMode DataSourceBuildMode) *DataSourceTFConfigBuilder

func (*DataSourceTFConfigBuilder) GetCGDataSourceConfig

func (builder *DataSourceTFConfigBuilder) GetCGDataSourceConfig() string

func (*DataSourceTFConfigBuilder) GetDataSourceConfig

func (builder *DataSourceTFConfigBuilder) GetDataSourceConfig() string

type ResourceBuildMode

type ResourceBuildMode string
const (
	RsFullBuild                  ResourceBuildMode = "FULL"
	RsDataProtectionParentRsOnly ResourceBuildMode = "DATA_PROTECTION_ONLY"
	RsTargetLocationParentRsOnly ResourceBuildMode = "TARGET_LOCATION_ONLY"
	RsNoParentRs                 ResourceBuildMode = "NO_PARENT_RS"
)

type ResourceTFConfigBuilder

type ResourceTFConfigBuilder struct {
	DataProtectionRequiredResource string
	TargetLocationRequiredResource string
	ClusterInfo                    string
	TargetLocationInfo             string
	ClusterGroupInfo               string
}

func InitResourceTFConfigBuilder

func InitResourceTFConfigBuilder(scopeHelper *commonscope.ScopeHelperResources, bMode ResourceBuildMode, tmcManageCredentials string) *ResourceTFConfigBuilder

func (*ResourceTFConfigBuilder) GetFullClusterBackupScheduleConfig

func (builder *ResourceTFConfigBuilder) GetFullClusterBackupScheduleConfig() string

func (*ResourceTFConfigBuilder) GetFullClusterCGBackupScheduleConfig

func (builder *ResourceTFConfigBuilder) GetFullClusterCGBackupScheduleConfig() string

func (*ResourceTFConfigBuilder) GetLabelsBackupScheduleConfig

func (builder *ResourceTFConfigBuilder) GetLabelsBackupScheduleConfig() string

func (*ResourceTFConfigBuilder) GetLabelsCGBackupScheduleConfig

func (builder *ResourceTFConfigBuilder) GetLabelsCGBackupScheduleConfig() string

func (*ResourceTFConfigBuilder) GetNamespacesBackupScheduleConfig

func (builder *ResourceTFConfigBuilder) GetNamespacesBackupScheduleConfig() string

func (*ResourceTFConfigBuilder) GetNamespacesCGBackupScheduleConfig

func (builder *ResourceTFConfigBuilder) GetNamespacesCGBackupScheduleConfig() string

Jump to

Keyboard shortcuts

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