Documentation ¶
Index ¶
- Constants
- Variables
- func CaseInsensitiveDiff() planmodifier.String
- func ErrAllowedToChangeOnlyManualGroups(group *model.Group) error
- func NewConnectorResource() resource.Resource
- func NewConnectorTokensResource() resource.Resource
- func NewDNSFilteringProfile() resource.Resource
- func NewGroupResource() resource.Resource
- func NewRemoteNetworkResource() resource.Resource
- func NewResourceResource() resource.Resource
- func NewServiceAccountResource() resource.Resource
- func NewServiceKeyResource() resource.Resource
- func NewUserResource() resource.Resource
- func PortsDiff() planmodifier.Set
- func RequiresMapReplace(description string) *requiresMapReplace
- func UseDefaultPolicyForUnknownModifier() planmodifier.String
- func UseNullIntWhenValueOmitted() planmodifier.Int64
- func UseNullPolicyForGroupAccessWhenValueOmitted() planmodifier.String
Constants ¶
View Source
const ( TwingateRemoteNetwork = "twingate_remote_network" TwingateConnector = "twingate_connector" TwingateConnectorTokens = "twingate_connector_tokens" TwingateGroup = "twingate_group" TwingateResource = "twingate_resource" TwingateServiceAccount = "twingate_service_account" TwingateServiceAccountKey = "twingate_service_account_key" TwingateUser = "twingate_user" TwingateDNSFilteringProfile = "twingate_dns_filtering_profile" )
View Source
const (
DefaultSecurityPolicyName = "Default Policy"
)
Variables ¶
View Source
var ( DefaultSecurityPolicyID string //nolint:gochecknoglobals ErrPortsWithPolicyAllowAll = errors.New(model.PolicyAllowAll + " policy does not allow specifying ports.") ErrPortsWithPolicyDenyAll = errors.New(model.PolicyDenyAll + " policy does not allow specifying ports.") ErrPolicyRestrictedWithoutPorts = errors.New(model.PolicyRestricted + " policy requires specifying ports.") ErrInvalidAttributeCombination = errors.New("invalid attribute combination") ErrWildcardAddressWithEnabledShortcut = errors.New("Resources with a CIDR range or wildcard can't have the browser shortcut enabled.") ErrDefaultPolicyNotSet = errors.New("default policy not set") ErrWrongGlobalID = errors.New("Unable to parse global ID") )
View Source
var ErrAllowedToChangeOnlyManualUsers = fmt.Errorf("only users of type %s may be modified", model.UserTypeManual)
View Source
var ErrInvalidExpirationTime = errors.New("Invalid key expiration time. A value from 0-365 is required.")
View Source
var ErrNotAllowChangeRemoteNetworkID = errors.New("connectors cannot be moved between Remote Networks: you must either create a new Connector or destroy and recreate the existing one")
Functions ¶
func CaseInsensitiveDiff ¶
func CaseInsensitiveDiff() planmodifier.String
func NewConnectorResource ¶
func NewDNSFilteringProfile ¶ added in v3.0.11
func NewGroupResource ¶
func NewResourceResource ¶
func NewServiceKeyResource ¶
func NewUserResource ¶
func PortsDiff ¶
func PortsDiff() planmodifier.Set
func RequiresMapReplace ¶
func RequiresMapReplace(description string) *requiresMapReplace
func UseDefaultPolicyForUnknownModifier ¶
func UseDefaultPolicyForUnknownModifier() planmodifier.String
func UseNullIntWhenValueOmitted ¶ added in v3.0.2
func UseNullIntWhenValueOmitted() planmodifier.Int64
func UseNullPolicyForGroupAccessWhenValueOmitted ¶
func UseNullPolicyForGroupAccessWhenValueOmitted() planmodifier.String
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.