zpa

package
v3.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: MIT Imports: 66 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AllowedPolicyTypes = map[string]struct{}{
	"ACCESS_POLICY":                        {},
	"GLOBAL_POLICY":                        {},
	"TIMEOUT_POLICY":                       {},
	"REAUTH_POLICY":                        {},
	"CLIENT_FORWARDING_POLICY":             {},
	"BYPASS_POLICY":                        {},
	"ISOLATION_POLICY":                     {},
	"INSPECTION_POLICY":                    {},
	"CREDENTIAL_POLICY":                    {},
	"CAPABILITIES_POLICY":                  {},
	"CLIENTLESS_SESSION_PROTECTION_POLICY": {},
}
View Source
var ProviderVersion = "3.2.0"

ProviderVersion is set at build-time in the release process

Functions

func CommonPolicySchema

func CommonPolicySchema() map[string]*schema.Schema

func DiffSuppressFuncCoordinate

func DiffSuppressFuncCoordinate(_, old, new string, _ *schema.ResourceData) bool

func ExpandPolicyConditionsV2 added in v3.2.0

func ExpandPolicyRuleResourceConditions

func ExpandPolicyRuleResourceConditions(d map[string]interface{}) ([]lssconfigcontroller.PolicyRuleResourceConditions, error)

func GetBool added in v3.2.0

func GetBool(v interface{}) bool

Helper to safely extract bool values from map

func GetGlobalPolicySetByPolicyType

func GetGlobalPolicySetByPolicyType(policysetcontroller policysetcontroller.Service, policyType string) (*policysetcontroller.PolicySet, error)

func GetPolicyConditionsSchema

func GetPolicyConditionsSchema(objectTypes []string) *schema.Schema

func GetString

func GetString(v interface{}) string

func ListToStringSlice

func ListToStringSlice(v []interface{}) []string

func MergeSchema

func MergeSchema(schemas ...map[string]*schema.Schema) map[string]*schema.Schema

func PRAPortOverlap

func PRAPortOverlap(s1, s2 []string) (bool, []string, []string)

func SetToStringList

func SetToStringList(d *schema.ResourceData, key string) []string

func SetToStringSlice

func SetToStringSlice(d *schema.Set) []string

func ValidateConditions

func ValidateConditions(conditions []policysetcontroller.Conditions, zClient *Client, microtenantID string) error

func ValidateLatitude

func ValidateLatitude(val interface{}, _ string) (warns []string, errs []error)

func ValidateLongitude

func ValidateLongitude(val interface{}, _ string) (warns []string, errs []error)

func ValidatePolicyRuleConditions added in v3.2.0

func ValidatePolicyRuleConditions(d *schema.ResourceData) error

ValidatePolicyRuleConditions ensures that the necessary values are provided for specific object types.

func ZPAProvider

func ZPAProvider() *schema.Provider

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

type Config

type Config struct {
	// ZPA Client ID for API Client
	ClientID string

	// ZPA Client Secret for API Client
	ClientSecret string

	// ZPA Customer ID for API Client
	CustomerID string

	// ZPA Base URL for API Client
	BaseURL string

	// UserAgent for API Client
	UserAgent string
}

func (*Config) Client

func (c *Config) Client() (*Client, error)

type Getter

type Getter func(id string) error

func (Getter) Get

func (g Getter) Get(id string) error

type RulesOrders

type RulesOrders struct {
	PolicyType string
	Orders     map[string]int
}

Source Files

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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