policykindnetwork

package
v1.4.6-rc4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 23, 2024 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SpecSchema = &schema.Schema{
	Type:        schema.TypeList,
	Description: "Spec for the network policy",
	Required:    true,
	MaxItems:    1,
	Elem: &schema.Resource{
		Schema: map[string]*schema.Schema{
			policy.InputKey:             inputSchema,
			policy.NamespaceSelectorKey: policy.NamespaceSelector,
		},
	},
}

Functions

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
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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