Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CCTray ¶
type CCTray struct {
Projects []CCTrayProject `xml:"Project"`
}
func ParseCCTray ¶
ParseCCTray expects the cctray.xml contents as input.
type CCTrayCache ¶
type CCTrayCache struct {
// contains filtered or unexported fields
}
CCTrayCache keeps a cache of CCTray.
func NewCCTrayCache ¶
func NewCCTrayCache(url, user, pass string) *CCTrayCache
type CCTrayProject ¶
type CCTrayProject struct {
Name string `xml:"name,attr"`
Activity string `xml:"activity,attr"`
LastResult string `xml:"lastBuildStatus,attr"`
URL string `xml:"webUrl,attr"`
// contains filtered or unexported fields
}
func (CCTrayProject) Instance ¶
func (p CCTrayProject) Instance() int64
Instance number parsed from webURL attribute. Returns -1 on errors.
func (CCTrayProject) Pipeline ¶
func (p CCTrayProject) Pipeline() string
Pipeline extracted from name attribute.
func (CCTrayProject) Stage ¶
func (p CCTrayProject) Stage() string
Stage extracted from name attribute.
type Config ¶
type Config struct {
Namespace string
Registerer prometheus.Registerer
GocdURL string
GocdUser string
GocdPass string
}
Config for the Scraper.
Click to show internal directories.
Click to hide internal directories.