helpers

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Artifact

type Artifact struct {
	Name    string         `json:"name,omitempty"`
	Path    string         `json:"path,omitempty"`
	Goos    string         `json:"goos,omitempty"`
	Goarch  string         `json:"goarch,omitempty"`
	Goarm   string         `json:"goarm,omitempty"`
	Gomips  string         `json:"gomips,omitempty"`
	Goamd64 string         `json:"goamd64,omitempty"`
	Type    string         `json:"type,omitempty"`
	Extra   map[string]any `json:"extra,omitempty"`
}

Artifact is a goreleaser type defines a single artifact. Copied from https://github.com/goreleaser/goreleaser/blob/v1.13.1/internal/artifact/artifact.go#L159-L170

type Artifacts

type Artifacts []Artifact

func ParseArtifacts

func ParseArtifacts(r io.Reader) (Artifacts, error)

func ParseArtifactsFile

func ParseArtifactsFile(file string) (Artifacts, error)

func (Artifacts) SelectBinary

func (as Artifacts) SelectBinary(name, goos, goarch string) (Artifact, bool)

func (Artifacts) SelectDockerImage

func (as Artifacts) SelectDockerImage(namePrefix, goos, goarch string) (Artifact, bool)

Jump to

Keyboard shortcuts

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