pkg

package
v0.0.0-...-9522e0f Latest Latest
Warning

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

Go to latest
Published: May 16, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

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 string) ([]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
	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