Help us shape the future of Go! Take the 2026 Go Developer Survey

deploy

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Finish

func Finish(ctx context.Context, f forge.Forge, d forge.Deployments, cfg config.Config, run Run, apps []string, succeeded bool, report *Report) error

func Start

func Start(ctx context.Context, f forge.Forge, d forge.Deployments, cfg config.Config, run Run, apps []string) error

Types

type Failure

type Failure struct {
	Host    string `json:"host"`
	Task    string `json:"task"`
	Message string `json:"message"`
}

type Plan

type Plan struct {
	Apps   []string
	SkipCI bool
	Change int
}

func MakePlan

func MakePlan(ctx context.Context, f forge.Forge, d forge.Deployments, cfg config.Config, repo, env, base, head string) (Plan, error)

type Report

type Report struct {
	StartedAt  time.Time
	FinishedAt time.Time
	Hosts      []event.Host
	Failure    *Failure
}

func ReadReport

func ReadReport(data []byte) (Report, error)

func (Report) NoChanges

func (r Report) NoChanges() bool

type Run

type Run struct {
	Repo      string
	Env       string
	SHA       string
	ID        string
	Attempt   int
	LogURL    string
	Now       time.Time
	Notifiers []notifier.Notifier
	Warn      func(string)
}

Jump to

Keyboard shortcuts

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