Documentation ¶
Index ¶
- Constants
- func NewCmdStatus() *cobra.Command
- func PrintRunningStatus(s *aggregation.Status) error
- type PrintablePluginStatus
- type PrintableStatus
- type StatusOptions
- func (s *StatusOptions) GetStatus() string
- func (s *StatusOptions) GetStatusForPlugin(name string) *aggregation.PluginStatus
- func (s *StatusOptions) PreRunCheck(kclient kubernetes.Interface) error
- func (s *StatusOptions) Print(cmd *cobra.Command, sclient sonobuoyclient.Interface) error
- func (s *StatusOptions) Update(sclient sonobuoyclient.Interface) error
- func (s *StatusOptions) WaitForStatusReport(ctx context.Context, sclient sonobuoyclient.Interface) error
Constants ¶
View Source
const ( StatusInterval = time.Second * 10 StatusRetryLimit = 10 )
Variables ¶
This section is empty.
Functions ¶
func NewCmdStatus ¶
func PrintRunningStatus ¶
func PrintRunningStatus(s *aggregation.Status) error
Types ¶
type PrintablePluginStatus ¶
type PrintableStatus ¶
type PrintableStatus struct { GlobalStatus string CurrentTime string PluginStatuses []PrintablePluginStatus }
type StatusOptions ¶
type StatusOptions struct { Latest *aggregation.Status // contains filtered or unexported fields }
func NewStatusOptions ¶
func NewStatusOptions(watch bool) *StatusOptions
func (*StatusOptions) GetStatus ¶
func (s *StatusOptions) GetStatus() string
GetStatus returns the latest aggregator status if there is one, otherwise empty string.
func (*StatusOptions) GetStatusForPlugin ¶
func (s *StatusOptions) GetStatusForPlugin(name string) *aggregation.PluginStatus
GetStatusForPlugin will get a plugin's status from the state saved in StatusOptions
func (*StatusOptions) PreRunCheck ¶
func (s *StatusOptions) PreRunCheck(kclient kubernetes.Interface) error
func (*StatusOptions) Print ¶
func (s *StatusOptions) Print(cmd *cobra.Command, sclient sonobuoyclient.Interface) error
func (*StatusOptions) Update ¶
func (s *StatusOptions) Update(sclient sonobuoyclient.Interface) error
Update the Sonobuoy state saved in StatusOptions
func (*StatusOptions) WaitForStatusReport ¶
func (s *StatusOptions) WaitForStatusReport(ctx context.Context, sclient sonobuoyclient.Interface) error
WaitForStatusReport will block until either context is canceled, status is reported, or retry limit reach. An error will not result in immediate failure and will be retried.
Click to show internal directories.
Click to hide internal directories.