Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Deployment ¶
type Deployment struct { Name string Variables map[string]string Config struct { SSH map[string]SSHConfig } Jobs []map[string]any }
A deployment is the configuration file that contain all the instructions to deploy your project.
type JobContext ¶
A JobContext is passed to each executed jobs. It it provide useful functions for executing commands, logging output, and more!
func NewJobContext ¶
func NewJobContext(jobName string, client *remote.Client, logger func(data string)) (*JobContext, context.CancelFunc)
Create a new JobContext.
func (*JobContext) ExecuteCommand ¶
func (p *JobContext) ExecuteCommand(command string) (string, error)
Execute a command on the remote host.
func (*JobContext) Log ¶
func (p *JobContext) Log(data string)
Log a message to the logger, the output will be logged to the deployment log.
Click to show internal directories.
Click to hide internal directories.