selenoid

package
v0.0.0-...-80567d8 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Status

func Status(ctx context.Context, webdriverURI *url.URL, statusURI *url.URL, version string) ([]byte, error)

Types

type Browsers

type Browsers map[string]Version

Browsers - browser names for versions

type Caps

type Caps struct {
	Name             string            `json:"browserName"`
	Version          string            `json:"version"`
	ScreenResolution string            `json:"screenResolution"`
	VNC              bool              `json:"enableVNC"`
	TestName         string            `json:"name"`
	TimeZone         string            `json:"timeZone"`
	Labels           map[string]string `json:"labels,omitempty"`
}

Caps - user capabilities

type Quota

type Quota map[string]*Sessions

Quota - list of sessions for quota user

type Session

type Session struct {
	ID        string `json:"id"`
	Container string `json:"container"`
	Caps      Caps   `json:"caps"`
}

Session - session id and vnc flag

type Sessions

type Sessions struct {
	Count    int       `json:"count"`
	Sessions []Session `json:"sessions"`
}

Sessions - used count and individual sessions for quota user

type State

type State struct {
	Total    int      `json:"total"`
	Used     int      `json:"used"`
	Queued   int      `json:"queued"`
	Pending  int      `json:"pending"`
	Browsers Browsers `json:"browsers"`
	Videos   Videos   `json:"videos"`
}

State - current state

type Version

type Version map[string]Quota

Version - browser version for quota

type Videos

type Videos []string

Jump to

Keyboard shortcuts

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