Documentation ¶
Index ¶
- Constants
- func NewCmdStatus() *cobra.Command
- func PrintRunningStatus(s *aggregation.Status, start time.Time) error
- type PrintablePluginStatus
- type PrintableStatus
- type StatusInput
- 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 ( DefaultStatusIntervalSeconds = 10 StatusInterval = time.Second * 10 StatusRetryLimit = 10 )
Variables ¶
This section is empty.
Functions ¶
func NewCmdStatus ¶
func PrintRunningStatus ¶
func PrintRunningStatus(s *aggregation.Status, start time.Time) error
Types ¶
type PrintablePluginStatus ¶
type PrintableStatus ¶
type PrintableStatus struct { GlobalStatus string CurrentTime string ElapsedTime string PluginStatuses []PrintablePluginStatus }
type StatusInput ¶ added in v0.5.0
type StatusOptions ¶
type StatusOptions struct { StartTime time.Time Latest *aggregation.Status // contains filtered or unexported fields }
StatusOptions is the interface to store input options to interface with Status command.
func NewStatusOptions ¶
func NewStatusOptions(in *StatusInput) *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.