illumiocore

package
v1.1.6 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2023 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HEX_COLOR_CODE_REGEX string = "^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$"
	UUID_V4_REGEX               = "[a-f0-9]{8}-?[a-f0-9]{4}-?4[a-f0-9]{3}-?[89ab][a-f0-9]{3}-?[a-f0-9]{12}"
	ORGS_PREFIX                 = "^/orgs/[1-9][0-9]*/"
	SEC_POLICY_PREFIX           = "sec_policy/(draft|active|[0-9]*)/"
	EXACT_MATCH                 = "exact"
	PARTIAL_MATCH               = "partial"
	PORT_MAX             int    = 65535
)
View Source
const (
	LABEL_KEY_LENGTH_MAX = 64
)

Variables

View Source
var (
	ValidWorkloadInterfaceLinkStateValues = []string{"up", "down", "unknown"}
	ValidWorkloadEnforcementModeValues    = []string{"idle", "visibility_only", "full", "selective"}
)

Functions

func Provider

func Provider() *schema.Provider

Provider - Illumio Core Provider

func PtrTo added in v1.1.0

func PtrTo[T any](o T) *T

PtrTo returns a pointer to a given value. Useful for wrapping value, ok expression results

Types

type Config

type Config struct {
	IllumioClient *client.V2
	HrefFilename  string
}

Config Configuration for provider

func (Config) ProvisionAResource

func (c Config) ProvisionAResource(resourceType, href string) error

ProvisionAResource - Provision a single resource

func (Config) StoreHref

func (c Config) StoreHref(resourceType, href string)

StoreHref - Writes href to hrefs.csv file for provisioning of resource

Source Files

Jump to

Keyboard shortcuts

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