resource

package
v2.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: MPL-2.0 Imports: 31 Imported by: 0

Documentation

Index

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"
)
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")
)
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 EmptySetDiff

func EmptySetDiff() planmodifier.Set

func ErrAllowedToChangeOnlyManualGroups

func ErrAllowedToChangeOnlyManualGroups(group *model.Group) error

func NewConnectorResource

func NewConnectorResource() resource.Resource

func NewConnectorTokensResource

func NewConnectorTokensResource() resource.Resource

func NewGroupResource

func NewGroupResource() resource.Resource

func NewRemoteNetworkResource

func NewRemoteNetworkResource() resource.Resource

func NewResourceResource

func NewResourceResource() resource.Resource

func NewServiceAccountResource

func NewServiceAccountResource() resource.Resource

func NewServiceKeyResource

func NewServiceKeyResource() resource.Resource

func NewUserResource

func NewUserResource() resource.Resource

func PortsDiff

func PortsDiff() planmodifier.Set

func RequiresMapReplace

func RequiresMapReplace(description string) *requiresMapReplace

func UseDefaultPolicyForUnknownModifier

func UseDefaultPolicyForUnknownModifier() planmodifier.String

Types

This section is empty.

Jump to

Keyboard shortcuts

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