release

package
v0.9.7 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const ManifestVersion = 1

Variables

This section is empty.

Functions

func CurrentSchemaVersion

func CurrentSchemaVersion() string

func EncodeManifest

func EncodeManifest(manifest Manifest) ([]byte, error)

Types

type Artifact

type Artifact struct {
	URL    string `json:"url"`
	SHA256 string `json:"sha256"`
	Size   int64  `json:"size"`
}

type BuildManifestInput

type BuildManifestInput struct {
	Tag               string
	Version           string
	Released          time.Time
	Channel           string
	APIVersion        string
	SchemaVersion     string
	MinCliForDaemon   string
	MinDaemonForCli   string
	Repo              string
	AssetsDir         string
	RequiredArtifacts []string
}

type Manifest

type Manifest struct {
	ManifestVersion int                 `json:"manifestVersion"`
	Version         string              `json:"version"`
	Tag             string              `json:"tag"`
	Released        string              `json:"released"`
	Channel         string              `json:"channel"`
	APIVersion      string              `json:"apiVersion"`
	SchemaVersion   string              `json:"schemaVersion"`
	MinCliForDaemon string              `json:"minCliForDaemon"`
	MinDaemonForCli string              `json:"minDaemonForCli"`
	Artifacts       map[string]Artifact `json:"artifacts"`
}

func BuildManifest

func BuildManifest(input BuildManifestInput) (Manifest, error)

Jump to

Keyboard shortcuts

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