pkg

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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 ErrInvalidDirectory added in v1.5.0

type ErrInvalidDirectory struct {
	errors.WrappableError
}

ErrInvalidDirectory indicates an invalid directory.

type ErrInvalidEnvironmentVariable added in v1.5.0

type ErrInvalidEnvironmentVariable struct {
	errors.WrappableError
}

ErrInvalidEnvironmentVariable indicates an invalid environment variable.

type ErrUnsupportedVersion added in v1.5.0

type ErrUnsupportedVersion struct {
	errors.WrappableError
}

ErrUnsupportedVersion indicates an unsupported Go builder version.

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 {
	Env     map[string]string
	Main    *string
	Dir     *string
	Goos    string
	Goarch  string
	Binary  string
	Flags   []string
	Ldflags []string
}

GoReleaserConfig tracks configuration for goreleaser.

func ConfigFromFile

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

ConfigFromFile reads the file located at path and builds a GoReleaserConfig from it.

Jump to

Keyboard shortcuts

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