deployment

package
v0.17.1 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2026 License: MIT Imports: 1 Imported by: 0

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