Documentation ¶
Index ¶
- Constants
- Variables
- type DataSourceBuildMode
- type DataSourceTFConfigBuilder
- type ResourceBuildMode
- type ResourceTFConfigBuilder
- func (builder *ResourceTFConfigBuilder) GetFullClusterBackupScheduleConfig() string
- func (builder *ResourceTFConfigBuilder) GetFullClusterCGBackupScheduleConfig() string
- func (builder *ResourceTFConfigBuilder) GetLabelsBackupScheduleConfig() string
- func (builder *ResourceTFConfigBuilder) GetLabelsCGBackupScheduleConfig() string
- func (builder *ResourceTFConfigBuilder) GetNamespacesBackupScheduleConfig() string
- func (builder *ResourceTFConfigBuilder) GetNamespacesCGBackupScheduleConfig() string
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
Click to show internal directories.
Click to hide internal directories.