Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContainerRecreate ¶
type ContainerRecreate struct {
Name string `yaml:"name"`
}
ContainerRecreate stops+removes a container so a webhook can recreate it. Non-fatal.
func (ContainerRecreate) Exec ¶
func (cr ContainerRecreate) Exec(c *runCtx) error
type DockerBuild ¶
type DockerBuild struct {
Tag string `yaml:"tag"`
}
DockerBuild builds the repo into a tagged image.
func (DockerBuild) Exec ¶
func (d DockerBuild) Exec(c *runCtx) error
type Executor ¶
type Executor struct {
Repo string
Steps []Step
Runner func(name string, args ...string) (string, error)
}
Executor runs an ordered list of steps and produces a DeployResponse.
func NewExecutor ¶
NewExecutor builds an Executor with the default real-command runner.
func (*Executor) Run ¶
func (e *Executor) Run() contract.DeployResponse
Run executes steps in order, stopping at the first failure, and returns the result.
type GitPull ¶
type GitPull struct{}
GitPull pulls the repo, records from/to short hashes, and flags a no-op pull.
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler is the deploy-agent HTTP endpoint: bearer-auth, single-flight, runs a pipeline.
func NewHandler ¶
func NewHandler(secret string, run func() contract.DeployResponse) *Handler
NewHandler wires a deploy handler around a pipeline-run function.
Click to show internal directories.
Click to hide internal directories.