Documentation ¶
Overview ¶
This file contains common functions that are shared in the lab package
Index ¶
- Variables
- func Execute(initSkipped bool)
- func MapLabels(rn string, labelTerms []string) ([]string, error)
- type BZCustomFields
- type BZRule
- type BZRuleActionJson
- type BZRuleActionJsonFlagTypes
- type BZRuleActionJsonFlagTypesRelease
- type BZRuleDetails
- type BZRuleError
- type BZRuleMatchJson
- type BZRuleMatchStatusAndName
- type BZRuleMatchWordAndValues
- type BZRuleQuery
- type BZRuleResult
- type BZdata
- type BZdataCF
- type NameAndEmail
- type Pager
- type SubSystem
- type SubSystems
Constants ¶
This section is empty.
Variables ¶
View Source
var BLUE = color.New(color.BgBlue).SprintFunc()
View Source
var (
CommandPrefix string
)
View Source
var Version string
Functions ¶
Types ¶
type BZCustomFields ¶
type BZCustomFields struct {
Bugs []BZdataCF `json:"bugs"`
}
type BZRule ¶
type BZRule struct { Error BZRuleError `json:"error,omitempty"` Id string `json:"id,omitempty"` Result []BZRuleResult `json:"result,omitempty"` }
type BZRuleActionJson ¶
type BZRuleActionJson struct {
FlagTypes BZRuleActionJsonFlagTypes `json:"flag_types,omitempty"`
}
type BZRuleActionJsonFlagTypes ¶
type BZRuleActionJsonFlagTypes struct {
Release BZRuleActionJsonFlagTypesRelease `json:"release,omitempty"`
}
type BZRuleDetails ¶
type BZRuleDetails struct { MatchJson BZRuleMatchJson `json:"match_json,omitempty"` ActionJson BZRuleActionJson `json:"action_json,omitempty"` }
type BZRuleError ¶
type BZRuleMatchJson ¶
type BZRuleMatchJson struct { BugStatus BZRuleMatchWordAndValues `json:"bug_status,omitempty"` InternalTargetMilestone BZRuleMatchWordAndValues `json:"cf_internal_target_milestone,omitempty"` InternalTargetRelease BZRuleMatchWordAndValues `json:"cf_internal_target_release,omitempty"` Classification BZRuleMatchWordAndValues `json:"classification,omitempty"` Product BZRuleMatchWordAndValues `json:"product,omitempty"` FlagTypes []BZRuleMatchStatusAndName `json:"flag_types,omitempty"` }
type BZRuleQuery ¶
type BZRuleResult ¶
type BZRuleResult struct { Usage_7days int `json:"usage_7days,omitempty"` Usage_24hrs int `json:"usage24hrs,omitempty"` Definition string `json:"definition,omitempty"` Owners []string `json:"owners,omitempty"` BZRuleGroupId int `json:"rule_group_id,omitempty"` UseSinceChange int `json:"use_since_change,omitempty"` MinorUpdate bool `json:"minor_update,omitempty"` Id int `json:"id,omitempty"` Name string `json:"name,omitempty"` LastModified string `json:"last_modified,omitempty"` Description string `json:"description,omitempty"` Details BZRuleDetails `json:"details,omitempty"` IsPeriodic bool `json:"is_periodic,omitempty"` IsActive bool `json:"is_active,omitempty"` LastUsed string `json:"last_used,omitempty"` // contains filtered or unexported fields }
type BZdataCF ¶
type BZdataCF struct { Deadline string `json:"cf_deadline,omitempty"` // use bzData.deadline, unset is "" DevTM string `json:"cf_dev_target_milestone,omitempty"` // unset is "" ITM string `json:"cf_internal_target_milestone,omitempty"` // unset is "" ZTR string `json:"cf_zstream_target_release,omitempty"` // unset is "" ITR string `json:"cf_internal_target_release,omitempty"` // unset is "---" Verified []string `json:"cf_verified,omitempty"` // unset is "" }
type NameAndEmail ¶
PRARIT: TODO need to refactor documentation/scripts to provide this as a package
type Pager ¶
type Pager struct {
// contains filtered or unexported fields
}
type SubSystem ¶
type SubSystem struct { Subsystem string `subsystem` Labels struct { Name string `name` ReadyForMergeDeps []string `readyForMergeDeps` NewLabels string `newLabels` EmailLabel string `emailLabel` } Status string `status` Maintainers []NameAndEmail `maintainers` Reviewers []NameAndEmail `reviewers` Paths struct { Includes []string IncludeRegexes []string Excludes []string } Scm string `scm` MailingList string `mailingList` }
type SubSystems ¶
type SubSystems struct {
SubSys []SubSystem `subsystems`
}
Click to show internal directories.
Click to hide internal directories.