Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Assertion ¶
type Assertion struct {
Group string `json:"group,omitempty" yaml:"group,omitempty"`
Metric string `json:"metric" yaml:"metric"`
Selector string `json:"selector,omitempty" yaml:"selector,omitempty"`
Condition string `json:"condition" yaml:"condition"`
Expected float32 `json:"expected" yaml:"expected"`
}
type Assertions ¶
type Assertions []Assertion
func NewAssertionsFromFile ¶
func NewAssertionsFromFile(path string) (a *Assertions, err error)
func NewAssertionsFromYAML ¶
func NewAssertionsFromYAML(data []byte) (a *Assertions, err error)
func (*Assertions) Path ¶
func (a *Assertions) Path() string
func (*Assertions) ToFile ¶
func (a *Assertions) ToFile(path string) error
func (*Assertions) ToJSON ¶
func (a *Assertions) ToJSON() ([]byte, error)
func (*Assertions) ToYAML ¶
func (a *Assertions) ToYAML() ([]byte, error)
type Build ¶
type Build struct {
ID int `json:"id,omitempty" yaml:"id,omitempty"`
CreatedAt string `json:"created_at,omitempty" yaml:"created_at,omitempty"`
Env string `json:"env" yaml:"env"`
Label string `json:"label,omitempty" yaml:"label,omitempty"`
Description string `json:"description,omitempty" yaml:"description,omitempty"`
Scm *ScmInfo `json:"scm,omitempty" yaml:"scm,omitempty"`
Links []Link `json:"links" yaml:"links"`
Passed *bool `json:"passed,omitempty" yaml:"passed,omitempty"`
}
func NewBuildFromFile ¶
func NewBuildFromYAML ¶
type Project ¶
type Project struct {
ID int `json:"id,omitempty"`
Alias string `json:"alias"`
Name string `json:"name"`
}
func NewProjectFromJSON ¶
type Report ¶
type Report struct {
ID int `json:"id,omitempty" yaml:"id,omitempty"`
CreatedAt string `json:"created_at,omitempty" yaml:"created_at,omitempty"`
Label string `json:"label,omitempty" yaml:"label,omitempty"`
Description string `json:"description,omitempty" yaml:"description,omitempty"`
Scm *ScmInfo `json:"scm,omitempty" yaml:"scm,omitempty"`
Links []Link `json:"links" yaml:"links"`
Passed *bool `json:"passed,omitempty" yaml:"passed,omitempty"`
}
func NewReportFromFile ¶
func NewReportFromJSON ¶
func NewReportFromYAML ¶
Click to show internal directories.
Click to hide internal directories.