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_image_policy"
)
Variables ¶
View Source
var (
RecipesAllowed = [...]string{reciperesource.AllowedNameTagKey, reciperesource.CustomKey, reciperesource.BlockLatestTagKey, reciperesource.RequireDigestKey}
)
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 AllowedNameTagRecipe Recipe = reciperesource.AllowedNameTagKey CustomRecipe Recipe = reciperesource.CustomKey BlockLatestTagRecipe Recipe = reciperesource.BlockLatestTagKey RequireDigestRecipe Recipe = reciperesource.RequireDigestKey )
Allowed input recipes.
Click to show internal directories.
Click to hide internal directories.