-
Notifications
You must be signed in to change notification settings - Fork 0
/
environment.go
47 lines (40 loc) · 1.28 KB
/
environment.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
41
42
43
44
45
46
47
package models
import (
deployModels "github.com/equinor/radix-api/api/deployments/models"
"github.com/equinor/radix-api/api/secrets/models"
)
// Environment holds detail information about environment
// swagger:model Environment
type Environment struct {
// Name of the environment
//
// required: false
// example: prod
Name string `json:"name"`
// Status of the environment
// - Pending = Environment exists in Radix config, but not in cluster
// - Consistent = Environment exists in Radix config and in cluster
// - Orphan = Environment does not exist in Radix config, but exists in cluster
//
// required: false
// Enum: Pending,Consistent,Orphan
// example: Consistent
Status string `json:"status"`
// Deployments All deployments in environment
//
// required: false
Deployments []*deployModels.DeploymentSummary `json:"deployments,omitempty"`
// Secrets All secrets in environment
//
// required: false
Secrets []models.Secret `json:"secrets,omitempty"`
// ActiveDeployment The latest deployment in the environment
//
// required: false
ActiveDeployment *deployModels.Deployment `json:"activeDeployment,omitempty"`
// BranchMapping The branch mapped to this environment
//
// required: false
// example: master
BranchMapping string `json:"branchMapping,omitempty"`
}