Skip to content

Commit

Permalink
api/v1: add not-ready for endpoint state
Browse files Browse the repository at this point in the history
Signed-off-by: André Martins <[email protected]>
  • Loading branch information
aanm committed Mar 20, 2017
1 parent 9c77483 commit 8fe216f
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 6 deletions.
2 changes: 1 addition & 1 deletion api/v1/models/daemon_configuration_response.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"github.com/go-openapi/swag"
)

// DaemonConfigurationResponse Response to a daemon configuration request. Contains the adddresing
// DaemonConfigurationResponse Response to a daemon configuration request. Contains the addressing
// information and configuration settings.
//
// swagger:model DaemonConfigurationResponse
Expand Down
4 changes: 3 additions & 1 deletion api/v1/models/endpoint_state.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ const (
EndpointStateDisconnected EndpointState = "disconnected"
// EndpointStateWaitingForIdentity captures enum value "waiting-for-identity"
EndpointStateWaitingForIdentity EndpointState = "waiting-for-identity"
// EndpointStateNotReady captures enum value "not-ready"
EndpointStateNotReady EndpointState = "not-ready"
// EndpointStateReady captures enum value "ready"
EndpointStateReady EndpointState = "ready"
)
Expand All @@ -32,7 +34,7 @@ var endpointStateEnum []interface{}

func init() {
var res []EndpointState
if err := json.Unmarshal([]byte(`["creating","disconnected","waiting-for-identity","ready"]`), &res); err != nil {
if err := json.Unmarshal([]byte(`["creating","disconnected","waiting-for-identity","not-ready","ready"]`), &res); err != nil {
panic(err)
}
for _, v := range res {
Expand Down
2 changes: 1 addition & 1 deletion api/v1/models/identity_context.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"github.com/go-openapi/errors"
)

// IdentityContext Context describing a pair of source and destination identies
// IdentityContext Context describing a pair of source and destination identity
// swagger:model IdentityContext
type IdentityContext struct {

Expand Down
1 change: 1 addition & 0 deletions api/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -726,6 +726,7 @@ definitions:
- creating
- disconnected
- waiting-for-identity
- not-ready
- ready
EndpointStatusChange:
description: Indication of a change of status
Expand Down
9 changes: 6 additions & 3 deletions api/v1/server/embedded_spec.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ package server
// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command

import "encoding/json"
import (
"encoding/json"
)

// SwaggerJSON embedded version of the swagger document used at generation time
var SwaggerJSON json.RawMessage
Expand Down Expand Up @@ -874,7 +876,7 @@ func init() {
}
},
"DaemonConfigurationResponse": {
"description": "Response to a daemon configuration request. Contains the adddresing\ninformation and configuration settings.\n",
"description": "Response to a daemon configuration request. Contains the addressing\ninformation and configuration settings.\n",
"type": "object",
"properties": {
"addressing": {
Expand Down Expand Up @@ -1041,6 +1043,7 @@ func init() {
"creating",
"disconnected",
"waiting-for-identity",
"not-ready",
"ready"
]
},
Expand Down Expand Up @@ -1141,7 +1144,7 @@ func init() {
}
},
"IdentityContext": {
"description": "Context describing a pair of source and destination identies",
"description": "Context describing a pair of source and destination identity",
"type": "object",
"properties": {
"from": {
Expand Down

0 comments on commit 8fe216f

Please sign in to comment.