rest_model_zrok

package
v0.4.45 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// CreateFrontendRequestPermissionModeOpen captures enum value "open"
	CreateFrontendRequestPermissionModeOpen string = "open"

	// CreateFrontendRequestPermissionModeClosed captures enum value "closed"
	CreateFrontendRequestPermissionModeClosed string = "closed"
)
View Source
const (

	// ShareRequestBackendModeProxy captures enum value "proxy"
	ShareRequestBackendModeProxy string = "proxy"

	// ShareRequestBackendModeWeb captures enum value "web"
	ShareRequestBackendModeWeb string = "web"

	// ShareRequestBackendModeTCPTunnel captures enum value "tcpTunnel"
	ShareRequestBackendModeTCPTunnel string = "tcpTunnel"

	// ShareRequestBackendModeUDPTunnel captures enum value "udpTunnel"
	ShareRequestBackendModeUDPTunnel string = "udpTunnel"

	// ShareRequestBackendModeCaddy captures enum value "caddy"
	ShareRequestBackendModeCaddy string = "caddy"

	// ShareRequestBackendModeDrive captures enum value "drive"
	ShareRequestBackendModeDrive string = "drive"

	// ShareRequestBackendModeSocks captures enum value "socks"
	ShareRequestBackendModeSocks string = "socks"

	// ShareRequestBackendModeVpn captures enum value "vpn"
	ShareRequestBackendModeVpn string = "vpn"
)
View Source
const (

	// ShareRequestOauthProviderGithub captures enum value "github"
	ShareRequestOauthProviderGithub string = "github"

	// ShareRequestOauthProviderGoogle captures enum value "google"
	ShareRequestOauthProviderGoogle string = "google"
)
View Source
const (

	// ShareRequestPermissionModeOpen captures enum value "open"
	ShareRequestPermissionModeOpen string = "open"

	// ShareRequestPermissionModeClosed captures enum value "closed"
	ShareRequestPermissionModeClosed string = "closed"
)
View Source
const (

	// ShareRequestShareModePublic captures enum value "public"
	ShareRequestShareModePublic string = "public"

	// ShareRequestShareModePrivate captures enum value "private"
	ShareRequestShareModePrivate string = "private"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessRequest

type AccessRequest struct {

	// env z Id
	EnvZID string `json:"envZId,omitempty"`

	// shr token
	ShrToken string `json:"shrToken,omitempty"`
}

AccessRequest access request

swagger:model accessRequest

func (*AccessRequest) ContextValidate

func (m *AccessRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this access request based on context it is used

func (*AccessRequest) MarshalBinary

func (m *AccessRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AccessRequest) UnmarshalBinary

func (m *AccessRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AccessRequest) Validate

func (m *AccessRequest) Validate(formats strfmt.Registry) error

Validate validates this access request

type AccessResponse

type AccessResponse struct {

	// backend mode
	BackendMode string `json:"backendMode,omitempty"`

	// frontend token
	FrontendToken string `json:"frontendToken,omitempty"`
}

AccessResponse access response

swagger:model accessResponse

func (*AccessResponse) ContextValidate

func (m *AccessResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this access response based on context it is used

func (*AccessResponse) MarshalBinary

func (m *AccessResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AccessResponse) UnmarshalBinary

func (m *AccessResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AccessResponse) Validate

func (m *AccessResponse) Validate(formats strfmt.Registry) error

Validate validates this access response

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

func (m *AuthUser) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this auth user based on context it is used

func (*AuthUser) MarshalBinary

func (m *AuthUser) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AuthUser) UnmarshalBinary

func (m *AuthUser) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AuthUser) Validate

func (m *AuthUser) Validate(formats strfmt.Registry) error

Validate validates this auth user

type ChangePasswordRequest added in v0.4.25

type ChangePasswordRequest struct {

	// email
	Email string `json:"email,omitempty"`

	// new password
	NewPassword string `json:"newPassword,omitempty"`

	// old password
	OldPassword string `json:"oldPassword,omitempty"`
}

ChangePasswordRequest change password request

swagger:model changePasswordRequest

func (*ChangePasswordRequest) ContextValidate added in v0.4.25

func (m *ChangePasswordRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this change password request based on context it is used

func (*ChangePasswordRequest) MarshalBinary added in v0.4.25

func (m *ChangePasswordRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ChangePasswordRequest) UnmarshalBinary added in v0.4.25

func (m *ChangePasswordRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ChangePasswordRequest) Validate added in v0.4.25

func (m *ChangePasswordRequest) Validate(formats strfmt.Registry) error

Validate validates this change password request

type Configuration

type Configuration struct {

	// invite token contact
	InviteTokenContact string `json:"inviteTokenContact,omitempty"`

	// invites open
	InvitesOpen bool `json:"invitesOpen,omitempty"`

	// password requirements
	PasswordRequirements *PasswordRequirements `json:"passwordRequirements,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

func (m *Configuration) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this configuration based on the 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

func (*Configuration) Validate

func (m *Configuration) Validate(formats strfmt.Registry) error

Validate validates this configuration

type CreateFrontendRequest

type CreateFrontendRequest struct {

	// permission mode
	// Enum: [open closed]
	PermissionMode string `json:"permissionMode,omitempty"`

	// public name
	PublicName string `json:"public_name,omitempty"`

	// url template
	URLTemplate string `json:"url_template,omitempty"`

	// z Id
	ZID string `json:"zId,omitempty"`
}

CreateFrontendRequest create frontend request

swagger:model createFrontendRequest

func (*CreateFrontendRequest) ContextValidate

func (m *CreateFrontendRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this create frontend request based on context it is used

func (*CreateFrontendRequest) MarshalBinary

func (m *CreateFrontendRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreateFrontendRequest) UnmarshalBinary

func (m *CreateFrontendRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreateFrontendRequest) Validate

func (m *CreateFrontendRequest) Validate(formats strfmt.Registry) error

Validate validates this create frontend request

type CreateFrontendResponse

type CreateFrontendResponse struct {

	// token
	Token string `json:"token,omitempty"`
}

CreateFrontendResponse create frontend response

swagger:model createFrontendResponse

func (*CreateFrontendResponse) ContextValidate

func (m *CreateFrontendResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this create frontend response based on context it is used

func (*CreateFrontendResponse) MarshalBinary

func (m *CreateFrontendResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreateFrontendResponse) UnmarshalBinary

func (m *CreateFrontendResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreateFrontendResponse) Validate

func (m *CreateFrontendResponse) Validate(formats strfmt.Registry) error

Validate validates this create frontend response

type DeleteFrontendRequest

type DeleteFrontendRequest struct {

	// frontend token
	FrontendToken string `json:"frontendToken,omitempty"`
}

DeleteFrontendRequest delete frontend request

swagger:model deleteFrontendRequest

func (*DeleteFrontendRequest) ContextValidate

func (m *DeleteFrontendRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this delete frontend request based on context it is used

func (*DeleteFrontendRequest) MarshalBinary

func (m *DeleteFrontendRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DeleteFrontendRequest) UnmarshalBinary

func (m *DeleteFrontendRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DeleteFrontendRequest) Validate

func (m *DeleteFrontendRequest) Validate(formats strfmt.Registry) error

Validate validates this delete frontend request

type DisableRequest

type DisableRequest struct {

	// identity
	Identity string `json:"identity,omitempty"`
}

DisableRequest disable request

swagger:model disableRequest

func (*DisableRequest) ContextValidate

func (m *DisableRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this disable request based on context it is used

func (*DisableRequest) MarshalBinary

func (m *DisableRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DisableRequest) UnmarshalBinary

func (m *DisableRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DisableRequest) Validate

func (m *DisableRequest) Validate(formats strfmt.Registry) error

Validate validates this disable request

type EnableRequest

type EnableRequest struct {

	// description
	Description string `json:"description,omitempty"`

	// host
	Host string `json:"host,omitempty"`
}

EnableRequest enable request

swagger:model enableRequest

func (*EnableRequest) ContextValidate

func (m *EnableRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this enable request based on context it is used

func (*EnableRequest) MarshalBinary

func (m *EnableRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*EnableRequest) UnmarshalBinary

func (m *EnableRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*EnableRequest) Validate

func (m *EnableRequest) Validate(formats strfmt.Registry) error

Validate validates this enable request

type EnableResponse

type EnableResponse struct {

	// cfg
	Cfg string `json:"cfg,omitempty"`

	// identity
	Identity string `json:"identity,omitempty"`
}

EnableResponse enable response

swagger:model enableResponse

func (*EnableResponse) ContextValidate

func (m *EnableResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this enable response based on context it is used

func (*EnableResponse) MarshalBinary

func (m *EnableResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*EnableResponse) UnmarshalBinary

func (m *EnableResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*EnableResponse) Validate

func (m *EnableResponse) Validate(formats strfmt.Registry) error

Validate validates this enable response

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

func (m *Environment) ContextValidate(ctx context.Context, formats strfmt.Registry) error

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

func (*Environment) Validate

func (m *Environment) Validate(formats strfmt.Registry) error

Validate validates this environment

type EnvironmentAndResources added in v0.4.0

type EnvironmentAndResources struct {

	// environment
	Environment *Environment `json:"environment,omitempty"`

	// frontends
	Frontends Frontends `json:"frontends,omitempty"`

	// shares
	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

func (*EnvironmentAndResources) Validate added in v0.4.0

func (m *EnvironmentAndResources) Validate(formats strfmt.Registry) error

Validate validates this environment and resources

type EnvironmentShares

type EnvironmentShares struct {

	// environment
	Environment *Environment `json:"environment,omitempty"`

	// shares
	Shares Shares `json:"shares,omitempty"`
}

EnvironmentShares environment shares

swagger:model environmentShares

func (*EnvironmentShares) ContextValidate

func (m *EnvironmentShares) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this environment shares based on the context it is used

func (*EnvironmentShares) MarshalBinary

func (m *EnvironmentShares) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*EnvironmentShares) UnmarshalBinary

func (m *EnvironmentShares) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*EnvironmentShares) Validate

func (m *EnvironmentShares) Validate(formats strfmt.Registry) error

Validate validates this environment shares

type EnvironmentSharesList

type EnvironmentSharesList []*EnvironmentShares

EnvironmentSharesList environment shares list

swagger:model environmentSharesList

func (EnvironmentSharesList) ContextValidate

func (m EnvironmentSharesList) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this environment shares list based on the context it is used

func (EnvironmentSharesList) Validate

func (m EnvironmentSharesList) Validate(formats strfmt.Registry) error

Validate validates this environment shares list

type Environments

type Environments []*Environment

Environments environments

swagger:model environments

func (Environments) ContextValidate

func (m Environments) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this environments based on the context it is used

func (Environments) Validate

func (m Environments) Validate(formats strfmt.Registry) error

Validate validates this environments

type ErrorMessage

type ErrorMessage string

ErrorMessage error message

swagger:model errorMessage

func (ErrorMessage) ContextValidate

func (m ErrorMessage) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this error message based on context it is used

func (ErrorMessage) Validate

func (m ErrorMessage) Validate(formats strfmt.Registry) error

Validate validates this error message

type Frontend added in v0.4.0

type Frontend struct {

	// created at
	CreatedAt int64 `json:"createdAt,omitempty"`

	// id
	ID int64 `json:"id,omitempty"`

	// shr token
	ShrToken string `json:"shrToken,omitempty"`

	// token
	Token string `json:"token,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

func (m *Frontend) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this frontend based on context it is used

func (*Frontend) MarshalBinary added in v0.4.0

func (m *Frontend) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Frontend) UnmarshalBinary added in v0.4.0

func (m *Frontend) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Frontend) Validate added in v0.4.0

func (m *Frontend) Validate(formats strfmt.Registry) error

Validate validates this frontend

type Frontends added in v0.4.0

type Frontends []*Frontend

Frontends frontends

swagger:model frontends

func (Frontends) ContextValidate added in v0.4.0

func (m Frontends) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this frontends based on the context it is used

func (Frontends) Validate added in v0.4.0

func (m Frontends) Validate(formats strfmt.Registry) error

Validate validates this frontends

type InviteRequest

type InviteRequest struct {

	// email
	Email string `json:"email,omitempty"`

	// token
	Token string `json:"token,omitempty"`
}

InviteRequest invite request

swagger:model inviteRequest

func (*InviteRequest) ContextValidate

func (m *InviteRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this invite request based on context it is used

func (*InviteRequest) MarshalBinary

func (m *InviteRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*InviteRequest) UnmarshalBinary

func (m *InviteRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*InviteRequest) Validate

func (m *InviteRequest) Validate(formats strfmt.Registry) error

Validate validates this invite request

type InviteTokenGenerateRequest

type InviteTokenGenerateRequest struct {

	// tokens
	Tokens []string `json:"tokens"`
}

InviteTokenGenerateRequest invite token generate request

swagger:model inviteTokenGenerateRequest

func (*InviteTokenGenerateRequest) ContextValidate

func (m *InviteTokenGenerateRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this invite token generate request based on context it is used

func (*InviteTokenGenerateRequest) MarshalBinary

func (m *InviteTokenGenerateRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*InviteTokenGenerateRequest) UnmarshalBinary

func (m *InviteTokenGenerateRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*InviteTokenGenerateRequest) Validate

func (m *InviteTokenGenerateRequest) Validate(formats strfmt.Registry) error

Validate validates this invite token generate request

type LoginRequest

type LoginRequest struct {

	// email
	Email string `json:"email,omitempty"`

	// password
	Password string `json:"password,omitempty"`
}

LoginRequest login request

swagger:model loginRequest

func (*LoginRequest) ContextValidate

func (m *LoginRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this login request based on context it is used

func (*LoginRequest) MarshalBinary

func (m *LoginRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*LoginRequest) UnmarshalBinary

func (m *LoginRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*LoginRequest) Validate

func (m *LoginRequest) Validate(formats strfmt.Registry) error

Validate validates this login request

type LoginResponse

type LoginResponse string

LoginResponse login response

swagger:model loginResponse

func (LoginResponse) ContextValidate

func (m LoginResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this login response based on context it is used

func (LoginResponse) Validate

func (m LoginResponse) Validate(formats strfmt.Registry) error

Validate validates this login response

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

func (m *Metrics) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this metrics based on the context it is used

func (*Metrics) MarshalBinary added in v0.4.0

func (m *Metrics) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Metrics) UnmarshalBinary added in v0.4.0

func (m *Metrics) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Metrics) Validate added in v0.4.0

func (m *Metrics) Validate(formats strfmt.Registry) error

Validate validates this metrics

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

func (m *MetricsSample) ContextValidate(ctx context.Context, formats strfmt.Registry) error

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

func (*MetricsSample) Validate added in v0.4.0

func (m *MetricsSample) Validate(formats strfmt.Registry) error

Validate validates this metrics sample

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

func (m *Overview) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this overview based on the context it is used

func (*Overview) MarshalBinary added in v0.4.0

func (m *Overview) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Overview) UnmarshalBinary added in v0.4.0

func (m *Overview) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Overview) Validate added in v0.4.0

func (m *Overview) Validate(formats strfmt.Registry) error

Validate validates this overview

type PasswordRequirements added in v0.4.0

type PasswordRequirements struct {

	// length
	Length int64 `json:"length,omitempty"`

	// require capital
	RequireCapital bool `json:"requireCapital,omitempty"`

	// require numeric
	RequireNumeric bool `json:"requireNumeric,omitempty"`

	// require special
	RequireSpecial bool `json:"requireSpecial,omitempty"`

	// valid special characters
	ValidSpecialCharacters string `json:"validSpecialCharacters,omitempty"`
}

PasswordRequirements password requirements

swagger:model passwordRequirements

func (*PasswordRequirements) ContextValidate added in v0.4.0

func (m *PasswordRequirements) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this password requirements based on context it is used

func (*PasswordRequirements) MarshalBinary added in v0.4.0

func (m *PasswordRequirements) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PasswordRequirements) UnmarshalBinary added in v0.4.0

func (m *PasswordRequirements) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PasswordRequirements) Validate added in v0.4.0

func (m *PasswordRequirements) Validate(formats strfmt.Registry) error

Validate validates this password requirements

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

func (m *Principal) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this principal based on context it is used

func (*Principal) MarshalBinary

func (m *Principal) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Principal) UnmarshalBinary

func (m *Principal) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Principal) Validate

func (m *Principal) Validate(formats strfmt.Registry) error

Validate validates this principal

type PublicFrontend

type PublicFrontend struct {

	// created at
	CreatedAt int64 `json:"createdAt,omitempty"`

	// public name
	PublicName string `json:"publicName,omitempty"`

	// token
	Token string `json:"token,omitempty"`

	// updated at
	UpdatedAt int64 `json:"updatedAt,omitempty"`

	// url template
	URLTemplate string `json:"urlTemplate,omitempty"`

	// z Id
	ZID string `json:"zId,omitempty"`
}

PublicFrontend public frontend

swagger:model publicFrontend

func (*PublicFrontend) ContextValidate

func (m *PublicFrontend) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this public frontend based on context it is used

func (*PublicFrontend) MarshalBinary

func (m *PublicFrontend) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PublicFrontend) UnmarshalBinary

func (m *PublicFrontend) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PublicFrontend) Validate

func (m *PublicFrontend) Validate(formats strfmt.Registry) error

Validate validates this public frontend

type PublicFrontendList

type PublicFrontendList []*PublicFrontend

PublicFrontendList public frontend list

swagger:model publicFrontendList

func (PublicFrontendList) ContextValidate

func (m PublicFrontendList) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this public frontend list based on the context it is used

func (PublicFrontendList) Validate

func (m PublicFrontendList) Validate(formats strfmt.Registry) error

Validate validates this public frontend list

type RegisterRequest

type RegisterRequest struct {

	// password
	Password string `json:"password,omitempty"`

	// token
	Token string `json:"token,omitempty"`
}

RegisterRequest register request

swagger:model registerRequest

func (*RegisterRequest) ContextValidate

func (m *RegisterRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this register request based on context it is used

func (*RegisterRequest) MarshalBinary

func (m *RegisterRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RegisterRequest) UnmarshalBinary

func (m *RegisterRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RegisterRequest) Validate

func (m *RegisterRequest) Validate(formats strfmt.Registry) error

Validate validates this register request

type RegisterResponse

type RegisterResponse struct {

	// token
	Token string `json:"token,omitempty"`
}

RegisterResponse register response

swagger:model registerResponse

func (*RegisterResponse) ContextValidate

func (m *RegisterResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this register response based on context it is used

func (*RegisterResponse) MarshalBinary

func (m *RegisterResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RegisterResponse) UnmarshalBinary

func (m *RegisterResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RegisterResponse) Validate

func (m *RegisterResponse) Validate(formats strfmt.Registry) error

Validate validates this register response

type ResetPasswordRequest

type ResetPasswordRequest struct {

	// password
	Password string `json:"password,omitempty"`

	// token
	Token string `json:"token,omitempty"`
}

ResetPasswordRequest reset password request

swagger:model resetPasswordRequest

func (*ResetPasswordRequest) ContextValidate

func (m *ResetPasswordRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this reset password request based on context it is used

func (*ResetPasswordRequest) MarshalBinary

func (m *ResetPasswordRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ResetPasswordRequest) UnmarshalBinary

func (m *ResetPasswordRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ResetPasswordRequest) Validate

func (m *ResetPasswordRequest) Validate(formats strfmt.Registry) error

Validate validates this reset password request

type Share

type Share struct {

	// activity
	Activity SparkData `json:"activity,omitempty"`

	// backend mode
	BackendMode string `json:"backendMode,omitempty"`

	// backend proxy endpoint
	BackendProxyEndpoint string `json:"backendProxyEndpoint,omitempty"`

	// created at
	CreatedAt int64 `json:"createdAt,omitempty"`

	// frontend endpoint
	FrontendEndpoint string `json:"frontendEndpoint,omitempty"`

	// frontend selection
	FrontendSelection string `json:"frontendSelection,omitempty"`

	// limited
	Limited bool `json:"limited,omitempty"`

	// reserved
	Reserved bool `json:"reserved,omitempty"`

	// share mode
	ShareMode string `json:"shareMode,omitempty"`

	// token
	Token string `json:"token,omitempty"`

	// updated at
	UpdatedAt int64 `json:"updatedAt,omitempty"`

	// z Id
	ZID string `json:"zId,omitempty"`
}

Share share

swagger:model share

func (*Share) ContextValidate

func (m *Share) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this share based on the context it is used

func (*Share) MarshalBinary

func (m *Share) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Share) UnmarshalBinary

func (m *Share) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Share) Validate

func (m *Share) Validate(formats strfmt.Registry) error

Validate validates this share

type ShareMetrics

type ShareMetrics []*ShareMetricsSample

ShareMetrics share metrics

swagger:model shareMetrics

func (ShareMetrics) ContextValidate

func (m ShareMetrics) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this share metrics based on the context it is used

func (ShareMetrics) Validate

func (m ShareMetrics) Validate(formats strfmt.Registry) error

Validate validates this share metrics

type ShareMetricsSample added in v0.4.0

type ShareMetricsSample struct {

	// rx
	Rx float64 `json:"rx,omitempty"`

	// timestamp
	Timestamp float64 `json:"timestamp,omitempty"`

	// tx
	Tx float64 `json:"tx,omitempty"`
}

ShareMetricsSample share metrics sample

swagger:model shareMetricsSample

func (*ShareMetricsSample) ContextValidate added in v0.4.0

func (m *ShareMetricsSample) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this share metrics sample based on context it is used

func (*ShareMetricsSample) MarshalBinary added in v0.4.0

func (m *ShareMetricsSample) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ShareMetricsSample) UnmarshalBinary added in v0.4.0

func (m *ShareMetricsSample) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ShareMetricsSample) Validate added in v0.4.0

func (m *ShareMetricsSample) Validate(formats strfmt.Registry) error

Validate validates this share metrics sample

type ShareRequest

type ShareRequest struct {

	// access grants
	AccessGrants []string `json:"accessGrants"`

	// auth scheme
	AuthScheme string `json:"authScheme,omitempty"`

	// auth users
	AuthUsers []*AuthUser `json:"authUsers"`

	// backend mode
	// Enum: [proxy web tcpTunnel udpTunnel caddy drive socks vpn]
	BackendMode string `json:"backendMode,omitempty"`

	// backend proxy endpoint
	BackendProxyEndpoint string `json:"backendProxyEndpoint,omitempty"`

	// env z Id
	EnvZID string `json:"envZId,omitempty"`

	// frontend selection
	FrontendSelection []string `json:"frontendSelection"`

	// oauth authorization check interval
	OauthAuthorizationCheckInterval string `json:"oauthAuthorizationCheckInterval,omitempty"`

	// oauth email domains
	OauthEmailDomains []string `json:"oauthEmailDomains"`

	// oauth provider
	// Enum: [github google]
	OauthProvider string `json:"oauthProvider,omitempty"`

	// permission mode
	// Enum: [open closed]
	PermissionMode string `json:"permissionMode,omitempty"`

	// reserved
	Reserved bool `json:"reserved,omitempty"`

	// share mode
	// Enum: [public private]
	ShareMode string `json:"shareMode,omitempty"`

	// unique name
	UniqueName string `json:"uniqueName,omitempty"`
}

ShareRequest share request

swagger:model shareRequest

func (*ShareRequest) ContextValidate

func (m *ShareRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

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

func (*ShareRequest) Validate

func (m *ShareRequest) Validate(formats strfmt.Registry) error

Validate validates this share request

type ShareResponse

type ShareResponse struct {

	// frontend proxy endpoints
	FrontendProxyEndpoints []string `json:"frontendProxyEndpoints"`

	// shr token
	ShrToken string `json:"shrToken,omitempty"`
}

ShareResponse share response

swagger:model shareResponse

func (*ShareResponse) ContextValidate

func (m *ShareResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

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

func (*ShareResponse) Validate

func (m *ShareResponse) Validate(formats strfmt.Registry) error

Validate validates this share response

type Shares

type Shares []*Share

Shares shares

swagger:model shares

func (Shares) ContextValidate

func (m Shares) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this shares based on the context it is used

func (Shares) Validate

func (m Shares) Validate(formats strfmt.Registry) error

Validate validates this shares

type SparkData added in v0.4.0

type SparkData []*SparkDataSample

SparkData spark data

swagger:model sparkData

func (SparkData) ContextValidate added in v0.4.0

func (m SparkData) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this spark data based on the context it is used

func (SparkData) Validate added in v0.4.0

func (m SparkData) Validate(formats strfmt.Registry) error

Validate validates this spark data

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

func (m *SparkDataSample) ContextValidate(ctx context.Context, formats strfmt.Registry) error

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

func (*SparkDataSample) Validate added in v0.4.0

func (m *SparkDataSample) Validate(formats strfmt.Registry) error

Validate validates this spark data sample

type UnaccessRequest

type UnaccessRequest struct {

	// env z Id
	EnvZID string `json:"envZId,omitempty"`

	// frontend token
	FrontendToken string `json:"frontendToken,omitempty"`

	// shr token
	ShrToken string `json:"shrToken,omitempty"`
}

UnaccessRequest unaccess request

swagger:model unaccessRequest

func (*UnaccessRequest) ContextValidate

func (m *UnaccessRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this unaccess request based on context it is used

func (*UnaccessRequest) MarshalBinary

func (m *UnaccessRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UnaccessRequest) UnmarshalBinary

func (m *UnaccessRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UnaccessRequest) Validate

func (m *UnaccessRequest) Validate(formats strfmt.Registry) error

Validate validates this unaccess request

type UnshareRequest

type UnshareRequest struct {

	// env z Id
	EnvZID string `json:"envZId,omitempty"`

	// reserved
	Reserved bool `json:"reserved,omitempty"`

	// shr token
	ShrToken string `json:"shrToken,omitempty"`
}

UnshareRequest unshare request

swagger:model unshareRequest

func (*UnshareRequest) ContextValidate

func (m *UnshareRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this unshare request based on context it is used

func (*UnshareRequest) MarshalBinary

func (m *UnshareRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UnshareRequest) UnmarshalBinary

func (m *UnshareRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UnshareRequest) Validate

func (m *UnshareRequest) Validate(formats strfmt.Registry) error

Validate validates this unshare request

type UpdateFrontendRequest

type UpdateFrontendRequest struct {

	// frontend token
	FrontendToken string `json:"frontendToken,omitempty"`

	// public name
	PublicName string `json:"publicName,omitempty"`

	// url template
	URLTemplate string `json:"urlTemplate,omitempty"`
}

UpdateFrontendRequest update frontend request

swagger:model updateFrontendRequest

func (*UpdateFrontendRequest) ContextValidate

func (m *UpdateFrontendRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this update frontend request based on context it is used

func (*UpdateFrontendRequest) MarshalBinary

func (m *UpdateFrontendRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UpdateFrontendRequest) UnmarshalBinary

func (m *UpdateFrontendRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UpdateFrontendRequest) Validate

func (m *UpdateFrontendRequest) Validate(formats strfmt.Registry) error

Validate validates this update frontend request

type UpdateShareRequest

type UpdateShareRequest struct {

	// add access grants
	AddAccessGrants []string `json:"addAccessGrants"`

	// backend proxy endpoint
	BackendProxyEndpoint string `json:"backendProxyEndpoint,omitempty"`

	// remove access grants
	RemoveAccessGrants []string `json:"removeAccessGrants"`

	// shr token
	ShrToken string `json:"shrToken,omitempty"`
}

UpdateShareRequest update share request

swagger:model updateShareRequest

func (*UpdateShareRequest) ContextValidate

func (m *UpdateShareRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this update share request based on context it is used

func (*UpdateShareRequest) MarshalBinary

func (m *UpdateShareRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UpdateShareRequest) UnmarshalBinary

func (m *UpdateShareRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UpdateShareRequest) Validate

func (m *UpdateShareRequest) Validate(formats strfmt.Registry) error

Validate validates this update share request

type VerifyRequest

type VerifyRequest struct {

	// token
	Token string `json:"token,omitempty"`
}

VerifyRequest verify request

swagger:model verifyRequest

func (*VerifyRequest) ContextValidate

func (m *VerifyRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this verify request based on context it is used

func (*VerifyRequest) MarshalBinary

func (m *VerifyRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*VerifyRequest) UnmarshalBinary

func (m *VerifyRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*VerifyRequest) Validate

func (m *VerifyRequest) Validate(formats strfmt.Registry) error

Validate validates this verify request

type VerifyResponse

type VerifyResponse struct {

	// email
	Email string `json:"email,omitempty"`
}

VerifyResponse verify response

swagger:model verifyResponse

func (*VerifyResponse) ContextValidate

func (m *VerifyResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this verify response based on context it is used

func (*VerifyResponse) MarshalBinary

func (m *VerifyResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*VerifyResponse) UnmarshalBinary

func (m *VerifyResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*VerifyResponse) Validate

func (m *VerifyResponse) Validate(formats strfmt.Registry) error

Validate validates this verify response

type Version

type Version string

Version version

swagger:model version

func (Version) ContextValidate

func (m Version) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this version based on context it is used

func (Version) Validate

func (m Version) Validate(formats strfmt.Registry) error

Validate validates this version

Jump to

Keyboard shortcuts

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