Documentation ¶
Index ¶
Constants ¶
View Source
const ( JSON = "json" YAML = "yaml" Summary = "summary" )
Possible formats the report can be written as.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Report ¶
type Report struct { Success bool `json:"success"` FilePaths []Input `json:"filepaths"` Policy ecc.EnterpriseContractPolicySpec `json:"policy"` EcVersion string `json:"ec-version"` Data any `json:"-"` EffectiveTime time.Time `json:"effective-time"` PolicyInput [][]byte `json:"-"` // contains filtered or unexported fields }
type TestReport ¶
type TestReport struct { Timestamp string `json:"timestamp"` Namespace string `json:"namespace"` Successes int `json:"successes"` Failures int `json:"failures"` Warnings int `json:"warnings"` Result string `json:"result"` Note string `json:"note,omitempty"` }
TestReport represents the standardized TEST_OUTPUT format. The `Namespace` attribute is required for the appstudio results API. However, it is always an empty string from the ec-cli as a way to indicate all namespaces were used.
Click to show internal directories.
Click to hide internal directories.