Documentation
¶
Index ¶
- Constants
- func GetLine(filename string, names chan string, readerr chan error)
- func IsDirectory(path string) (bool, error)
- func ReplaceCommandVars(command string, vars map[string]string) (string, error)
- func ReplaceVerticalCommandVars(command string, vars map[string]string) (string, error)
- func SaveInFolder(inputPath string, outputPath string)
- func SendSCP(source, destination, ip, username string, port int, privateKeyPath string) error
- type Controller
- func (c Controller) BuildFleet(opts models.BuildOptions) ([]models.BuildResult, error)
- func (c Controller) CreateImage(token string, provider Provider, diskID string, label string)
- func (c Controller) DeleteBoxByID(id string, token string, provider Provider)
- func (c Controller) DeleteFleet(name string)
- func (c Controller) GetBox(boxName string) (provider.Box, error)
- func (c Controller) GetFleet(fleetName string) []provider.Box
- func (c Controller) GetImageRegions(imageID int) []string
- func (c Controller) GetImages() ([]provider.Image, error)
- func (c Controller) ListBoxes(token string, provider Provider)
- func (c Controller) ListImages(token string, provider Provider)
- func (c Controller) RemoveImages(token string, provider Provider, name string)
- func (c Controller) RunCommand(name, command string)
- func (c Controller) RunWorkflow(opts models.WorkflowOptions) ([]models.WorkflowResult, error)
- func (c Controller) SSH(boxName, username, password string, port int, sshKey string)
- func (c Controller) SpawnFleet(fleetName string, fleetCount int, skipWait bool, build bool)
- func (c Controller) Start(fleetName, command string, delete bool, ...)
- func (c Controller) TransferImage(imageID int, region string)
- func (c Controller) VerifyFleet(opts models.BuildOptions) (map[string]bool, error)
- func (c Controller) VerticalStart(fleetName, command string, delete bool, outputPath1, chunksFolder string, ...)
- type Provider
Constants ¶
View Source
const ( PROVIDER_CUSTOM = 0 PROVIDER_LINODE = 1 PROVIDER_DIGITALOCEAN = 2 PROVIDER_VULTR = 3 )
Variables ¶
This section is empty.
Functions ¶
func IsDirectory ¶
func ReplaceCommandVars ¶
func SaveInFolder ¶
Types ¶
type Controller ¶
func NewController ¶
func NewController(configs *models.Config) Controller
func (Controller) BuildFleet ¶
func (c Controller) BuildFleet(opts models.BuildOptions) ([]models.BuildResult, error)
func (Controller) CreateImage ¶
func (c Controller) CreateImage(token string, provider Provider, diskID string, label string)
func (Controller) DeleteBoxByID ¶
func (c Controller) DeleteBoxByID(id string, token string, provider Provider)
func (Controller) DeleteFleet ¶
func (c Controller) DeleteFleet(name string)
DeleteFleet deletes a whole fleet or a single box
func (Controller) GetImageRegions ¶
func (c Controller) GetImageRegions(imageID int) []string
func (Controller) ListBoxes ¶
func (c Controller) ListBoxes(token string, provider Provider)
ListBoxes prints all active boxes of a provider
func (Controller) ListImages ¶
func (c Controller) ListImages(token string, provider Provider)
ListImages prints a list of available private images of a provider
func (Controller) RemoveImages ¶
func (c Controller) RemoveImages(token string, provider Provider, name string)
func (Controller) RunCommand ¶
func (c Controller) RunCommand(name, command string)
func (Controller) RunWorkflow ¶
func (c Controller) RunWorkflow(opts models.WorkflowOptions) ([]models.WorkflowResult, error)
func (Controller) SSH ¶
func (c Controller) SSH(boxName, username, password string, port int, sshKey string)
func (Controller) SpawnFleet ¶
func (c Controller) SpawnFleet(fleetName string, fleetCount int, skipWait bool, build bool)
func (Controller) Start ¶
func (c Controller) Start(fleetName, command string, delete bool, input, outputPath1, chunksFolder string, module *models.Module)
Start runs a scan
func (Controller) TransferImage ¶
func (c Controller) TransferImage(imageID int, region string)
func (Controller) VerifyFleet ¶
func (c Controller) VerifyFleet(opts models.BuildOptions) (map[string]bool, error)
func (Controller) VerticalStart ¶
Click to show internal directories.
Click to hide internal directories.