Documentation
¶
Index ¶
- func Copy(fromWithHost, toWithHost string, appConfig *Config) error
- func ExecuteTaskGroupOnServer(client *ssh.Client, group string, config *Config) (string, error)
- func ExecuteTaskOnServer(client *ssh.Client, taskType string, taskValue string, config *Config) (string, error)
- func ExecuteTasksOnServer(client *ssh.Client, tasks []map[string]string, variables map[string]string, ...) error
- func ExpandVariables(data string, variables map[string]string) string
- func OpenTerminalToServer(name string, appConfig *Config) error
- func ProvisionEnvironment(env string, config *Config) error
- func ProvisionGroup(group string, variables map[string]string, config *Config) error
- func ProvisionServer(name string, tasks []map[string]string, checks []map[string]string, ...) error
- func SplitIdentifierFromPath(pathWithHost string) (string, string)
- type Config
- func (config *Config) GetChecksForGroup(group string) []map[string]string
- func (config *Config) GetGroupsForEnv(env string) []string
- func (config *Config) GetServer(name string) (map[string]string, error)
- func (config *Config) GetServersForGroup(group string) []string
- func (config *Config) GetTasksForGroup(group string) []map[string]string
- func (config *Config) GetTasksForTaskGroup(taskGroup string) []map[string]string
- func (config *Config) GetVariablesForEnv(env string) map[string]string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecuteTaskOnServer ¶
func ExecuteTaskOnServer(client *ssh.Client, taskType string, taskValue string, config *Config) (string, error)
*
Execute the current task on the server
func ExecuteTasksOnServer ¶
func ExecuteTasksOnServer(client *ssh.Client, tasks []map[string]string, variables map[string]string, config *Config) error
*
Execute a list of tasks on the connected server based on the provided config and with the list of variables as the current context
func OpenTerminalToServer ¶
func ProvisionServer ¶
func ProvisionServer(name string, tasks []map[string]string, checks []map[string]string, variables map[string]string, config *Config) error
*
Provision a single server with the list of tasks and variables
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
config contains the contents of the loaded configuration file and provides methods for easily retrieving it's data
Click to show internal directories.
Click to hide internal directories.