Documentation ¶
Index ¶
- Constants
- Variables
- func ConstructSpec(d *schema.ResourceData) (spec *policymodel.VmwareTanzuManageV1alpha1CommonPolicySpec)
- func FlattenSpec(spec *policymodel.VmwareTanzuManageV1alpha1CommonPolicySpec) (data []interface{})
- func ValidateInput(ctx context.Context, diff *schema.ResourceDiff, i interface{}) error
- type Recipe
Constants ¶
View Source
const (
ResourceName = "tanzu-mission-control_namespace_quota_policy"
)
Variables ¶
View Source
var (
RecipesAllowed = [...]string{reciperesource.CustomKey, reciperesource.SmallKey, reciperesource.MediumKey, reciperesource.LargeKey}
)
View Source
var SpecSchema = &schema.Schema{ Type: schema.TypeList, Description: "Spec for the namespace namespace quota policy", Required: true, MaxItems: 1, Elem: &schema.Resource{ Schema: map[string]*schema.Schema{ policy.InputKey: inputSchema, policy.NamespaceSelectorKey: policy.NamespaceSelector, }, }, }
Functions ¶
func ConstructSpec ¶
func ConstructSpec(d *schema.ResourceData) (spec *policymodel.VmwareTanzuManageV1alpha1CommonPolicySpec)
func FlattenSpec ¶
func FlattenSpec(spec *policymodel.VmwareTanzuManageV1alpha1CommonPolicySpec) (data []interface{})
func ValidateInput ¶
func ValidateInput(ctx context.Context, diff *schema.ResourceDiff, i interface{}) error
Types ¶
type Recipe ¶
type Recipe string
const ( UnknownRecipe Recipe = policy.UnknownRecipe CustomRecipe Recipe = reciperesource.CustomKey SmallRecipe Recipe = reciperesource.SmallKey MediumRecipe Recipe = reciperesource.MediumKey LargeRecipe Recipe = reciperesource.LargeKey )
Allowed input recipes.
Click to show internal directories.
Click to hide internal directories.