Documentation ¶
Index ¶
- Variables
- func ConstructSpec(d *schema.ResourceData) (spec *policymodel.VmwareTanzuManageV1alpha1CommonPolicySpec)
- func FlattenSpec(spec *policymodel.VmwareTanzuManageV1alpha1CommonPolicySpec) (data []interface{})
- func ValidateInput(_ context.Context, diff *schema.ResourceDiff, _ interface{}) error
- type Recipe
Constants ¶
This section is empty.
Variables ¶
View Source
var (
RecipesAllowed = [...]string{reciperesource.AllowAllKey, reciperesource.AllowAllToPodsKey, reciperesource.AllowAllEgressKey, reciperesource.DenyAllKey, reciperesource.DenyAllToPodsKey, reciperesource.DenyAllEgressKey, reciperesource.CustomEgressKey, reciperesource.CustomIngressKey}
)
Functions ¶
func ConstructSpec ¶
func ConstructSpec(d *schema.ResourceData) (spec *policymodel.VmwareTanzuManageV1alpha1CommonPolicySpec)
func FlattenSpec ¶
func FlattenSpec(spec *policymodel.VmwareTanzuManageV1alpha1CommonPolicySpec) (data []interface{})
func ValidateInput ¶
func ValidateInput(_ context.Context, diff *schema.ResourceDiff, _ interface{}) error
Types ¶
type Recipe ¶
type Recipe string
const ( ResourceName = "tanzu-mission-control_network_policy" // Allowed input recipes. UnknownRecipe Recipe = policy.UnknownRecipe AllowAllRecipe Recipe = reciperesource.AllowAllKey AllowAllToPodsRecipe Recipe = reciperesource.AllowAllToPodsKey AllowAllEgressRecipe Recipe = reciperesource.AllowAllEgressKey DenyAllRecipe Recipe = reciperesource.DenyAllKey DenyAllToPodsRecipe Recipe = reciperesource.DenyAllToPodsKey DenyAllEgressRecipe Recipe = reciperesource.DenyAllEgressKey CustomEgressRecipe Recipe = reciperesource.CustomEgressKey CustomIngressRecipe Recipe = reciperesource.CustomIngressKey )
Click to show internal directories.
Click to hide internal directories.