stagedesigner

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2021 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddDockerUser

func AddDockerUser(user string) error

func ConfigureDocker

func ConfigureDocker(config *DockerConfig) 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 InstallDocker

func InstallDocker() error

func RestartDocker

func RestartDocker() 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 DockerConfig

type DockerConfig struct {
	CA          []byte
	ServerCert  []byte
	ServerKey   []byte
	Environment []string
	Arguments   []string
}

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)

Jump to

Keyboard shortcuts

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