Skip to content

Commit cf6f660

Browse files
Merge pull request gophercloud#3329 from shiftstack/networking-status-const
networking: add constants for statuses
2 parents 40c0969 + eda8452 commit cf6f660

7 files changed

Lines changed: 61 additions & 0 deletions

File tree

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package apiversions
2+
3+
const (
4+
StatusCurrent = "CURRENT"
5+
StatusDeprecated = "DEPRECATED"
6+
StatusStable = "STABLE"
7+
)
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package floatingips
2+
3+
const (
4+
StatusActive = "ACTIVE"
5+
StatusDown = "DOWN"
6+
StatusError = "ERROR"
7+
)
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
package trunks
2+
3+
const (
4+
StatusActive = "ACTIVE"
5+
StatusBuild = "BUILD"
6+
StatusDegraded = "DEGRADED"
7+
StatusDown = "DOWN"
8+
StatusError = "ERROR"
9+
)
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
package services
2+
3+
const (
4+
StatusActive = "ACTIVE"
5+
StatusBuild = "BUILD"
6+
StatusDown = "DOWN"
7+
StatusError = "ERROR"
8+
StatusPendingCreate = "PENDING_CREATE"
9+
StatusPendingDelete = "PENDING_DELETE"
10+
StatusPendingUpdate = "PENDING_UPDATE"
11+
)
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
package siteconnections
2+
3+
const (
4+
StatusActive = "ACTIVE"
5+
StatusBuild = "BUILD"
6+
StatusDown = "DOWN"
7+
StatusError = "ERROR"
8+
StatusPendingCreate = "PENDING_CREATE"
9+
StatusPendingDelete = "PENDING_DELETE"
10+
StatusPendingUpdate = "PENDING_UPDATE"
11+
)
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
package networks
2+
3+
const (
4+
StatusActive = "ACTIVE"
5+
StatusBuild = "BUILD"
6+
StatusDown = "DOWN"
7+
StatusError = "ERROR"
8+
)
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
package ports
2+
3+
const (
4+
StatusActive = "ACTIVE"
5+
StatusBuild = "BUILD"
6+
StatusDown = "DOWN"
7+
StatusError = "ERROR"
8+
)

0 commit comments

Comments
 (0)