Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WriteStateFile ¶
func WriteStateFile(stateFile string, state ActionStateContext) error
Types ¶
type ActionArtifact ¶
type ActionArtifact struct {
BuildID string `json:"build_id"`
JobID string `json:"job_id"`
StepSlug string `json:"step_slug"`
ArtifactID string `json:"id"`
Module string `json:"module"`
Type string `json:"type"`
Name string `json:"name"`
Path string `json:"path"`
Format string `json:"format"`
FormatVersion string `json:"format_version"`
SHA256 string `json:"sha256"`
}
ActionArtifact contains information about generated artifacts
type ActionStateContext ¶
type ActionStateContext struct {
// Version of the serialized action state
Version int `json:"version"`
// Modules contains the project modules
Modules []*analyzerapi.ProjectModule
// Artifacts
Artifacts map[string]ActionArtifact `json:"artifacts"`
// Steps holds a list of all steps that were part of the pipeline
AuditLog []AuditEvents `json:"audit_events"`
}
ActionStateContext holds state information about executed actions / results (ie. generated artifacts)
func GetStateFromDirectory ¶
func GetStateFromDirectory(stateDirectory string) ActionStateContext
func GetStateFromFile ¶
func GetStateFromFile(stateFile string) ActionStateContext
func MergeStates ¶
func MergeStates(state1 ActionStateContext, state2 ActionStateContext) ActionStateContext
func ReadStateFile ¶
func ReadStateFile(stateFile string) (ActionStateContext, error)
Click to show internal directories.
Click to hide internal directories.