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_security_policy"
)
Variables ¶
View Source
var (
RecipesAllowed = [...]string{reciperesource.BaselineKey, reciperesource.CustomKey, reciperesource.StrictKey}
)
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 BaselineRecipe Recipe = reciperesource.BaselineKey CustomRecipe Recipe = reciperesource.CustomKey StrictRecipe Recipe = reciperesource.StrictKey )
Allowed input recipes.
Click to show internal directories.
Click to hide internal directories.