Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDoctorCommand ¶
func NewDoctorCommand(clients *shared.ClientFactory) *cobra.Command
Types ¶
type DoctorHookJSON ¶
type DoctorHookJSON struct {
Versions []struct {
Name string `json:"name"`
Current string `json:"current"`
Message string `json:"message"`
Error struct {
Message string `json:"message"`
} `json:"error"`
} `json:"versions"`
}
DoctorHookJSON holds expected values from the doctor hook
type DoctorReport ¶
type DoctorReport struct {
Sections []Section
}
DoctorReport contains information about system statistics
func (DoctorReport) TotalErrors ¶
func (d DoctorReport) TotalErrors() int
TotalErrors returns the sum of all errors across sections
type Section ¶
type Section struct {
Label string
Value string
Subsections []Section
Errors []slackerror.Error
}
func (*Section) RenderLabel ¶
RenderLabel formats a label for use with optional values
Click to show internal directories.
Click to hide internal directories.