deployment

package
v0.17.5 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2026 License: MIT Imports: 1 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ID      string
	Plugin  string
	Address string
	Ports   map[string]int
	APIKey  string
	Secret  string
}

type Object

type Object = map[string]any

func BuiltService

func BuiltService(d Config, probe string) Object

func Service

func Service(image, probe string) Object

type Plugin

type Plugin struct {
	WebUI           *WebUI `json:"webUI,omitempty"`
	ID              string `json:"id"`
	Name            string `json:"name"`
	Ports           []Port `json:"ports"`
	PortNote        string `json:"portNote,omitempty"`
	Credentials     bool   `json:"credentials,omitempty"`
	TerminalService string `json:"-"`

	ValidatePorts func(map[string]int, bool) error                    `json:"-"`
	Bind          func(Config) (map[string]any, map[string]string)    `json:"-"`
	Recipe        func(Config) (map[string]Object, map[string][]byte) `json:"-"`
	CheckHost     func(Config, func(string) (string, error)) error    `json:"-"`
}

Plugin describes how to deploy an SFU and connect a benchmark to it

func (Plugin) ResolvePorts

func (p Plugin) ResolvePorts(overrides map[string]int, managed bool) (map[string]int, error)

type Port

type Port struct {
	ID       string `json:"id"`
	Name     string `json:"name"`
	Protocol string `json:"protocol"`
	Default  int    `json:"default"`
	MinFrom  string `json:"minFrom,omitempty"`
}

type WebUI

type WebUI struct {
	Port    string                                                  `json:"-"`
	HTTPS   bool                                                    `json:"-"`
	Join    func(Config, string, string) (map[string]string, error) `json:"-"`
	Rewrite func(Config, []byte, string) []byte                     `json:"-"`
}

Jump to

Keyboard shortcuts

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