deploy

package
v0.0.0-...-c972c3d Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeployImageToNode

func DeployImageToNode(node NodeDeploySettings, image, server string) error

func DeployNodes

func DeployNodes(img, server string, nodes ...NodeDeploySettings) error

func DeployServer

func DeployServer(image string) error

Types

type NodeDeploySettings

type NodeDeploySettings struct {
	NodeToDeploy
	Config message.NodeConfig `json:"config"`
}

func GetValidNodeDeploySettings

func GetValidNodeDeploySettings() (ret []NodeDeploySettings, err error)

type NodeToDeploy

type NodeToDeploy struct {
	Addr string `json:"addr"`
	Name string `json:"name"`
}

type RunOpts

type RunOpts struct {
	Name          string
	Detached      bool
	Devices       []string
	Port          []string
	Privileged    bool
	Remove        bool
	RestartPolicy string
	Volumes       []string
}

Jump to

Keyboard shortcuts

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