policy

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2022 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NamespaceSelectorKey = "namespace_selector"
	MatchExpressionsKey  = "match_expressions"
	KeyKey               = "key"
	OperatorKey          = "operator"
	ValuesKey            = "values"
)

Variables

View Source
var NamespaceSelector = &schema.Schema{
	Type:        schema.TypeList,
	Description: "Label based Namespace Selector for the policy",
	Optional:    true,
	MaxItems:    1,
	Elem: &schema.Resource{
		Schema: map[string]*schema.Schema{
			MatchExpressionsKey: {
				Type:        schema.TypeList,
				Description: "Match expressions is a list of label selector requirements, the requirements are ANDed",
				Required:    true,
				Elem:        labelSelectorRequirement,
			},
		},
	},
}

Functions

func ConstructNamespaceSelector

func ConstructNamespaceSelector(data []interface{}) (namespaceSelector *policymodel.VmwareTanzuManageV1alpha1CommonPolicyLabelSelector)

func FlattenNamespaceSelector

func FlattenNamespaceSelector(namespaceSelector *policymodel.VmwareTanzuManageV1alpha1CommonPolicyLabelSelector) (data []interface{})

func MetaResourceAttributeCheck

func MetaResourceAttributeCheck(resourceName string) []resource.TestCheckFunc

Types

This section is empty.

Directories

Path Synopsis
Package scope contains schema and helper functions for different policy scopes.
Package scope contains schema and helper functions for different policy scopes.
type
security/recipe
Package recipe contains schema and helper functions for different input recipes.
Package recipe contains schema and helper functions for different input recipes.

Jump to

Keyboard shortcuts

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