Documentation ¶
Index ¶
Constants ¶
View Source
const ( ManagementClusterNameKey = "management_cluster_name" ProvisionerNameKey = "provisioner_name" NameKey = "name" ScopeKey = "scope" AttachedValue = "attached" ClusterKey = "cluster" ClusterGroupKey = "cluster_group" ClusterGroupNameKey = "cluster_group_name" BatchUIDAnnotationKey = "tmc.cloud.vmware.com/source-uid" )
Variables ¶
This section is empty.
Functions ¶
func GetScopeSchema ¶
func GetScopeSchema(opts ...SchemaOption) *schema.Schema
func MetaResourceAttributeCheck ¶
func MetaResourceAttributeCheck(resourceName string) []resource.TestCheckFunc
Types ¶
type ClusterGroup ¶
type SchemaConfig ¶
type SchemaOption ¶
type SchemaOption func(*SchemaConfig)
func WithDescription ¶
func WithDescription(d string) SchemaOption
func WithScopes ¶
func WithScopes(s []string) SchemaOption
type ScopeHelperResources ¶
type ScopeHelperResources struct { Meta string Cluster *Cluster ClusterGroup *ClusterGroup Workspace *Workspace OrgID string }
func NewScopeHelperResources ¶
func NewScopeHelperResources() *ScopeHelperResources
func (*ScopeHelperResources) GetTestResourceHelperAndScope ¶
func (shr *ScopeHelperResources) GetTestResourceHelperAndScope(scopeType Scope, scopesAllowed []string) (string, string)
GetTestResourceHelperAndScope builds the helper resource and scope blocks for git repository resource based on a scope type.
type ValidateScopeType ¶
type ValidateScopeType func(ctx context.Context, diff *schema.ResourceDiff, i interface{}) error
func ValidateScope ¶
func ValidateScope(scopesAllowed []string) ValidateScopeType
Click to show internal directories.
Click to hide internal directories.