Documentation ¶
Index ¶
- type BuildSystem
- type GCB
- func (gcb *GCB) ArtifactStores() []store.Store
- func (gcb *GCB) BuildPredicate(r *run.Run, draft *attestation.SLSAPredicate) (predicate *attestation.SLSAPredicate, err error)
- func (gcb *GCB) GetRun(specURL string) (*run.Run, error)
- func (gcb *GCB) RefreshRun(r *run.Run) error
- func (gcb *GCB) TriggerDetails(triggerID string) (repoURL string, err error)
- type GitHubWorkflow
- func (ghw *GitHubWorkflow) ArtifactStores() []store.Store
- func (ghw *GitHubWorkflow) BuildPredicate(r *run.Run, draft *attestation.SLSAPredicate) (predicate *attestation.SLSAPredicate, err error)
- func (ghw *GitHubWorkflow) GetRun(specURL string) (*run.Run, error)
- func (ghw *GitHubWorkflow) RefreshRun(r *run.Run) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuildSystem ¶
type BuildSystem interface { GetRun(string) (*run.Run, error) RefreshRun(*run.Run) error BuildPredicate(*run.Run, *attestation.SLSAPredicate) (*attestation.SLSAPredicate, error) ArtifactStores() []store.Store }
BuildSystemDriver is an interface to a type that can query a buildsystem for data required to build a provenance attestation
func NewFromMoniker ¶
func NewFromMoniker(moniker string) (BuildSystem, error)
func NewFromSpecURL ¶
func NewFromSpecURL(specURL string) (BuildSystem, error)
type GCB ¶
func (*GCB) ArtifactStores ¶
ArtifactStores returns the native artifact store of cloud build
func (*GCB) BuildPredicate ¶
func (gcb *GCB) BuildPredicate(r *run.Run, draft *attestation.SLSAPredicate) (predicate *attestation.SLSAPredicate, err error)
BuildPredicate returns a SLSA predicate populated with the GCB run data as recommended by the SLSA 0.2 spec
func (*GCB) RefreshRun ¶
RefreshRun queries the API from the build system and updates the run metadata.
type GitHubWorkflow ¶
func (*GitHubWorkflow) ArtifactStores ¶
func (ghw *GitHubWorkflow) ArtifactStores() []store.Store
ArtifactStores returns the native artifact store of github actions
func (*GitHubWorkflow) BuildPredicate ¶
func (ghw *GitHubWorkflow) BuildPredicate( r *run.Run, draft *attestation.SLSAPredicate, ) (predicate *attestation.SLSAPredicate, err error)
BuildPredicate builds a predicate from the run data
func (*GitHubWorkflow) RefreshRun ¶
func (ghw *GitHubWorkflow) RefreshRun(r *run.Run) error
RefreshRun queries the github API to get the latest data
Click to show internal directories.
Click to hide internal directories.