Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Device ¶
type Device struct {
Base
OwnerID uuid.UUID `gorm:"index"`
VpcID uuid.UUID `gorm:"index"`
OrganizationID uuid.UUID `gorm:"index"`
PublicKey string
AllowedIPs pq.StringArray `gorm:"type:text[]" `
IPv4TunnelIPs []TunnelIP `gorm:"type:JSONB; serializer:json"`
IPv6TunnelIPs []TunnelIP `gorm:"type:JSONB; serializer:json"`
AdvertiseCidrs pq.StringArray `gorm:"type:text[]" `
Relay bool
EndpointLocalAddressIPv4 string
SymmetricNat bool
Hostname string `gorm:"index"`
Os string
Endpoints []Endpoint `gorm:"type:JSONB; serializer:json"`
Revision uint64 `gorm:"type:bigserial;index:"`
SecurityGroupId uuid.UUID
Online bool
OnlineAt *time.Time
RegKeyID uuid.UUID
BearerToken string `gorm:"index"`
}
type DeviceMetadata ¶
type Invitation ¶
type Organization ¶
type SecurityGroup ¶
type SecurityGroup struct {
Base
GroupName string
GroupDescription string
OrganizationId uuid.UUID `gorm:"index"`
InboundRules []SecurityRule `gorm:"type:JSONB; serializer:json"`
OutboundRules []SecurityRule `gorm:"type:JSONB; serializer:json"`
Revision uint64 `gorm:"type:bigserial;index:"`
}
type SecurityRule ¶
type User ¶
type User struct {
Base
Organizations []*Organization `gorm:"many2many:user_organizations" `
UserName string `gorm:"index"`
IdpID string
Invitations []*Invitation
SecurityGroupId uuid.UUID
}
Click to show internal directories.
Click to hide internal directories.