-
Notifications
You must be signed in to change notification settings - Fork 19
/
agent_types.go
40 lines (29 loc) · 1.22 KB
/
agent_types.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
package v1
// AgentPhase are valid statuses of a Porter agent job
// that is managing a change to a Porter resource.
type AgentPhase string
const (
// PhaseUnknown means that we don't know what porter is doing yet.
PhaseUnknown AgentPhase = "Unknown"
// PhasePending means that Porter's execution is pending.
PhasePending AgentPhase = "Pending"
// PhaseRunning indicates that Porter is running.
PhaseRunning AgentPhase = "Running"
// PhaseSucceeded means that calling Porter succeeded.
PhaseSucceeded AgentPhase = "Succeeded"
// PhaseFailed means that calling Porter failed.
PhaseFailed AgentPhase = "Failed"
)
// AgentConditionType are valid conditions of a Porter agent job
// that is managing a change to a Porter resource.
type AgentConditionType string
const (
// ConditionScheduled means that the Porter agent has been scheduled.
ConditionScheduled AgentConditionType = "Scheduled"
// ConditionStarted means that the Porter agent has started.
ConditionStarted AgentConditionType = "Started"
// ConditionComplete means the Porter agent has completed successfully.
ConditionComplete AgentConditionType = "Completed"
// ConditionFailed means the Porter agent failed.
ConditionFailed AgentConditionType = "Failed"
)