Skip to content

Commit

Permalink
Watchdog field documentation
Browse files Browse the repository at this point in the history
Signed-off-by: David Vossel <[email protected]>
  • Loading branch information
davidvossel committed Nov 7, 2017
1 parent 42e8d1e commit 8d41e5b
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 2 deletions.
20 changes: 20 additions & 0 deletions api/openapi-spec/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -1617,6 +1617,9 @@
"items": {
"$ref": "#/definitions/v1.Video"
}
},
"watchdog": {
"$ref": "#/definitions/v1.Watchdog"
}
}
},
Expand Down Expand Up @@ -2864,6 +2867,23 @@
"$ref": "#/definitions/v1.ListMeta"
}
}
},
"v1.Watchdog": {
"description": "Hardware watchdog device",
"required": [
"model",
"action"
],
"properties": {
"action": {
"description": "The action to take. poweroff, reset, shutdown, pause, dump.",
"type": "string"
},
"model": {
"description": "Defines what watchdog model to use, typically 'i6300esb'",
"type": "string"
}
}
}
}
}
5 changes: 4 additions & 1 deletion pkg/api/v1/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -343,8 +343,11 @@ type Ballooning struct {
type RandomGenerator struct {
}

// Hardware watchdog device
type Watchdog struct {
Model string `json:"model"`
// Defines what watchdog model to use, typically 'i6300esb'
Model string `json:"model"`
// The action to take. poweroff, reset, shutdown, pause, dump.
Action string `json:"action"`
}

Expand Down
6 changes: 5 additions & 1 deletion pkg/api/v1/schema_swagger_generated.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,5 +203,9 @@ func (RandomGenerator) SwaggerDoc() map[string]string {
}

func (Watchdog) SwaggerDoc() map[string]string {
return map[string]string{}
return map[string]string{
"": "Hardware watchdog device",
"model": "Defines what watchdog model to use, typically 'i6300esb'",
"action": "The action to take. poweroff, reset, shutdown, pause, dump.",
}
}

0 comments on commit 8d41e5b

Please sign in to comment.