releaseguard

package
v0.29.0 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2026 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrArtifactModeNotRequested = errors.New("releaseguard artifact mode not requested")

Functions

func GuardDraftAssets

func GuardDraftAssets(root, assets, version string) error

func GuardManifest

func GuardManifest(root, dist string) error

func GuardTapPostcheck

func GuardTapPostcheck(root, tap, names, commits, version string) error

func GuardTapPreflight

func GuardTapPreflight(root, tap string) error

func RunFromEnv

func RunFromEnv(root string) error

func ValidateGoReleaserConfig

func ValidateGoReleaserConfig(cfg GoReleaserConfig) error

func ValidateHomebrewCaskConfig

func ValidateHomebrewCaskConfig(cfg GoReleaserConfig) error

Types

type GoReleaserArchive

type GoReleaserArchive struct {
	ID           string   `yaml:"id"`
	IDs          []string `yaml:"ids"`
	NameTemplate string   `yaml:"name_template"`
}

type GoReleaserBuild

type GoReleaserBuild struct {
	ID     string   `yaml:"id"`
	Main   string   `yaml:"main"`
	Binary string   `yaml:"binary"`
	Goos   []string `yaml:"goos"`
	Goarch []string `yaml:"goarch"`
}

type GoReleaserCask

type GoReleaserCask struct {
	Name         string                 `yaml:"name"`
	IDs          []string               `yaml:"ids"`
	Binaries     []string               `yaml:"binaries"`
	Repository   GoReleaserRepository   `yaml:"repository"`
	SkipUpload   bool                   `yaml:"skip_upload"`
	CommitAuthor GoReleaserCommitAuthor `yaml:"commit_author"`
}

type GoReleaserChecksum

type GoReleaserChecksum struct {
	NameTemplate string `yaml:"name_template"`
}

type GoReleaserCommitAuthor

type GoReleaserCommitAuthor struct {
	Name  string `yaml:"name"`
	Email string `yaml:"email"`
}

type GoReleaserConfig

type GoReleaserConfig struct {
	RawTopLevel  map[string]any      `yaml:"-"`
	Version      int                 `yaml:"version"`
	Builds       []GoReleaserBuild   `yaml:"builds"`
	Archives     []GoReleaserArchive `yaml:"archives"`
	Checksum     GoReleaserChecksum  `yaml:"checksum"`
	Changelog    any                 `yaml:"changelog"`
	HomebrewCask []GoReleaserCask    `yaml:"homebrew_casks"`
	Release      GoReleaserRelease   `yaml:"release"`
}

func LoadGoReleaserConfig

func LoadGoReleaserConfig(path string) (GoReleaserConfig, error)

type GoReleaserRelease

type GoReleaserRelease struct {
	Draft bool `yaml:"draft"`
}

type GoReleaserRepository

type GoReleaserRepository struct {
	Owner  string `yaml:"owner"`
	Name   string `yaml:"name"`
	Branch string `yaml:"branch"`
	Token  string `yaml:"token"`
}

type Mode

type Mode string
const (
	ModeManifest     Mode = "manifest"
	ModeDraftAssets  Mode = "draft-assets"
	ModeTapPreflight Mode = "tap-preflight"
	ModeTapPostcheck Mode = "tap-postcheck"
)

Jump to

Keyboard shortcuts

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