Updated docs links in services.

pull/2/head
Kevan Ahlquist 9 years ago
parent f14e954a9b
commit abccb316f8

@ -2,7 +2,7 @@ angular.module('dockerui.services', ['ngResource'])
.factory('Container', function ($resource, Settings) { .factory('Container', function ($resource, Settings) {
'use strict'; 'use strict';
// Resource for interacting with the docker containers // Resource for interacting with the docker containers
// http://docs.docker.io/en/latest/api/docker_remote_api.html#containers // http://docs.docker.com/reference/api/docker_remote_api_<%= remoteApiVersion %>/#2-1-containers
return $resource(Settings.url + '/containers/:id/:action', { return $resource(Settings.url + '/containers/:id/:action', {
name: '@name' name: '@name'
}, { }, {
@ -23,6 +23,7 @@ angular.module('dockerui.services', ['ngResource'])
}) })
.factory('ContainerCommit', function ($resource, $http, Settings) { .factory('ContainerCommit', function ($resource, $http, Settings) {
'use strict'; 'use strict';
// http://docs.docker.com/reference/api/docker_remote_api_<%= remoteApiVersion %>/#create-a-new-image-from-a-container-s-changes
return { return {
commit: function (params, callback) { commit: function (params, callback) {
$http({ $http({
@ -40,6 +41,7 @@ angular.module('dockerui.services', ['ngResource'])
}) })
.factory('ContainerLogs', function ($resource, $http, Settings) { .factory('ContainerLogs', function ($resource, $http, Settings) {
'use strict'; 'use strict';
// http://docs.docker.com/reference/api/docker_remote_api_<%= remoteApiVersion %>/#get-container-logs
return { return {
get: function (id, params, callback) { get: function (id, params, callback) {
$http({ $http({
@ -59,6 +61,7 @@ angular.module('dockerui.services', ['ngResource'])
}) })
.factory('ContainerTop', function ($http, Settings) { .factory('ContainerTop', function ($http, Settings) {
'use strict'; 'use strict';
// http://docs.docker.com/reference/api/docker_remote_api_<%= remoteApiVersion %>/#list-processes-running-inside-a-container
return { return {
get: function (id, params, callback, errorCallback) { get: function (id, params, callback, errorCallback) {
$http({ $http({
@ -73,8 +76,7 @@ angular.module('dockerui.services', ['ngResource'])
}) })
.factory('Image', function ($resource, Settings) { .factory('Image', function ($resource, Settings) {
'use strict'; 'use strict';
// Resource for docker images // http://docs.docker.com/reference/api/docker_remote_api_<%= remoteApiVersion %>/#2-2-images
// http://docs.docker.io/en/latest/api/docker_remote_api.html#images
return $resource(Settings.url + '/images/:id/:action', {}, { return $resource(Settings.url + '/images/:id/:action', {}, {
query: {method: 'GET', params: {all: 0, action: 'json'}, isArray: true}, query: {method: 'GET', params: {all: 0, action: 'json'}, isArray: true},
get: {method: 'GET', params: {action: 'json'}}, get: {method: 'GET', params: {action: 'json'}},
@ -95,16 +97,14 @@ angular.module('dockerui.services', ['ngResource'])
}) })
.factory('Docker', function ($resource, Settings) { .factory('Docker', function ($resource, Settings) {
'use strict'; 'use strict';
// Information for docker // http://docs.docker.com/reference/api/docker_remote_api_<%= remoteApiVersion %>/#show-the-docker-version-information
// http://docs.docker.io/en/latest/api/docker_remote_api.html#display-system-wide-information
return $resource(Settings.url + '/version', {}, { return $resource(Settings.url + '/version', {}, {
get: {method: 'GET'} get: {method: 'GET'}
}); });
}) })
.factory('Auth', function ($resource, Settings) { .factory('Auth', function ($resource, Settings) {
'use strict'; 'use strict';
// Auto Information for docker // http://docs.docker.com/reference/api/docker_remote_api_<%= remoteApiVersion %>/#check-auth-configuration
// http://docs.docker.io/en/latest/api/docker_remote_api.html#set-auth-configuration
return $resource(Settings.url + '/auth', {}, { return $resource(Settings.url + '/auth', {}, {
get: {method: 'GET'}, get: {method: 'GET'},
update: {method: 'POST'} update: {method: 'POST'}
@ -112,8 +112,7 @@ angular.module('dockerui.services', ['ngResource'])
}) })
.factory('System', function ($resource, Settings) { .factory('System', function ($resource, Settings) {
'use strict'; 'use strict';
// System for docker // http://docs.docker.com/reference/api/docker_remote_api_<%= remoteApiVersion %>/#display-system-wide-information
// http://docs.docker.io/en/latest/api/docker_remote_api.html#display-system-wide-information
return $resource(Settings.url + '/info', {}, { return $resource(Settings.url + '/info', {}, {
get: {method: 'GET'} get: {method: 'GET'}
}); });
@ -179,6 +178,7 @@ angular.module('dockerui.services', ['ngResource'])
}) })
.factory('Dockerfile', function (Settings) { .factory('Dockerfile', function (Settings) {
'use strict'; 'use strict';
// http://docs.docker.com/reference/api/docker_remote_api_<%= remoteApiVersion %>/#build-image-from-a-dockerfile
var url = Settings.rawUrl + '/build'; var url = Settings.rawUrl + '/build';
return { return {
build: function (file, callback) { build: function (file, callback) {

@ -31,6 +31,7 @@ module.exports = function (grunt) {
grunt.initConfig({ grunt.initConfig({
distdir: 'dist', distdir: 'dist',
pkg: grunt.file.readJSON('package.json'), pkg: grunt.file.readJSON('package.json'),
remoteApiVersion: 'v1.20',
banner: '/*! <%= pkg.title || pkg.name %> - v<%= pkg.version %> - <%= grunt.template.today("yyyy-mm-dd") %>\n' + banner: '/*! <%= pkg.title || pkg.name %> - v<%= pkg.version %> - <%= grunt.template.today("yyyy-mm-dd") %>\n' +
'<%= pkg.homepage ? " * " + pkg.homepage + "\\n" : "" %>' + '<%= pkg.homepage ? " * " + pkg.homepage + "\\n" : "" %>' +
' * Copyright (c) <%= grunt.template.today("yyyy") %> <%= pkg.author %>;\n' + ' * Copyright (c) <%= grunt.template.today("yyyy") %> <%= pkg.author %>;\n' +

Loading…
Cancel
Save