targetlocationtests

package
v1.4.5 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2024 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ClusterDataSourceName  = "test_cluster_scope"
	ProviderDataSourceName = "test_provider_scope"
)
View Source
const (
	TmcManagedResourceName       = "test_tmc_managed"
	TargetLocationTMCManagedName = "tmc-managed-test"

	AwsSelfManagedResourceName       = "test_aws_self_managed"
	TargetLocationAWSSelfManagedName = "aws-self-managed-test"

	AzureSelfManagedResourceName       = "test_azure_self_managed"
	TargetLocationAzureSelfManagedName = "azure-self-managed-test"
)

Variables

View Source
var (
	ClusterDataSourceFullName  = fmt.Sprintf("data.%s.%s", targetlocationres.ResourceName, ClusterDataSourceName)
	ProviderDataSourceFullName = fmt.Sprintf("data.%s.%s", targetlocationres.ResourceName, ProviderDataSourceName)
)
View Source
var (
	TmcManagedResourceFullName       = fmt.Sprintf("%s.%s", targetlocationres.ResourceName, TmcManagedResourceName)
	AwsSelfManagedResourceFullName   = fmt.Sprintf("%s.%s", targetlocationres.ResourceName, AwsSelfManagedResourceName)
	AzureSelfManagedResourceFullName = fmt.Sprintf("%s.%s", targetlocationres.ResourceName, AzureSelfManagedResourceName)
)

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 {
	DataProtectionRequiredResource string
	TargetLocationRequiredResource string
	ClusterInfo                    string
}

func InitDataSourceTFConfigBuilder

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

func (*DataSourceTFConfigBuilder) GetClusterTargetLocationDataSourceConfig

func (builder *DataSourceTFConfigBuilder) GetClusterTargetLocationDataSourceConfig() string

func (*DataSourceTFConfigBuilder) GetProviderTargetLocationDataSourceConfig

func (builder *DataSourceTFConfigBuilder) GetProviderTargetLocationDataSourceConfig() string

type ResourceBuildMode

type ResourceBuildMode string
const (
	RsFullBuild                  ResourceBuildMode = "FULL"
	RsClusterOnly                ResourceBuildMode = "CLUSTER"
	RsClusterGroupOnly           ResourceBuildMode = "CLUSTER_GROUP"
	RsClusterOnlyNoParentRs      ResourceBuildMode = "CLUSTER_NO_PARENT_RESOURCE"
	RsClusterGroupOnlyNoParentRs ResourceBuildMode = "CLUSTER_GROUP_NO_PARENT_RESOURCE"
)

type ResourceTFConfigBuilder

type ResourceTFConfigBuilder struct {
	RequiredResources   string
	AssignedGroupsBlock string
}

func InitResourceTFConfigBuilder

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

func (*ResourceTFConfigBuilder) GetAWSSelfManagedTargetLocationConfig

func (builder *ResourceTFConfigBuilder) GetAWSSelfManagedTargetLocationConfig() string

func (*ResourceTFConfigBuilder) GetAzureSelfManagedTargetLocationConfig

func (builder *ResourceTFConfigBuilder) GetAzureSelfManagedTargetLocationConfig(azureCredentialsName string) string

func (*ResourceTFConfigBuilder) GetTMCManagedTargetLocationConfig

func (builder *ResourceTFConfigBuilder) GetTMCManagedTargetLocationConfig(tmcManageCredentials string) string

Jump to

Keyboard shortcuts

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