Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // DownloadingReport specific flag for Smart Proxy report downloading process. DownloadingReport = Operation{Name: "DownloadingReport"} // Uploading specific flag for summary related to uploading process. Uploading = Operation{Name: "Uploading"} // GatheringReport specific for gathering the report from the cluster GatheringReport = Operation{Name: "GatheringReport"} // PullingSCACerts is specific operation for pulling the SCA certs data from the OCM API PullingSCACerts = Operation{Name: "PullingSCACerts"} // PullingClusterTransfer is an operator for pulling ClusterTransfer object from the OCM API endpoint PullingClusterTransfer = Operation{Name: "PullingClusterTransfer"} // RemoteConfigurationStatus is an operation of reading the remote configuration (provided by the conditional // gatherer endpoint) RemoteConfigurationStatus = Operation{Name: "RemoteConfigurationStatus"} )
Functions ¶
This section is empty.
Types ¶
type Operation ¶
type Operation struct { Name OperationName HTTPStatusCode int }
type OperationName ¶
type OperationName string
type Simple ¶
type Simple struct {
// contains filtered or unexported fields
}
Simple represents the status of a given part of the operator
func (*Simple) CurrentStatus ¶
CurrentStatus retrives the status summary in a thread-safe way
func (*Simple) UpdateStatus ¶
UpdateStatus updates the status, keeps track how long a status have been in effect
type StatusController ¶
type StatusController interface { CurrentStatus() (summary Summary, ready bool) UpdateStatus(summary Summary) Name() string }
func New ¶
func New(name string) StatusController
Click to show internal directories.
Click to hide internal directories.