pkg

package
v1.3.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

func GenerateProvenance

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

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

Types

type GoBuild

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

GoBuild implements building a Go application.

func GoBuildNew

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

GoBuildNew returns a new GoBuild.

func (*GoBuild) Run

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

Run executes the build.

func (*GoBuild) SetArgEnvVariables

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

SetArgEnvVariables sets static environment variables.

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