Documentation
¶
Index ¶
- Constants
- type ArmadaApiConnectionDetails
- type JobInfo
- type JobStatus
- type JobSubmissionDescription
- type LoadTestSpecification
- type OpenIdConnectClientDetails
- type SubmissionDescription
- type WatchContext
- func (context *WatchContext) GetCurrentState() map[string]*JobInfo
- func (context *WatchContext) GetCurrentStateSummary() string
- func (context *WatchContext) GetJobInfo(jobId string) JobInfo
- func (context *WatchContext) GetNumberOfJobsInStates(states []JobStatus) int
- func (context *WatchContext) ProcessEvent(event api.Event)
Constants ¶
View Source
const ( Submitted = "Submitted" Queued = "Queued" Leased = "Leased" Pending = "Pending" Running = "Running" Succeeded = "Succeeded" Failed = "Failed" Cancelled = "Cancelled" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArmadaApiConnectionDetails ¶
type ArmadaApiConnectionDetails struct { ArmadaUrl string Credentials common.LoginCredentials OpenIdConnect OpenIdConnectClientDetails }
type LoadTestSpecification ¶
type LoadTestSpecification struct {
Submissions []*SubmissionDescription
}
type SubmissionDescription ¶
type WatchContext ¶ added in v0.0.2
type WatchContext struct {
// contains filtered or unexported fields
}
WatchContext keeps track of the current state when processing a stream of events It is not threadsafe and is expected to only ever be used in a single thread
func NewWatchContext ¶ added in v0.0.2
func NewWatchContext() *WatchContext
func (*WatchContext) GetCurrentState ¶ added in v0.0.2
func (context *WatchContext) GetCurrentState() map[string]*JobInfo
func (*WatchContext) GetCurrentStateSummary ¶ added in v0.0.2
func (context *WatchContext) GetCurrentStateSummary() string
func (*WatchContext) GetJobInfo ¶ added in v0.0.2
func (context *WatchContext) GetJobInfo(jobId string) JobInfo
func (*WatchContext) GetNumberOfJobsInStates ¶ added in v0.0.2
func (context *WatchContext) GetNumberOfJobsInStates(states []JobStatus) int
func (*WatchContext) ProcessEvent ¶ added in v0.0.2
func (context *WatchContext) ProcessEvent(event api.Event)
Click to show internal directories.
Click to hide internal directories.