domain

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

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 JobInfo added in v0.0.2

type JobInfo struct {
	Status JobStatus
	Job    *api.Job
}

type JobStatus added in v0.0.2

type JobStatus string

type JobSubmissionDescription

type JobSubmissionDescription struct {
	Name  string
	Count int
	Spec  *v1.PodSpec
}

type LoadTestSpecification

type LoadTestSpecification struct {
	Submissions []*SubmissionDescription
}

type OpenIdConnectClientDetails

type OpenIdConnectClientDetails struct {
	ProviderUrl string
	ClientId    string
	LocalPort   uint16
	Scopes      []string

	Username string
	Password string
}

type SubmissionDescription

type SubmissionDescription struct {
	Queue               string
	QueuePrefix         string
	JobSetPrefix        string
	Count               int
	QueuePriorityFactor float64
	Jobs                []*JobSubmissionDescription
}

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)

Jump to

Keyboard shortcuts

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