state

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PersistStateToFile

func PersistStateToFile(stateFile string, state ActionStateContext)

Types

type ActionArtifact

type ActionArtifact struct {
	BuildID       string             `json:"build_id"`
	JobID         string             `json:"job_id"`
	Module        string             `json:"module"`
	Type          ActionArtifactType `json:"type"`
	Name          string             `json:"name"`
	Format        string             `json:"format"`
	FormatVersion string             `json:"format_version"`
}

ActionArtifact contains information about generated artifacts

type ActionArtifactType

type ActionArtifactType string
const (
	ActionArtifactTypeBinary ActionArtifactType = "binary"
	ActionArtifactTypeReport ActionArtifactType = "report"
)

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"`
}

ActionStateContext holds state information about executed actions / results (ie. generated artifacts)

func GetStateFromFile

func GetStateFromFile(stateFile string) ActionStateContext

Jump to

Keyboard shortcuts

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