Documentation
¶
Index ¶
Constants ¶
View Source
const ( OutputVersion = "1" CLIName = "protoss" )
View Source
const ( ExitSuccess = 0 ExitInvalid = 1 ExitUnsupported = 2 ExitInvocation = 3 ExitIO = 4 ExitInternal = 5 )
Variables ¶
View Source
var CLIVersion = "0.0.0-dev"
CLIVersion may be replaced at build time with -ldflags once releases are approved.
Functions ¶
This section is empty.
Types ¶
type Case ¶
type Case struct {
ID string `json:"id"`
ExpectedStatus string `json:"expectedStatus"`
ActualStatus string `json:"actualStatus"`
Status string `json:"status"`
ExpectedDiagnostic *ExpectedDiagnostic `json:"expectedDiagnostic"`
ActualDiagnostics []Diagnostic `json:"actualDiagnostics"`
DiagnosticsTruncated bool `json:"diagnosticsTruncated"`
}
type Diagnostic ¶
type Diagnostic struct {
Code string `json:"code"`
CodeStability string `json:"codeStability"`
Layer string `json:"layer"`
Severity string `json:"severity"`
InstancePath string `json:"instancePath"`
Message string `json:"message"`
}
func ErrorDiagnostic ¶
func ErrorDiagnostic(code, layer, instancePath, message string) Diagnostic
type ExpectedDiagnostic ¶
type Extensions ¶
type OperationalError ¶
type OperationalError struct {
OutputVersion string `json:"outputVersion"`
Tool Tool `json:"tool"`
Command string `json:"command"`
Status string `json:"status"`
Diagnostics []Diagnostic `json:"diagnostics"`
}
func NewOperationalError ¶
func NewOperationalError(command, code, message string) OperationalError
func NewOperationalResult ¶
func NewOperationalResult(command, status, code, message string) OperationalError
type Schema ¶
type Schema struct {
OutputVersion string `json:"outputVersion"`
Tool Tool `json:"tool"`
Command string `json:"command"`
Status string `json:"status"`
SpecVersion string `json:"specVersion"`
SchemaID string `json:"schemaId"`
Bytes int `json:"bytes"`
SHA256 string `json:"sha256"`
Provenance string `json:"provenance"`
WrittenTo string `json:"writtenTo,omitempty"`
}
type Suite ¶
type Suite struct {
OutputVersion string `json:"outputVersion"`
Tool Tool `json:"tool"`
Command string `json:"command"`
Status string `json:"status"`
SpecVersion string `json:"specVersion"`
SuiteVersion string `json:"suiteVersion"`
CorpusDigest string `json:"corpusDigest"`
CorpusDigestAlgorithm string `json:"corpusDigestAlgorithm"`
Provenance string `json:"provenance"`
Summary SuiteSummary `json:"summary"`
Cases []Case `json:"cases"`
Diagnostics []Diagnostic `json:"diagnostics"`
DiagnosticsTruncated bool `json:"diagnosticsTruncated"`
}
type SuiteSummary ¶
type Tool ¶
func CurrentTool ¶
func CurrentTool() Tool
type Validation ¶
type Validation struct {
OutputVersion string `json:"outputVersion"`
Tool Tool `json:"tool"`
Command string `json:"command"`
Status string `json:"status"`
SpecVersion string `json:"specVersion,omitempty"`
ValidationScope ValidationScope `json:"validationScope"`
Layers []Layer `json:"layers"`
Extensions Extensions `json:"extensions"`
Diagnostics []Diagnostic `json:"diagnostics"`
DiagnosticsTruncated bool `json:"diagnosticsTruncated"`
Artifact *Artifact `json:"artifact,omitempty"`
}
func NewValidation ¶
func NewValidation(through string) Validation
type ValidationScope ¶
Click to show internal directories.
Click to hide internal directories.