Documentation
¶
Index ¶
- type Account
- type AddSocketToPolicyRequest
- type ClientResource
- type ClientResources
- type Condition
- type ConditionWhat
- type ConditionWhen
- type ConditionWhere
- type ConditionWho
- type ConnectorData
- type CreatePolicyRequest
- type LoginForm
- type LoginRefresh
- type LoginRequest
- type LoginResponse
- type MfaForm
- type Organization
- type Policy
- type PolicyActionUpdateRequest
- type PolicyData
- type RegisterForm
- type SessionTokenForm
- type Socket
- type SshCsr
- type SwitchOrgRequest
- type SwitchOrgResponse
- type TokenForm
- type Tunnel
- type UpdatePolicyRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddSocketToPolicyRequest ¶
type AddSocketToPolicyRequest struct {
Actions []PolicyActionUpdateRequest `json:"actions" binding:"required"`
}
type ClientResource ¶
type ClientResource struct { PrivateSocket bool `json:"private_socket,omitempty"` IPAddress string `json:"ip_address,omitempty"` SocketType string `json:"socket_type,omitempty"` SocketName string `json:"socket_name,omitempty"` Description string `json:"description,omitempty"` SocketPorts []int `json:"socket_ports,omitempty"` Domains []string `json:"domains,omitempty"` }
func (ClientResource) DomainsToString ¶
func (c ClientResource) DomainsToString() string
func (ClientResource) FirstDomain ¶
func (c ClientResource) FirstDomain(defaultValue string) string
func (ClientResource) HasDomain ¶
func (c ClientResource) HasDomain(tryToFind string) bool
func (ClientResource) Hostname ¶
func (c ClientResource) Hostname() string
func (ClientResource) Instruction ¶
func (c ClientResource) Instruction() string
type ClientResources ¶
type ClientResources struct { RefreshHint int `json:"refresh_hint,omitempty"` Resources []ClientResource `json:"resources,omitempty"` DefaultIPAddresses []string `json:"ip_addresses,omitempty"` }
type Condition ¶
type Condition struct { Who ConditionWho `json:"who,omitempty" mapstructure:"who"` Where ConditionWhere `json:"where,omitempty" mapstructure:"where"` When ConditionWhen `json:"when,omitempty" mapstructure:"when"` }
type ConditionWhat ¶
type ConditionWhat struct{}
type ConditionWhen ¶
type ConditionWhen struct { After string `json:"after,omitempty" mapstructure:"after"` Before string `json:"before,omitempty" mapstructure:"before"` TimeOfDayAfter string `json:"time_of_day_after,omitempty" mapstructure:"time_of_day_after"` TimeOfDayBefore string `json:"time_of_day_before,omitempty" mapstructure:"time_of_day_before"` }
type ConditionWhere ¶
type ConditionWho ¶
type ConnectorData ¶
type ConnectorData struct { Name string Connector string Type string Port int TargetHostname string PolicyGroup string Ec2Tag string InstanceId string PluginName string }
func (*ConnectorData) Key ¶
func (c *ConnectorData) Key() string
func (*ConnectorData) Tags ¶
func (c *ConnectorData) Tags() map[string]string
type CreatePolicyRequest ¶
type CreatePolicyRequest struct { Name string `json:"name" binding:"required"` Description string `json:"description"` PolicyData PolicyData `json:"policy_data" binding:"required"` }
type LoginRefresh ¶
type LoginRefresh struct { }
type LoginRequest ¶
type LoginResponse ¶
type Organization ¶
type Policy ¶
type Policy struct { ID string `json:"id"` Name string `json:"name"` Description string `json:"description"` PolicyData PolicyData `json:"policy_data"` SocketIDs []string `json:"socket_ids"` }
type PolicyData ¶
type RegisterForm ¶
type SessionTokenForm ¶
type Socket ¶
type Socket struct { Tunnels []Tunnel `json:"tunnels,omitempty"` Username string `json:"user_name,omitempty"` SocketID string `json:"socket_id,omitempty"` SocketTcpPorts []int `json:"socket_tcp_ports,omitempty"` Dnsname string `json:"dnsname,omitempty"` Name string `json:"name,omitempty"` Description string `json:"description,omitempty"` SocketType string `json:"socket_type,omitempty"` ProtectedSocket bool `json:"protected_socket"` ProtectedUsername string `json:"protected_username"` ProtectedPassword string `json:"protected_password"` AllowedEmailAddresses []string `json:"cloud_authentication_email_allowed_addressses,omitempty"` AllowedEmailDomains []string `json:"cloud_authentication_email_allowed_domains,omitempty"` SSHCa string `json:"ssh_ca,omitempty"` UpstreamUsername string `json:"upstream_username,omitempty"` UpstreamPassword string `json:"upstream_password,omitempty"` UpstreamHttpHostname string `json:"upstream_http_hostname,omitempty"` UpstreamType string `json:"upstream_type,omitempty"` CloudAuthEnabled bool `json:"cloud_authentication_enabled,omitempty"` Tags map[string]string `json:"tags,omitempty"` CustomDomains []string `json:"custom_domains,omitempty"` PrivateSocket bool `json:"private_socket"` PolicyNames []string `json:"policy_names,omitempty"` Policies []Policy `json:"policies,omitempty"` TargetHostname string `json:"-"` TargetPort int `json:"-"` PolicyGroup string `json:"-"` Ec2Tag string `json:"-"` InstanceId string `json:"-"` PluginName string `json:"-"` ConnectorData *ConnectorData `json:"-"` }
func (*Socket) BuildConnectorData ¶
func (*Socket) BuildConnectorDataAndTags ¶
func (*Socket) BuildConnectorDataByTags ¶
func (s *Socket) BuildConnectorDataByTags()
func (*Socket) SanitizeName ¶
func (s *Socket) SanitizeName()
func (*Socket) SetupTypeAndUpstreamTypeByPortOrTags ¶
func (s *Socket) SetupTypeAndUpstreamTypeByPortOrTags()
type SwitchOrgRequest ¶
type SwitchOrgRequest struct {
OrgName string `json:"org_name"`
}
type SwitchOrgResponse ¶
type UpdatePolicyRequest ¶
type UpdatePolicyRequest struct { Name *string `json:"name"` Description *string `json:"description"` PolicyData *PolicyData `json:"policy_data" binding:"required"` }
Click to show internal directories.
Click to hide internal directories.