parlay

package module
v0.0.0-...-58306fc Latest Latest
Warning

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

Go to latest
Published: May 20, 2020 License: Apache-2.0 Imports: 17 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Keys map[string]string

Keys are used to store information between sessions and deployments

Functions

func DeleteTargetLogs

func DeleteTargetLogs(target string) error

DeleteTargetLogs will retrieve the JSON logs

func DeploySSH

func DeploySSH(m *parlaytypes.TreasureMap, logFile string, jsonLogging, background bool) error

DeploySSH - will iterate through a deployment and perform the relevant actions

func GetTargetLogs

func GetTargetLogs(target string) (*plunderlogging.JSONLog, error)

GetTargetLogs will retrieve the JSON logs

func RegisterToAPIServer

func RegisterToAPIServer()

RegisterToAPIServer - will add the endpoints to the API server

func StartUI

StartUI will enable parlay to provide an easier way of selecting which operations will be performed

func ValidateAction

func ValidateAction(action *parlaytypes.Action) error

ValidateAction will parse an action to ensure it is valid

Types

type Restore

type Restore struct {
	Deployment string   `json:"deployment"` // Name of deployment to restore from
	Action     string   `json:"action"`     // Action to restore from
	Host       string   `json:"host"`       // Single host to start from
	Hosts      []string `json:"hosts"`      // Restart operation on a number of hosts
}

Restore provides a checkpoint to resume from

func RestoreFromCheckpoint

func RestoreFromCheckpoint() *Restore

RestoreFromCheckpoint will attempt to find a restoration checkpoint file

Directories

Path Synopsis
parlaytypes module

Jump to

Keyboard shortcuts

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