template

package
v0.0.0-...-9e1b392 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunTemplate

func RunTemplate(dir string)

func Template

func Template(dir string, nodeCount, repCount, ptmCount int, qlcVersion, ptmVersion string) ([]QlcNode, []PtmNode, error)

Create docker-compose.yml file by parameters Parameters: - dir: directory of docker-compose.yml to be created - nodeCount: number of qlc nodes to run - repCount: number of representation nodes to run - ptmCount: number of ptm nodes to run - qlcVersion: docker image version of qlc, if set "", default is "latest" - ptmVersion: docker image version of ptm, if set "", default is "latest"

Types

type NodeParam

type NodeParam struct {
	Name          string
	Image         string
	ContainerName string
	Command       string
	PortP2P       string
	PortHttp      string
	PortWs        string
	Ipv4Address   string
	Volumes       string
	// contains filtered or unexported fields
}

type PtmNode

type PtmNode struct {
	EndPoint      string
	ContainerName string
}

type PtmParam

type PtmParam struct {
	Name          string
	Image         string
	ContainerName string
	Command       string
	Port1         string
	Port2         string
	Ipv4Address   string
	Volumes       string
	// contains filtered or unexported fields
}

type QlcNode

type QlcNode struct {
	HTTPEndpoint  string
	WSEndpoint    string
	ContainerName string
	Account       *types.Account
}

Jump to

Keyboard shortcuts

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