types

package
v0.0.0-...-2a1a1f5 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2019 License: MIT, MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Id        string   `json:"id" bson:"id"`
	SessionId string   `json:"session_id" bson:"session_id"`
	ViewPort  ViewPort `json:"viewport"`
}

type Instance

type Instance struct {
	Name        string `json:"name" bson:"name"`
	Image       string `json:"image" bson:"image"`
	Hostname    string `json:"hostname" bson:"hostname"`
	IP          string `json:"ip" bson:"ip"`
	RoutableIP  string `json:"routable_ip" bson:"routable_id"`
	ServerCert  []byte `json:"server_cert" bson:"server_cert"`
	ServerKey   []byte `json:"server_key" bson:"server_key"`
	CACert      []byte `json:"ca_cert" bson:"ca_cert"`
	Cert        []byte `json:"cert" bson:"cert"`
	Key         []byte `json:"key" bson:"key"`
	Tls         bool   `json:"tls" bson:"tls"`
	SessionId   string `json:"session_id" bson:"session_id"`
	ProxyHost   string `json:"proxy_host" bson:"proxy_host"`
	SessionHost string `json:"session_host" bson:"session_host"`
	Type        string `json:"type" bson:"type"`
	WindowsId   string `json:"-" bson:"windows_id"`
	// contains filtered or unexported fields
}

type InstanceConfig

type InstanceConfig struct {
	ImageName      string
	Hostname       string
	ServerCert     []byte
	ServerKey      []byte
	CACert         []byte
	Cert           []byte
	Key            []byte
	Tls            bool
	PlaygroundFQDN string
	Type           string
}

type LoginRequest

type LoginRequest struct {
	Id       string `json:"id" bson:"id"`
	Provider string `json:"provider" bson:"provider"`
}

type Playground

type Playground struct {
	Id                          string           `json:"id" bson:"id"`
	Domain                      string           `json:"domain" bson:"domain"`
	DefaultDinDInstanceImage    string           `json:"default_dind_instance_image" bson:"default_dind_instance_image"`
	AvailableDinDInstanceImages []string         `json:"available_dind_instance_images" bson:"available_dind_instance_images"`
	AllowWindowsInstances       bool             `json:"allow_windows_instances" bson:"allow_windows_instances"`
	DefaultSessionDuration      time.Duration    `json:"default_session_duration" bson:"default_session_duration"`
	Extras                      PlaygroundExtras `json:"extras" bson:"extras"`
	AssetsDir                   string           `json:"assets_dir" bson:"assets_dir"`
	Tasks                       []string         `json:"tasks" bson:"tasks"`
	GithubClientID              string           `json:"github_client_id" bson:"github_client_id"`
	GithubClientSecret          string           `json:"github_client_secret" bson:"github_client_secret"`
	FacebookClientID            string           `json:"facebook_client_id" bson:"facebook_client_id"`
	FacebookClientSecret        string           `json:"facebook_client_secret" bson:"facebook_client_secret"`
	DockerClientID              string           `json:"docker_client_id" bson:"docker_client_id"`
	DockerClientSecret          string           `json:"docker_client_secret" bson:"docker_client_secret"`
	DockerHost                  string           `json:"docker_host" bson:"docker_host"`
	MaxInstances                int              `json:"max_instances" bson:"max_instances"`
}

type PlaygroundExtras

type PlaygroundExtras map[string]interface{}

func (PlaygroundExtras) Get

func (e PlaygroundExtras) Get(name string) (interface{}, bool)

func (PlaygroundExtras) GetDuration

func (e PlaygroundExtras) GetDuration(name string) (time.Duration, bool)

func (PlaygroundExtras) GetInt

func (e PlaygroundExtras) GetInt(name string) (int, bool)

func (PlaygroundExtras) GetString

func (e PlaygroundExtras) GetString(name string) (string, bool)

type Session

type Session struct {
	Id           string    `json:"id" bson:"id"`
	CreatedAt    time.Time `json:"created_at" bson:"created_at"`
	ExpiresAt    time.Time `json:"expires_at" bson:"expires_at"`
	PwdIpAddress string    `json:"pwd_ip_address" bson:"pwd_ip_address"`
	Ready        bool      `json:"ready" bson:"ready"`
	Stack        string    `json:"stack" bson:"stack"`
	Repo         string    `json:"repo" bson:"repo"`
	StackName    string    `json:"stack_name" bson:"stack_name"`
	ImageName    string    `json:"image_name" bson:"image_name"`
	Host         string    `json:"host" bson:"host"`
	UserId       string    `json:"user_id" bson:"user_id"`
	PlaygroundId string    `json:"playground_id" bson:"playground_id"`
}

type SessionConfig

type SessionConfig struct {
	Playground *Playground
	UserId     string
	Duration   time.Duration
	Stack      string
	Repo       string
	StackName  string
	ImageName  string
}

type User

type User struct {
	Id             string `json:"id" bson:"id"`
	Name           string `json:"name" bson:"name"`
	ProviderUserId string `json:"provider_user_id" bson:"provider_user_id"`
	Avatar         string `json:"avatar" bson:"avatar"`
	Provider       string `json:"provider" bson:"provider"`
	Email          string `json:"email" bson:"email"`
	IsBanned       bool   `json:"banned" bson:"banned"`
}

type ViewPort

type ViewPort struct {
	Rows uint `json:"rows"`
	Cols uint `json:"cols"`
}

type WindowsInstance

type WindowsInstance struct {
	Id        string `bson:"id"`
	SessionId string `bson:"session_id"`
}

Jump to

Keyboard shortcuts

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