model

package
v1.2.2-0...-70982f0 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Desktop

type Desktop struct {
	ID              string                 `rethinkdb:"id"`
	Kind            string                 `rethinkdb:"kind"`
	Status          string                 `rethinkdb:"status"`
	GuestProperties DesktopGuestProperties `rethinkdb:"guest_properties"`
	Viewer          *DesktopViewer         `rethinkdb:"viewer,omitempty"`
}

func (*Desktop) Load

func (d *Desktop) Load(ctx context.Context, sess r.QueryExecutor) error

type DesktopGuestProperties

type DesktopGuestProperties struct {
	Credentials DesktopGuestPropertiesCredentials `rethinkdb:"credentials"`
}

type DesktopGuestPropertiesCredentials

type DesktopGuestPropertiesCredentials struct {
	Username string `rethinkdb:"username"`
	Password string `rethinkdb:"password"`
}

type DesktopViewer

type DesktopViewer struct {
	GuestIP *string `rethinkdb:"guest_ip,omitempty"`
}

type Target

type Target struct {
	ID        string     `rethinkdb:"id"`
	UserID    string     `rethinkdb:"user_id"`
	DesktopID string     `rethinkdb:"desktop_id"`
	HTTP      TargetHTTP `rethinkdb:"http"`
	SSH       TargetSSH  `rethinkdb:"ssh"`
}

func (*Target) Load

func (t *Target) Load(ctx context.Context, sess r.QueryExecutor) error

type TargetHTTP

type TargetHTTP struct {
	Enabled   bool `rethinkdb:"enabled"`
	HTTPPort  int  `rethinkdb:"http_port"`
	HTTPSPort int  `rethinkdb:"https_port"`
}

type TargetSSH

type TargetSSH struct {
	Enabled        bool     `rethinkdb:"enabled"`
	Port           int      `rethinkdb:"port"`
	AuthorizedKeys []string `rethinkdb:"authorized_keys"`
}

Jump to

Keyboard shortcuts

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