stagehand

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2022 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckProxy

func CheckProxy() error

func ConfigureHostname

func ConfigureHostname(name string) error

func ConfigureNetwork

func ConfigureNetwork(network Network) (string, error)

func ConfigureSSHKeys

func ConfigureSSHKeys(config *Config) error

func EncodeConfig

func EncodeConfig(config *Config) ([]byte, error)

func EncodeResult

func EncodeResult(result *ProvisionResult) ([]byte, error)

func InstallProxyService

func InstallProxyService(config *ProxyConfig) error

Types

type Config

type Config struct {
	Hostname          string
	Environment       []string
	DockerArgs        []string
	DefaultUser       string
	AuthorizedSSHKeys []string
	Script            []string
}

func DecodeConfig

func DecodeConfig(input []byte) (*Config, error)

type Network

type Network struct {
	Device string
}

type ProvisionResult

type ProvisionResult struct {
	IPAddress  string
	CA         string
	ClientCert string
	ClientKey  string
}

func DecodeResult

func DecodeResult(input []byte) (*ProvisionResult, error)

func Provision

func Provision(config *Config) (*ProvisionResult, error)

type ProxyConfig

type ProxyConfig struct {
	Address    string
	CA         []byte
	ServerCert []byte
	ServerKey  []byte
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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