driver

package
v0.0.0-...-bee9f94 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2022 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoWorkflowToken error = 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 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