Documentation
¶
Index ¶
- Constants
- type AuthUser
- type Configuration
- type Environment
- type EnvironmentAndResources
- func (m *EnvironmentAndResources) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *EnvironmentAndResources) MarshalBinary() ([]byte, error)
- func (m *EnvironmentAndResources) UnmarshalBinary(b []byte) error
- func (m *EnvironmentAndResources) Validate(formats strfmt.Registry) error
- type Environments
- type ErrorMessage
- type Frontend
- type Frontends
- type Metrics
- type MetricsSample
- type Overview
- type Principal
- type Share
- type ShareRequest
- type ShareResponse
- type Shares
- type SparkData
- type SparkDataSample
- type Version
Constants ¶
const ( string = "proxy" ShareRequestBackendModeWeb string = "web" ShareRequestBackendModeTCPTunnel string = "tcpTunnel" ShareRequestBackendModeUDPTunnel string = "udpTunnel" ShareRequestBackendModeCaddy string = "caddy" ShareRequestBackendModeDrive string = "drive" ShareRequestBackendModeSocks string = "socks" ShareRequestBackendModeVpn string = "vpn" )ShareRequestBackendModeProxy
const ( string = "github" ShareRequestOauthProviderGoogle string = "google" )ShareRequestOauthProviderGithub
const ( string = "open" ShareRequestPermissionModeClosed string = "closed" )ShareRequestPermissionModeOpen
const ( string = "public" ShareRequestShareModePrivate string = "private" )ShareRequestShareModePublic
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthUser ¶
type AuthUser struct { // password Password string `json:"password,omitempty"` // username Username string `json:"username,omitempty"` }
AuthUser auth user
swagger:model authUser
func (*AuthUser) ContextValidate ¶
ContextValidate validates this auth user based on context it is used
func (*AuthUser) MarshalBinary ¶
MarshalBinary interface implementation
func (*AuthUser) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Configuration ¶
type Configuration struct { // invite token contact InviteTokenContact string `json:"inviteTokenContact,omitempty"` // invites open InvitesOpen bool `json:"invitesOpen,omitempty"` // requires invite token RequiresInviteToken bool `json:"requiresInviteToken,omitempty"` // tou link TouLink string `json:"touLink,omitempty"` // version Version string `json:"version,omitempty"` }
Configuration configuration
swagger:model configuration
func (*Configuration) ContextValidate ¶
ContextValidate validates this configuration based on context it is used
func (*Configuration) MarshalBinary ¶
func (m *Configuration) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*Configuration) UnmarshalBinary ¶
func (m *Configuration) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Environment ¶
type Environment struct { // activity Activity SparkData `json:"activity,omitempty"` // address Address string `json:"address,omitempty"` // created at CreatedAt int64 `json:"createdAt,omitempty"` // description Description string `json:"description,omitempty"` // host Host string `json:"host,omitempty"` // limited Limited bool `json:"limited,omitempty"` // updated at UpdatedAt int64 `json:"updatedAt,omitempty"` // z Id ZID string `json:"zId,omitempty"` }
Environment environment
swagger:model environment
func (*Environment) ContextValidate ¶
ContextValidate validate this environment based on the context it is used
func (*Environment) MarshalBinary ¶
func (m *Environment) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*Environment) UnmarshalBinary ¶
func (m *Environment) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type EnvironmentAndResources ¶ added in v0.4.0
type EnvironmentAndResources struct { // environment Environment *Environment `json:"environment,omitempty"` // frontends Frontends Frontends `json:"frontends,omitempty"` Shares Shares `json:"shares,omitempty"` }
EnvironmentAndResources environment and resources
swagger:model environmentAndResources
func (*EnvironmentAndResources) ContextValidate ¶ added in v0.4.0
func (m *EnvironmentAndResources) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this environment and resources based on the context it is used
func (*EnvironmentAndResources) MarshalBinary ¶ added in v0.4.0
func (m *EnvironmentAndResources) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*EnvironmentAndResources) UnmarshalBinary ¶ added in v0.4.0
func (m *EnvironmentAndResources) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Environments ¶
type Environments []*Environment
Environments environments
swagger:model environments
func (Environments) ContextValidate ¶
ContextValidate validate this environments based on the context it is used
type ErrorMessage ¶
type ErrorMessage string
ErrorMessage error message
swagger:model errorMessage
func (ErrorMessage) ContextValidate ¶
ContextValidate validates this error message based on context it is used
type Frontend ¶ added in v0.4.0
type Frontend struct { // backend mode BackendMode string `json:"backendMode,omitempty"` // bind address BindAddress string `json:"bindAddress,omitempty"` // created at CreatedAt int64 `json:"createdAt,omitempty"` // description Description string `json:"description,omitempty"` // frontend token FrontendToken string `json:"frontendToken,omitempty"` // id ID int64 `json:"id,omitempty"` ShareToken string `json:"shareToken,omitempty"` // updated at UpdatedAt int64 `json:"updatedAt,omitempty"` // z Id ZID string `json:"zId,omitempty"` }
Frontend frontend
swagger:model frontend
func (*Frontend) ContextValidate ¶ added in v0.4.0
ContextValidate validates this frontend based on context it is used
func (*Frontend) MarshalBinary ¶ added in v0.4.0
MarshalBinary interface implementation
func (*Frontend) UnmarshalBinary ¶ added in v0.4.0
UnmarshalBinary interface implementation
type Frontends ¶ added in v0.4.0
type Frontends []*Frontend
Frontends frontends
swagger:model frontends
func (Frontends) ContextValidate ¶ added in v0.4.0
ContextValidate validate this frontends based on the context it is used
type Metrics ¶ added in v0.4.0
type Metrics struct { // id ID string `json:"id,omitempty"` // period Period float64 `json:"period,omitempty"` // samples Samples []*MetricsSample `json:"samples"` // scope Scope string `json:"scope,omitempty"` }
Metrics metrics
swagger:model metrics
func (*Metrics) ContextValidate ¶ added in v0.4.0
ContextValidate validate this metrics based on the context it is used
func (*Metrics) MarshalBinary ¶ added in v0.4.0
MarshalBinary interface implementation
func (*Metrics) UnmarshalBinary ¶ added in v0.4.0
UnmarshalBinary interface implementation
type MetricsSample ¶ added in v0.4.0
type MetricsSample struct { // rx Rx float64 `json:"rx,omitempty"` // timestamp Timestamp float64 `json:"timestamp,omitempty"` // tx Tx float64 `json:"tx,omitempty"` }
MetricsSample metrics sample
swagger:model metricsSample
func (*MetricsSample) ContextValidate ¶ added in v0.4.0
ContextValidate validates this metrics sample based on context it is used
func (*MetricsSample) MarshalBinary ¶ added in v0.4.0
func (m *MetricsSample) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*MetricsSample) UnmarshalBinary ¶ added in v0.4.0
func (m *MetricsSample) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Overview ¶ added in v0.4.0
type Overview struct { // account limited AccountLimited bool `json:"accountLimited,omitempty"` // environments Environments []*EnvironmentAndResources `json:"environments"` }
Overview overview
swagger:model overview
func (*Overview) ContextValidate ¶ added in v0.4.0
ContextValidate validate this overview based on the context it is used
func (*Overview) MarshalBinary ¶ added in v0.4.0
MarshalBinary interface implementation
func (*Overview) UnmarshalBinary ¶ added in v0.4.0
UnmarshalBinary interface implementation
type Principal ¶
type Principal struct { // admin Admin bool `json:"admin,omitempty"` // email Email string `json:"email,omitempty"` // id ID int64 `json:"id,omitempty"` // limitless Limitless bool `json:"limitless,omitempty"` // token Token string `json:"token,omitempty"` }
Principal principal
swagger:model principal
func (*Principal) ContextValidate ¶
ContextValidate validates this principal based on context it is used
func (*Principal) MarshalBinary ¶
MarshalBinary interface implementation
func (*Principal) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Share ¶
type Share struct { SparkData `json:"activity,omitempty"` BackendMode string `json:"backendMode,omitempty"` BackendProxyEndpoint string `json:"backendProxyEndpoint,omitempty"` CreatedAt int64 `json:"createdAt,omitempty"` FrontendEndpoint string `json:"frontendEndpoint,omitempty"` FrontendSelection string `json:"frontendSelection,omitempty"` Limited bool `json:"limited,omitempty"` Reserved bool `json:"reserved,omitempty"` ShareMode string `json:"shareMode,omitempty"` ShareToken string `json:"shareToken,omitempty"` UpdatedAt int64 `json:"updatedAt,omitempty"` ZID string `json:"zId,omitempty"` }Activity
Share share
swagger:model share
func (*Share) ContextValidate ¶
ContextValidate validate this share based on the context it is used
func (*Share) MarshalBinary ¶
MarshalBinary interface implementation
func (*Share) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type ShareRequest ¶
type ShareRequest struct { string `json:"accessGrants"` AuthScheme string `json:"authScheme,omitempty"` AuthUsers []*AuthUser `json:"authUsers"` // Enum: [proxy web tcpTunnel udpTunnel caddy drive socks vpn] BackendMode string `json:"backendMode,omitempty"` BackendProxyEndpoint string `json:"backendProxyEndpoint,omitempty"` EnvZID string `json:"envZId,omitempty"` FrontendSelection []string `json:"frontendSelection"` OauthAuthorizationCheckInterval string `json:"oauthAuthorizationCheckInterval,omitempty"` OauthEmailDomains []string `json:"oauthEmailDomains"` // Enum: [github google] OauthProvider string `json:"oauthProvider,omitempty"` // Enum: [open closed] PermissionMode string `json:"permissionMode,omitempty"` Reserved bool `json:"reserved,omitempty"` // Enum: [public private] ShareMode string `json:"shareMode,omitempty"` UniqueName string `json:"uniqueName,omitempty"` }AccessGrants []
ShareRequest share request
swagger:model shareRequest
func (*ShareRequest) ContextValidate ¶
ContextValidate validate this share request based on the context it is used
func (*ShareRequest) MarshalBinary ¶
func (m *ShareRequest) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ShareRequest) UnmarshalBinary ¶
func (m *ShareRequest) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ShareResponse ¶
type ShareResponse struct { string `json:"frontendProxyEndpoints"` ShareToken string `json:"shareToken,omitempty"` }FrontendProxyEndpoints []
ShareResponse share response
swagger:model shareResponse
func (*ShareResponse) ContextValidate ¶
ContextValidate validates this share response based on context it is used
func (*ShareResponse) MarshalBinary ¶
func (m *ShareResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ShareResponse) UnmarshalBinary ¶
func (m *ShareResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Shares ¶
type Shares []*Share
Shares shares
swagger:model shares
func (Shares) ContextValidate ¶
ContextValidate validate this shares based on the context it is used
type SparkData ¶ added in v0.4.0
type SparkData []*SparkDataSample
SparkData spark data
swagger:model sparkData
func (SparkData) ContextValidate ¶ added in v0.4.0
ContextValidate validate this spark data based on the context it is used
type SparkDataSample ¶ added in v0.4.0
type SparkDataSample struct { // rx Rx float64 `json:"rx,omitempty"` // tx Tx float64 `json:"tx,omitempty"` }
SparkDataSample spark data sample
swagger:model sparkDataSample
func (*SparkDataSample) ContextValidate ¶ added in v0.4.0
ContextValidate validates this spark data sample based on context it is used
func (*SparkDataSample) MarshalBinary ¶ added in v0.4.0
func (m *SparkDataSample) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*SparkDataSample) UnmarshalBinary ¶ added in v0.4.0
func (m *SparkDataSample) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Version ¶
type Version string
Version version
swagger:model version
func (Version) ContextValidate ¶
ContextValidate validates this version based on context it is used