neuvector

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2023 License: MPL-2.0 Imports: 11 Imported by: 0

Documentation

Overview

data_source_eula.go

data_source_group_services.go

data_source_policy_ids.go

data_source_registry.go

data_source_registry_names.go

resource_admission_rule.go

resource_eula.go

resource_group.go

resource_policy.go

resource_promote.go

resource_registry.go

resource_service.go

resource_service_config.go

resource_user.go

resourceuser_role.go

Index

Constants

View Source
const (
	// Specified ID when we want to create a dynamic policy ID
	//
	// In the resource creation process, we will first get every policies IDs from NeuVector,
	// then we will use these IDs for find the available ones in the "user_created" range.
	// We only get the needed amount.
	DynamicPolicyID = -1
	// Default scope
	DefaultScope = "user_created"
)

Variables

View Source
var AllowedMetadata = []string{
	"services",
	"container_ids",
	"image_ids",
}

Functions

func DataSourceEULA added in v0.1.1

func DataSourceEULA() *schema.Resource

func DataSourceGroupMetadata added in v0.4.3

func DataSourceGroupMetadata() *schema.Resource

func DataSourcePolicyIDs

func DataSourcePolicyIDs() *schema.Resource

func DataSourceRegistry

func DataSourceRegistry() *schema.Resource

func DataSourceRegistryNames

func DataSourceRegistryNames() *schema.Resource

func GetDynamicPolicyIndexes

func GetDynamicPolicyIndexes(policies *[]goneuvector.PolicyRule) []int

Return the indexes of the dynamic policies

func GetPolicyRuleMap

func GetPolicyRuleMap(p *goneuvector.PolicyRule) *map[string]any

func GetPolicyRulesSet

func GetPolicyRulesSet(policies *[]goneuvector.PolicyRule) []map[string]any

func ResourceAdmissionRule

func ResourceAdmissionRule() *schema.Resource

func ResourceEULA added in v0.1.1

func ResourceEULA() *schema.Resource

func ResourceGroup added in v0.1.1

func ResourceGroup() *schema.Resource

func ResourcePolicy

func ResourcePolicy() *schema.Resource

func ResourcePromote

func ResourcePromote() *schema.Resource

func ResourceRegistry

func ResourceRegistry() *schema.Resource

func ResourceService added in v0.2.1

func ResourceService() *schema.Resource

func ResourceServiceConfig added in v0.3.1

func ResourceServiceConfig() *schema.Resource

func ResourceUser added in v0.3.1

func ResourceUser() *schema.Resource

func ResourceUserRole added in v0.3.1

func ResourceUserRole() *schema.Resource

Types

type ScopeChanges

type ScopeChanges struct {
	IsFed bool
	// contains filtered or unexported fields
}

Stores the changing parameters between the differents scopes

func GetScopeChanges

func GetScopeChanges(scopeName string) *ScopeChanges

Jump to

Keyboard shortcuts

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