pkg

package
v0.0.0-...-c181241 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateProvenance

func GenerateProvenance(name, digest, githubContext string) ([]byte, error)

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

Types

type GitHubContext

type GitHubContext struct {
	Repository string `json:"repository"`
	ActionPath string `json:"action_path"`
	Workflow   string `json:"workflow"`
	RunId      string `json:"run_id"`
	EventName  string `json:"event_name"`
	SHA        string `json:"sha"`
	Token      string `json:"token,omitempty"`
	RunNumber  string `json:"run_number"`
}

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
	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