Documentation ¶
Index ¶
- Constants
- Variables
- func ErrInvalidPortRange(portRange string, err error) error
- type AccessGroup
- type Connector
- type ConnectorTokens
- type Group
- type GroupsFilter
- type PortNotInRangeError
- type PortRange
- type PortRangeNotRisingSequenceError
- type Protocol
- type Protocols
- type RemoteNetwork
- type Resource
- type SecurityPolicy
- type ServiceAccount
- type ServiceKey
- type User
- type UserUpdate
Constants ¶
View Source
const ( GroupTypeManual = "MANUAL" GroupTypeSynced = "SYNCED" GroupTypeSystem = "SYSTEM" )
View Source
const ( LocationAWS = "AWS" LocationAzure = "AZURE" LocationGoogleCloud = "GOOGLE_CLOUD" LocationOnPremise = "ON_PREMISE" LocationOther = "OTHER" )
View Source
const ( PolicyRestricted = "RESTRICTED" PolicyAllowAll = "ALLOW_ALL" PolicyDenyAll = "DENY_ALL" )
View Source
const ( StatusActive = "ACTIVE" StatusRevoked = "REVOKED" )
View Source
const ( UserRoleAdmin = "ADMIN" UserRoleDevops = "DEVOPS" UserRoleSupport = "SUPPORT" UserRoleMember = "MEMBER" UserStateActive = "ACTIVE" UserStatePending = "PENDING" UserStateDisabled = "DISABLED" UserTypeManual = "MANUAL" UserTypeSynced = "SYNCED" )
Variables ¶
View Source
var ( UserRoles = []string{UserRoleAdmin, UserRoleDevops, UserRoleSupport, UserRoleMember} UserTypes = []string{UserTypeManual, UserTypeSynced} )
View Source
var ErrInvalidPortRangeLen = errors.New("port range expects 2 values")
View Source
var Locations = []string{LocationAWS, LocationAzure, LocationGoogleCloud, LocationOnPremise, LocationOther} //nolint
View Source
var Policies = []string{PolicyRestricted, PolicyAllowAll, PolicyDenyAll}
Functions ¶
func ErrInvalidPortRange ¶
Types ¶
type AccessGroup ¶
func (AccessGroup) Equals ¶ added in v3.0.2
func (g AccessGroup) Equals(another AccessGroup) bool
type Connector ¶
func (Connector) ToTerraform ¶
func (c Connector) ToTerraform() interface{}
type ConnectorTokens ¶
type Group ¶
type Group struct { ID string Name string Type string IsActive bool Users []string IsAuthoritative bool SecurityPolicyID string }
func (Group) ToTerraform ¶
func (g Group) ToTerraform() interface{}
type GroupsFilter ¶
func (*GroupsFilter) GetName ¶
func (f *GroupsFilter) GetName() string
func (*GroupsFilter) HasName ¶
func (f *GroupsFilter) HasName() bool
type PortNotInRangeError ¶
type PortNotInRangeError struct {
Port int
}
func NewPortNotInRangeError ¶
func NewPortNotInRangeError(port int) *PortNotInRangeError
func (*PortNotInRangeError) Error ¶
func (e *PortNotInRangeError) Error() string
type PortRange ¶
func NewPortRange ¶
type PortRangeNotRisingSequenceError ¶
func NewPortRangeNotRisingSequenceError ¶
func NewPortRangeNotRisingSequenceError(start, end int) *PortRangeNotRisingSequenceError
func (*PortRangeNotRisingSequenceError) Error ¶
func (e *PortRangeNotRisingSequenceError) Error() string
type Protocol ¶
func DefaultProtocol ¶
func DefaultProtocol() *Protocol
func NewProtocol ¶
func (*Protocol) PortsToString ¶
func (*Protocol) ToTerraform ¶
func (p *Protocol) ToTerraform() []interface{}
type Protocols ¶
func DefaultProtocols ¶
func DefaultProtocols() *Protocols
func (*Protocols) ToTerraform ¶
func (p *Protocols) ToTerraform() []interface{}
type RemoteNetwork ¶
func (RemoteNetwork) GetID ¶
func (n RemoteNetwork) GetID() string
func (RemoteNetwork) GetName ¶
func (n RemoteNetwork) GetName() string
func (RemoteNetwork) ToTerraform ¶
func (n RemoteNetwork) ToTerraform() interface{}
type Resource ¶
type Resource struct { ID string RemoteNetworkID string Address string Name string Protocols *Protocols IsActive bool GroupsAccess []AccessGroup ServiceAccounts []string IsAuthoritative bool IsVisible *bool IsBrowserShortcutEnabled *bool Alias *string SecurityPolicyID *string }
func (Resource) AccessToTerraform ¶
func (r Resource) AccessToTerraform() []interface{}
func (Resource) ToTerraform ¶
func (r Resource) ToTerraform() interface{}
type SecurityPolicy ¶
func (SecurityPolicy) ToTerraform ¶
func (s SecurityPolicy) ToTerraform() interface{}
type ServiceAccount ¶
func (ServiceAccount) GetID ¶
func (s ServiceAccount) GetID() string
func (ServiceAccount) GetName ¶
func (s ServiceAccount) GetName() string
func (ServiceAccount) ToTerraform ¶
func (s ServiceAccount) ToTerraform() interface{}
type ServiceKey ¶
type ServiceKey struct { ID string Name string Status string Service string ExpirationTime int Token string }
func (ServiceKey) GetID ¶
func (s ServiceKey) GetID() string
func (ServiceKey) GetName ¶
func (s ServiceKey) GetName() string
func (ServiceKey) IsActive ¶
func (s ServiceKey) IsActive() bool
Click to show internal directories.
Click to hide internal directories.