deploy

package
v0.0.0-...-342e3d9 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2020 License: Apache-2.0 Imports: 13 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Amazon

type Amazon struct {
	VMSize       string
	Location     string
	ApiKeyID     string
	ApiAccessKey string
	AmiName      string
	AmiOwnerId   string
	SSHKeyName   string
	PrivateKey   string
	PublicKey    string

	ServerCount  int
	TCPOpenPorts []int
	UDPOpenPorts []int
	ServerNames  []string
	UserData     []byte
	// contains filtered or unexported fields
}

func (*Amazon) DeployVMs

func (amz *Amazon) DeployVMs() ([]CloudServer, error)

func (Amazon) ExecSSHCmd

func (amz Amazon) ExecSSHCmd(publicIP string, privateKey string, command string) (string, error)
type Centurylink struct {
	CPU            int
	MemoryGB       int
	PrivateSSHKey  string
	PublicSSHKey   string
	APIUsername    string
	APIPassword    string
	TCPOpenPorts   []int
	GroupID        string
	ServerTemplate string
	ServerCount    int
	ServerNames    []string
	// contains filtered or unexported fields
}
func NewCenturylink() *Centurylink

func (Centurylink) DeployVMs

func (clc Centurylink) DeployVMs() ([]CloudServer, error)

type CloudServer

type CloudServer struct {
	Name          string
	PublicIP      string
	PrivateIP     string
	PublicSSHKey  string
	PrivateSSHKey string
}

type Deploy

type Deploy interface {
	DeployVMs() ([]CloudServer, error)
}

func New

func New(p string) (Deploy, error)

type DigitalOcean

type DigitalOcean struct {
	Location    string
	SSHKeyName  string
	APIToken    string
	ServerCount int

	PrivateKey  string
	PublicKey   string
	UserData    string
	VMSize      string
	ImageName   string
	ServerNames []string
	// contains filtered or unexported fields
}

func (*DigitalOcean) DeployVMs

func (do *DigitalOcean) DeployVMs() ([]CloudServer, error)

type Params

type Params struct {
	Count int
}

Jump to

Keyboard shortcuts

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