-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #73 from rightscale/IV-4475_add_rl10_docker_support
IV-4475 - Add RL10 Docker integration support
- Loading branch information
Showing
7 changed files
with
310 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
module Resources | ||
class DockerControl | ||
include Praxis::ResourceDefinition | ||
|
||
description 'Manipulate the Docker integration in RightLink 10' | ||
media_type 'text/plain' | ||
|
||
routing do | ||
prefix '/rll/docker/control' | ||
end | ||
|
||
action :show do | ||
description 'Show Docker integration features' | ||
routing { get '' } | ||
response :ok | ||
end | ||
|
||
action :update do | ||
description 'Enable/disable Docker integration features' | ||
routing { put '' } | ||
params do | ||
attribute :enable_docker, Attributor::String, required: false, values: ['none', 'tags', 'all'] | ||
attribute :docker_host, String, required: false | ||
end | ||
response :ok | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
96 changes: 96 additions & 0 deletions
96
rl10/docs/api/unversioned/resources/Resources-DockerControl.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
{ | ||
"description": "Manipulate the Docker integration in RightLink 10", | ||
"media_type": "Praxis-SimpleMediaType", | ||
"actions": [ | ||
{ | ||
"description": "Show Docker integration features", | ||
"name": "show", | ||
"metadata": { | ||
}, | ||
"urls": [ | ||
{ | ||
"verb": "GET", | ||
"path": "/rll/docker/control", | ||
"version": "n/a" | ||
} | ||
], | ||
"responses": { | ||
"ok": { | ||
"description": "Standard response for successful HTTP requests.", | ||
"status": 200, | ||
"headers": { | ||
}, | ||
"media_type": { | ||
"identifier": "text/plain" | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
"description": "Enable/disable Docker integration features", | ||
"name": "update", | ||
"metadata": { | ||
}, | ||
"urls": [ | ||
{ | ||
"verb": "PUT", | ||
"path": "/rll/docker/control", | ||
"version": "n/a" | ||
} | ||
], | ||
"params": { | ||
"type": { | ||
"name": "Struct", | ||
"id": null, | ||
"key": { | ||
"type": { | ||
"name": "Symbol", | ||
"id": "Attributor-Symbol" | ||
} | ||
}, | ||
"attributes": { | ||
"enable_docker": { | ||
"values": [ | ||
"none", | ||
"tags", | ||
"all" | ||
], | ||
"required": false, | ||
"type": { | ||
"name": "String", | ||
"id": "Attributor-String" | ||
}, | ||
"source": "query" | ||
}, | ||
"docker_host": { | ||
"required": false, | ||
"type": { | ||
"name": "String", | ||
"id": "Attributor-String" | ||
}, | ||
"source": "query" | ||
} | ||
} | ||
}, | ||
"example": { | ||
"enable_docker": "all", | ||
"docker_host": "specified" | ||
} | ||
}, | ||
"responses": { | ||
"ok": { | ||
"description": "Standard response for successful HTTP requests.", | ||
"status": 200, | ||
"headers": { | ||
}, | ||
"media_type": { | ||
"identifier": "text/plain" | ||
} | ||
} | ||
} | ||
} | ||
], | ||
"name": "Resources::DockerControl", | ||
"metadata": { | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters