Documentation
¶
Index ¶
- Constants
- func NewCmdStatus() *cobra.Command
- type PrintablePluginStatus
- type PrintableStatus
- type Status
- func (s *Status) GetSonobuoyClient() sonobuoyclient.Interface
- func (s *Status) GetStatus() string
- func (s *Status) GetStatusForPlugin(name string) *aggregation.PluginStatus
- func (s *Status) PreRunCheck() error
- func (s *Status) Print(cmd *cobra.Command) error
- func (s *Status) Update() error
- func (s *Status) WaitForStatusReport(ctx context.Context) error
- type StatusInput
Constants ¶
View Source
const ( DefaultStatusIntervalSeconds = 10 StatusInterval = time.Second * 10 StatusRetryLimit = 10 )
Variables ¶
This section is empty.
Functions ¶
func NewCmdStatus ¶
Types ¶
type PrintablePluginStatus ¶
type PrintableStatus ¶
type PrintableStatus struct {
GlobalStatus string
CurrentTime string
ElapsedTime string
PluginStatuses []PrintablePluginStatus
}
type Status ¶
type Status struct {
StartTime time.Time
Latest *aggregation.Status
// contains filtered or unexported fields
}
Status is the interface to store input options to interface with Status command.
func NewStatus ¶
func NewStatus(in *StatusInput) *Status
func (*Status) GetSonobuoyClient ¶
func (s *Status) GetSonobuoyClient() sonobuoyclient.Interface
func (*Status) GetStatus ¶
GetStatus returns the latest aggregator status if there is one, otherwise empty string.
func (*Status) GetStatusForPlugin ¶
func (s *Status) GetStatusForPlugin(name string) *aggregation.PluginStatus
GetStatusForPlugin will get a plugin's status from the state saved in Status.
func (*Status) PreRunCheck ¶
PreRunCheck will check if the validation environment is running.
type StatusInput ¶
type StatusInput struct {
Watch bool
IntervalSeconds int
// clients
KClient kubernetes.Interface
SClient sonobuoyclient.Interface
}
Click to show internal directories.
Click to hide internal directories.