driver

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultGitHubReleaseOptions = GitHubReleaseOptions{
	IgnoreExtensions: []string{".pem", ".sig", ".cert"},
}
View Source
var ErrNoWorkflowToken = errors.New("token does not have workflow scope")

Functions

This section is empty.

Types

type Actions

type Actions struct {
	Organization string
	Repository   string
	RunID        int
}

func NewActions

func NewActions(specURL string) (*Actions, error)

func (*Actions) Snap

func (a *Actions) Snap() (*snapshot.Snapshot, error)

Snap returns a snapshot of the current state

type Attestation

type Attestation struct {
	URL string
}

func NewAttestation

func NewAttestation(specURL string) (*Attestation, error)

func (*Attestation) Snap

func (att *Attestation) Snap() (*snapshot.Snapshot, error)

type Directory

type Directory struct {
	Path string
}

func NewDirectory

func NewDirectory(specURL string) (*Directory, error)

func (*Directory) Snap

func (d *Directory) Snap() (*snapshot.Snapshot, error)

Snap takes a snapshot of the directory

type GCB

type GCB struct {
	ProjectID string
	BuildID   string
	// contains filtered or unexported fields
}

func NewGCB

func NewGCB(specURL string) (*GCB, error)

func (*GCB) Snap

func (gcb *GCB) Snap() (*snapshot.Snapshot, error)

type GCS

type GCS struct {
	Bucket  string
	Path    string
	WorkDir string
	// contains filtered or unexported fields
}

func NewGCS

func NewGCS(specURL string) (*GCS, error)

func (*GCS) Snap

func (gcs *GCS) Snap() (*snapshot.Snapshot, error)

Snap takes a snapshot of the directory

type GitHubRelease added in v0.2.0

type GitHubRelease struct {
	Owner      string
	Repository string
	Tag        string
	Options    GitHubReleaseOptions
	// contains filtered or unexported fields
}

func NewGithub added in v0.2.0

func NewGithub(specURL string) (*GitHubRelease, error)

func (*GitHubRelease) Snap added in v0.2.0

func (ghr *GitHubRelease) Snap() (*snapshot.Snapshot, error)

type GitHubReleaseOptions added in v0.2.0

type GitHubReleaseOptions struct {
	IgnoreExtensions []string
}

type OCI

type OCI struct {
	Repository string
	Image      string
}

func NewOCI

func NewOCI(specURL string) (*OCI, error)

func (*OCI) Snap

func (oci *OCI) Snap() (*snapshot.Snapshot, error)

Snap

type SPDX

type SPDX struct {
	URL string
}

func NewSPDX

func NewSPDX(specURL string) (*SPDX, error)

func (*SPDX) Snap

func (s *SPDX) Snap() (*snapshot.Snapshot, error)

Jump to

Keyboard shortcuts

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