status

package
v0.6.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 6, 2025 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultStatusIntervalSeconds = 10
	StatusInterval               = time.Second * 10
	StatusRetryLimit             = 10
)

Variables

This section is empty.

Functions

func NewCmdStatus

func NewCmdStatus() *cobra.Command

Types

type PrintablePluginStatus

type PrintablePluginStatus struct {
	Name     string
	Status   string
	Result   string
	Progress string
	Message  string
}

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

func (s *Status) GetStatus() string

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

func (s *Status) PreRunCheck() error

PreRunCheck will check if the validation environment is running.

func (*Status) Print

func (s *Status) Print(cmd *cobra.Command) error

func (*Status) Update

func (s *Status) Update() error

Update the Sonobuoy state saved in Status

func (*Status) WaitForStatusReport

func (s *Status) WaitForStatusReport(ctx context.Context) 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.

type StatusInput

type StatusInput struct {
	Watch           bool
	IntervalSeconds int

	// clients
	KClient kubernetes.Interface
	SClient sonobuoyclient.Interface
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL