seleniferous

package module
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

README

GitHub release (latest by date) Docker Pulls GitHub

seleniferous

seleniferous proxies incoming connections to browser container. It is responsible for freeing resources when a session deleted or an idle timeout occurs.

Overview

Available flags
[user@host]$ ./seleniferous --help
seleniferous is a sidecar proxy for selenosis

Usage:
  seleniferous [flags]

Flags:
      --listhen-port string                  port to use for incomming requests (default "4445")
      --browser-port string                  browser port (default "4444")
      --proxy-default-path string            path used by handler (default "/session")
      --idle-timeout duration                time in seconds for idle session (default 2m0s)
      --namespace string                     kubernetes namespace (default "selenosis")
      --graceful-shutdown-timeout duration   time in seconds  gracefull shutdown timeout (default 15s)
  -h, --help                                 help for seleniferous
Available endpoints
Protocol Endpoint
HTTP /wd/hub/session
HTTP /wd/hub/session/{sessionId}/
HTTP /status

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	// contains filtered or unexported fields
}

App ...

func New

func New(conf *Config) *App

New ...

func (*App) HandleClipboard

func (app *App) HandleClipboard(w http.ResponseWriter, r *http.Request)

HandleClipboard ..

func (*App) HandleDevTools

func (app *App) HandleDevTools(w http.ResponseWriter, r *http.Request)

HandleDevTools ...

func (*App) HandleDownload

func (app *App) HandleDownload(w http.ResponseWriter, r *http.Request)

HandleDownload ...

func (*App) HandleProxy

func (app *App) HandleProxy(w http.ResponseWriter, r *http.Request)

HandleProxy ...

func (*App) HandleSession

func (app *App) HandleSession(w http.ResponseWriter, r *http.Request)

HandleSession ...

type Config

type Config struct {
	BrowserPort     string
	ProxyPath       string
	Hostname        string
	Namespace       string
	IdleTimeout     time.Duration
	ShutdownTimeout time.Duration
	Storage         *Storage
	Logger          *logrus.Logger
	Client          *kubernetes.Clientset
	Quit            chan error
}

Config basic config

type Storage

type Storage struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func NewStorage

func NewStorage() *Storage

NewStorage ...

func (*Storage) IsEmpty

func (s *Storage) IsEmpty() bool

IsEmpty ...

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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