pkg

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2022 License: Apache-2.0 Imports: 18 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorInvalidEnvironmentVariable = errors.New("invalid environment variable")
	ErrorUnsupportedVersion         = errors.New("version not supported")
)
View Source
var ErrorInvalidDirectory = errors.New("invalid directory")

Functions

func GenerateProvenance

func GenerateProvenance(name, digest, command, envs, workingDir string, s signing.Signer, r signing.TransparencyLog) ([]byte, error)

GenerateProvenance translates github context into a SLSA provenance attestation. Spec: https://slsa.dev/provenance/v0.2

func UnmarshallList

func UnmarshallList(arg string) ([]string, error)

Types

type GoBuild

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

func GoBuildNew

func GoBuildNew(goc string, cfg *GoReleaserConfig) *GoBuild

func (*GoBuild) Run

func (b *GoBuild) Run(dry bool) error

func (*GoBuild) SetArgEnvVariables

func (b *GoBuild) SetArgEnvVariables(envs string) error

type GoReleaserConfig

type GoReleaserConfig struct {
	Goos    string
	Goarch  string
	Main    *string
	Dir     *string
	Env     map[string]string
	Flags   []string
	Ldflags []string
	Binary  string
}

func ConfigFromFile

func ConfigFromFile(pathfn string) (*GoReleaserConfig, error)

Jump to

Keyboard shortcuts

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