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

ledger

package
v0.3.1 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: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Environment

func Environment(env, app string) string

Types

type Entry

type Entry struct {
	App   string
	SHA   string
	State forge.DeployState
	ID    int64
	Data  json.RawMessage
}

func Add

func Add(ctx context.Context, d forge.Deployments, repo, env, app, sha string, succeeded bool, logURL string, data json.RawMessage) (Entry, error)

func Finish

func Finish(ctx context.Context, d forge.Deployments, repo, env, app, sha string, succeeded bool, logURL string) (Entry, error)

func FinishWith

func FinishWith(ctx context.Context, d forge.Deployments, repo, env, app, sha string, succeeded bool, logURL string, data json.RawMessage) (Entry, error)

func History

func History(ctx context.Context, d forge.Deployments, repo, env, app string) (latest, success *Entry, err error)

func LastSuccess

func LastSuccess(ctx context.Context, d forge.Deployments, repo, env, app string) (Entry, bool, error)

func Latest

func Latest(ctx context.Context, d forge.Deployments, repo, env, app string) (Entry, bool, error)

func Running

func Running(ctx context.Context, d forge.Deployments, repo, env, app, sha string) (Entry, bool, error)

func Start

func Start(ctx context.Context, d forge.Deployments, repo, env, app, sha, logURL string) (Entry, error)

func StartWith

func StartWith(ctx context.Context, d forge.Deployments, repo, env, app, sha, logURL string, data json.RawMessage) (Entry, error)

Jump to

Keyboard shortcuts

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