-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathenvironment.go
More file actions
34 lines (26 loc) · 1.08 KB
/
environment.go
File metadata and controls
34 lines (26 loc) · 1.08 KB
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
package webhooks
import "time"
type EnvironmentType string
const (
// EnvironmentTypeProduction represents production environments.
EnvironmentTypeProduction EnvironmentType = "production"
// EnvironmentTypeDevelopment represents development environments,
// meaning a cloud-hosted, persistent environment that is not production.
EnvironmentTypeDevelopment EnvironmentType = "development"
// EnvironmentTypePreview represents preview environments,
// meaning an ephemeral development environment for a specific Pull Request.
EnvironmentTypePreview EnvironmentType = "preview"
)
// Environment describes an Encore application environment.
type Environment struct {
// ID is a unique id for this environment.
ID string `json:"id"`
// Name is the name of the environment.
Name string `json:"name"`
// Type is the type of the environment.
Type EnvironmentType `json:"type"`
// APIBaseURL is the base URL for making requests to this environment.
APIBaseURL string `json:"api_base_url"`
// CreatedAt is the time the environment was created.
CreatedAt time.Time `json:"created_at"`
}