scope

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: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ManagementClusterNameKey = "management_cluster_name"
	ProvisionerNameKey       = "provisioner_name"
	ClusterNameKey           = "cluster_name"
	ClusterGroupNameKey      = "cluster_group_name"
	ScopeKey                 = "scope"
	ClusterKey               = "cluster"
	ClusterGroupKey          = "cluster_group"
)

Variables

This section is empty.

Functions

func ConstructClusterGroupScopeFullname

func ConstructClusterGroupScopeFullname(data []interface{}) (fullname *dataprotectioncgmodels.VmwareTanzuManageV1alpha1ClustergroupDataprotectionFullName)

func ConstructClusterScopeFullname

func ConstructClusterScopeFullname(data []interface{}) (fullname *dataprotectionmodels.VmwareTanzuManageV1alpha1ClusterDataprotectionFullName)

Types

type Scope

type Scope int64
const (
	UnknownScope Scope = iota
	ClusterScope
	ClusterGroupScope
)

Allowed scopes.

type ScopedFullname

ScopedFullname is a struct for all types of policy full names.

func ConstructScope

func ConstructScope(d *schema.ResourceData) (scopedFullnameData *ScopedFullname)

type ValidateScopeType

type ValidateScopeType func(ctx context.Context, diff *schema.ResourceDiff, i interface{}) error

func ValidateScope

func ValidateScope(scopesAllowed []string) ValidateScopeType

Jump to

Keyboard shortcuts

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