bundle

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Archive

type Archive struct {
	// contains filtered or unexported fields
}

func CreateReleaseBundle

func CreateReleaseBundle(meta Meta, w io.WriteCloser) (*Archive, error)

func (*Archive) Close

func (a *Archive) Close() error

func (*Archive) WriteFile

func (a *Archive) WriteFile(path string) error

func (*Archive) WriteJSON

func (a *Archive) WriteJSON(thing any, name string) error

type Asset

type Asset struct {
	Name         string `json:"name"`
	Path         string `json:"path"`
	OS           string `json:"os"`
	Arch         string `json:"arch"`
	SHA256       string `json:"sha256"`
	ContentType  string `json:"content_type"`
	AbsolutePath string `json:"-"`
}

type Meta

type Meta struct {
	Release *release.Meta `json:"release"`
	Assets  []Asset       `json:"assets"`
}

func BuildMeta

func BuildMeta(distDir string) (Meta, error)

func (Meta) Validate

func (m Meta) Validate() error

Jump to

Keyboard shortcuts

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