Documentation ¶
Index ¶
- Variables
- func Encode(spec Spec, pretty bool) (string, error)
- func Persist(path string, spec Spec) error
- func Update(path string, f func(Spec) Spec) error
- type BuildData
- type CI
- type PushData
- type Repository
- type Shuttle
- type SnykCodeData
- type SnykDockerData
- type Spec
- type Stage
- type StageID
- type TestData
- type TestResult
- type VulnerabilityResult
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrFileNotFound indicates that an artifact was not found. ErrFileNotFound = errors.New("file not found") // ErrNotParsable indicates that an artifact could not be parsed against the // artifact specification. ErrNotParsable = errors.New("artifact not parsable") // ErrUnknownFields indicates that an artifact contains an unknown field. ErrUnknownFields = errors.New("artifact contains unknown fields") )
Functions ¶
Types ¶
type Repository ¶
type Repository struct { Branch string `json:"branch,omitempty"` SHA string `json:"sha,omitempty"` AuthorName string `json:"authorName,omitempty"` AuthorEmail string `json:"authorEmail,omitempty"` CommitterName string `json:"committerName,omitempty"` CommitterEmail string `json:"committerEmail,omitempty"` Message string `json:"message,omitempty"` Name string `json:"name,omitempty"` URL string `json:"url,omitempty"` Provider string `json:"provider,omitempty"` }
type Shuttle ¶
type Shuttle struct { Plan Repository `json:"plan,omitempty"` ShuttleVersion string `json:"shuttleVersion,omitempty"` }
type SnykCodeData ¶
type SnykCodeData struct { SnykVersion string `json:"snykVersion,omitempty"` URL string `json:"url,omitempty"` Language string `json:"language,omitempty"` Vulnerabilities VulnerabilityResult `json:"vulnerabilities,omitempty"` }
type SnykDockerData ¶
type SnykDockerData struct { Tag string `json:"tag,omitempty"` SnykVersion string `json:"snykVersion,omitempty"` URL string `json:"url,omitempty"` BaseImage string `json:"baseImage,omitempty"` Vulnerabilities VulnerabilityResult `json:"vulnerabilities,omitempty"` }
type Spec ¶
type Spec struct { ID string `json:"id,omitempty"` Service string `json:"service,omitempty"` Namespace string `json:"namespace,omitempty"` Application Repository `json:"application,omitempty"` CI CI `json:"ci,omitempty"` Squad string `json:"squad,omitempty"` Shuttle Shuttle `json:"shuttle,omitempty"` Stages []Stage `json:"stages,omitempty"` }
type Stage ¶
type Stage struct { ID StageID `json:"id,omitempty"` Name string `json:"name,omitempty"` Data interface{} `json:"data,omitempty"` }
func (*Stage) UnmarshalJSON ¶ added in v0.12.6
UnmarshalJSON implements a custom JSON unmarshal method that sets the concrete Data types for each stage type.
type TestData ¶
type TestData struct { URL string `json:"url,omitempty"` Results TestResult `json:"results,omitempty"` }
type TestResult ¶
type VulnerabilityResult ¶
Click to show internal directories.
Click to hide internal directories.