Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultAWSInstance = "t3.micro"
View Source
const DefaultDigitalOceanDroplet = "s-1vcpu-1gb"
View Source
const MaxNameLength = 32
Variables ¶
View Source
var ( ErrEmptyName = errors.New("node name cannot be empty") ErrNameTooLong = errors.New("name exceeds max name length") ErrMissingCredential = errors.New("missing cloud provider credential for deployment") ErrUnknownProvider = errors.New("unknown cloud provider") ErrInstanceTypeNotAvailable = errors.New("selected instance type is not available") ErrRegionNotAvailable = errors.New("selected region is not available") ErrNoAvailableRegion = errors.New("cannot find any available region with given account") ErrInsufficientPermission = errors.New("insufficient permissions") ErrInvalidNodeNameForGCP = errors.New("for google cloud, name must start with a lowercase letter followed by up to 62 lowercase letters, numbers, or hyphens, and cannot end with a hyphen") )
View Source
var ( NameAws = "aws" NameDo = "do" NameGcp = "gcp" )
View Source
var DarknodeService = `` /* 437-byte string literal not displayed */
View Source
var DarknodeUpdaterService = `` /* 407-byte string literal not displayed */
Functions ¶
func NodeSudoUsername ¶
NodeSudoUsername returns the sudo username of the instance with given name.
func ParseNetwork ¶
func ParseNetwork(ctx *cli.Context) (multichain.Network, error)
ParseNetwork parses the network from input arguments.
Types ¶
Click to show internal directories.
Click to hide internal directories.