wf_node_api 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +7 -0
- data/Gemfile +28 -0
- data/Gemfile.lock +66 -0
- data/LICENSE +340 -0
- data/Makefile +19 -0
- data/README.md +78 -0
- data/Rakefile +2 -0
- data/Vagrantfile +102 -0
- data/_docs/api/Api/NodeApi.html +123 -0
- data/_docs/api/Api.html +149 -0
- data/_docs/api/Config/Check.html +331 -0
- data/_docs/api/Config.html +115 -0
- data/_docs/api/ConfigCheck.html +365 -0
- data/_docs/api/ContainerManager.html +1632 -0
- data/_docs/api/ContainerManagerAdapter/Lxc.html +1352 -0
- data/_docs/api/ContainerManagerAdapter/Vserver.html +1358 -0
- data/_docs/api/ContainerManagerAdapter.html +151 -0
- data/_docs/api/Error/NotFound.html +134 -0
- data/_docs/api/Error.html +115 -0
- data/_docs/api/NotFoundError.html +157 -0
- data/_docs/api/OS.html +234 -0
- data/_docs/api/ResourceManager.html +322 -0
- data/_docs/api/ResourceManagerAdapter/Linux.html +326 -0
- data/_docs/api/ResourceManagerAdapter.html +149 -0
- data/_docs/api/WfNodeApi.html +163 -0
- data/_docs/api/_index.html +239 -0
- data/_docs/api/class_list.html +58 -0
- data/_docs/api/css/common.css +1 -0
- data/_docs/api/css/full_list.css +57 -0
- data/_docs/api/css/style.css +339 -0
- data/_docs/api/file.README.html +146 -0
- data/_docs/api/file_list.html +60 -0
- data/_docs/api/frames.html +26 -0
- data/_docs/api/index.html +146 -0
- data/_docs/api/js/app.js +219 -0
- data/_docs/api/js/full_list.js +181 -0
- data/_docs/api/js/jquery.js +4 -0
- data/_docs/api/method_list.html +273 -0
- data/_docs/api/top-level-namespace.html +244 -0
- data/_docs/rest/api_data.js +1 -0
- data/_docs/rest/api_data.json +1 -0
- data/_docs/rest/api_project.js +1 -0
- data/_docs/rest/api_project.json +1 -0
- data/_docs/rest/css/style.css +538 -0
- data/_docs/rest/header.md +3 -0
- data/_docs/rest/img/favicon.ico +0 -0
- data/_docs/rest/img/glyphicons-halflings-white.png +0 -0
- data/_docs/rest/img/glyphicons-halflings.png +0 -0
- data/_docs/rest/index.html +658 -0
- data/_docs/rest/locales/de.js +25 -0
- data/_docs/rest/locales/fr.js +25 -0
- data/_docs/rest/locales/locale.js +43 -0
- data/_docs/rest/locales/nl.js +25 -0
- data/_docs/rest/locales/pl.js +25 -0
- data/_docs/rest/locales/pt_br.js +25 -0
- data/_docs/rest/locales/ru.js +25 -0
- data/_docs/rest/locales/zh.js +25 -0
- data/_docs/rest/main.js +691 -0
- data/_docs/rest/utils/handlebars_helper.js +327 -0
- data/_docs/rest/utils/send_sample_request.js +158 -0
- data/_docs/rest/vendor/bootstrap-responsive.min.css +9 -0
- data/_docs/rest/vendor/bootstrap.min.css +9 -0
- data/_docs/rest/vendor/bootstrap.min.js +6 -0
- data/_docs/rest/vendor/diff_match_patch.min.js +49 -0
- data/_docs/rest/vendor/handlebars.min.js +28 -0
- data/_docs/rest/vendor/jquery.min.js +4 -0
- data/_docs/rest/vendor/lodash.min.js +61 -0
- data/_docs/rest/vendor/path-to-regexp/LICENSE +21 -0
- data/_docs/rest/vendor/path-to-regexp/index.js +205 -0
- data/_docs/rest/vendor/polyfill.js +100 -0
- data/_docs/rest/vendor/prettify/lang-apollo.js +2 -0
- data/_docs/rest/vendor/prettify/lang-basic.js +3 -0
- data/_docs/rest/vendor/prettify/lang-clj.js +18 -0
- data/_docs/rest/vendor/prettify/lang-css.js +2 -0
- data/_docs/rest/vendor/prettify/lang-dart.js +3 -0
- data/_docs/rest/vendor/prettify/lang-erlang.js +2 -0
- data/_docs/rest/vendor/prettify/lang-go.js +1 -0
- data/_docs/rest/vendor/prettify/lang-hs.js +2 -0
- data/_docs/rest/vendor/prettify/lang-lisp.js +3 -0
- data/_docs/rest/vendor/prettify/lang-llvm.js +1 -0
- data/_docs/rest/vendor/prettify/lang-lua.js +2 -0
- data/_docs/rest/vendor/prettify/lang-matlab.js +6 -0
- data/_docs/rest/vendor/prettify/lang-ml.js +2 -0
- data/_docs/rest/vendor/prettify/lang-mumps.js +2 -0
- data/_docs/rest/vendor/prettify/lang-n.js +4 -0
- data/_docs/rest/vendor/prettify/lang-pascal.js +3 -0
- data/_docs/rest/vendor/prettify/lang-proto.js +1 -0
- data/_docs/rest/vendor/prettify/lang-r.js +2 -0
- data/_docs/rest/vendor/prettify/lang-rd.js +1 -0
- data/_docs/rest/vendor/prettify/lang-scala.js +2 -0
- data/_docs/rest/vendor/prettify/lang-sql.js +2 -0
- data/_docs/rest/vendor/prettify/lang-tcl.js +3 -0
- data/_docs/rest/vendor/prettify/lang-tex.js +1 -0
- data/_docs/rest/vendor/prettify/lang-vb.js +2 -0
- data/_docs/rest/vendor/prettify/lang-vhdl.js +3 -0
- data/_docs/rest/vendor/prettify/lang-wiki.js +2 -0
- data/_docs/rest/vendor/prettify/lang-xq.js +3 -0
- data/_docs/rest/vendor/prettify/lang-yaml.js +2 -0
- data/_docs/rest/vendor/prettify/prettify.css +1 -0
- data/_docs/rest/vendor/prettify/prettify.js +30 -0
- data/_docs/rest/vendor/prettify/run_prettify.js +34 -0
- data/_docs/rest/vendor/prettify.css +101 -0
- data/_docs/rest/vendor/require.min.js +36 -0
- data/apidoc.json +23 -0
- data/bin/wf_node_api +80 -0
- data/lib/wf_node_api/api/node_api.rb +360 -0
- data/lib/wf_node_api/config/config_template.erb +50 -0
- data/lib/wf_node_api/config_check.rb +50 -0
- data/lib/wf_node_api/container_manager.rb +286 -0
- data/lib/wf_node_api/container_manager_adapter/lxc.rb +431 -0
- data/lib/wf_node_api/container_manager_adapter/vserver.rb +448 -0
- data/lib/wf_node_api/error/not_found.rb +27 -0
- data/lib/wf_node_api/os.rb +32 -0
- data/lib/wf_node_api/resource_manager.rb +49 -0
- data/lib/wf_node_api/resource_manager_adapter/linux.rb +53 -0
- data/lib/wf_node_api/translations.rb +38 -0
- data/lib/wf_node_api/version.rb +28 -0
- data/lib/wf_node_api.rb +57 -0
- data/manifests/files/dhozac-vserver.repo +4 -0
- data/wf-node-api.gemspec +53 -0
- metadata +221 -0
@@ -0,0 +1,25 @@
|
|
1
|
+
define({
|
2
|
+
de: {
|
3
|
+
'Allowed values:' : 'Erlaubte Werte:',
|
4
|
+
'Compare all with predecessor': 'Vergleiche alle mit ihren Vorgängern',
|
5
|
+
'compare changes to:' : 'vergleiche Änderungen mit:',
|
6
|
+
'compared to' : 'verglichen mit',
|
7
|
+
'Default value:' : 'Standardwert:',
|
8
|
+
'Description' : 'Beschreibung',
|
9
|
+
'Field' : 'Feld',
|
10
|
+
'General' : 'Allgemein',
|
11
|
+
'Generated with' : 'Erstellt mit',
|
12
|
+
'Name' : 'Name',
|
13
|
+
'No response values.' : 'Keine Rückgabewerte.',
|
14
|
+
'optional' : 'optional',
|
15
|
+
'Parameter' : 'Parameter',
|
16
|
+
'Permission:' : 'Berechtigung:',
|
17
|
+
'Response' : 'Antwort',
|
18
|
+
'Send' : 'Senden',
|
19
|
+
'Send a Sample Request' : 'Eine Beispielanfrage senden',
|
20
|
+
'show up to version:' : 'zeige bis zur Version:',
|
21
|
+
'Size range:' : 'Größenbereich:',
|
22
|
+
'Type' : 'Typ',
|
23
|
+
'url' : 'url'
|
24
|
+
}
|
25
|
+
});
|
@@ -0,0 +1,25 @@
|
|
1
|
+
define({
|
2
|
+
fr: {
|
3
|
+
'Allowed values:' : 'Valeurs autorisées :',
|
4
|
+
'Compare all with predecessor': 'Tout comparer avec ...',
|
5
|
+
'compare changes to:' : 'comparer les changements à :',
|
6
|
+
'compared to' : 'comparer à',
|
7
|
+
'Default value:' : 'Valeur par défaut :',
|
8
|
+
'Description' : 'Description',
|
9
|
+
'Field' : 'Champ',
|
10
|
+
'General' : 'Général',
|
11
|
+
'Generated with' : 'Généré avec',
|
12
|
+
'Name' : 'Nom',
|
13
|
+
'No response values.' : 'Aucune valeur de réponse.',
|
14
|
+
'optional' : 'optionel',
|
15
|
+
'Parameter' : 'Paramètre',
|
16
|
+
'Permission:' : 'Permission :',
|
17
|
+
'Response' : 'Réponse',
|
18
|
+
'Send' : 'Envoyer',
|
19
|
+
'Send a Sample Request' : 'Envoyer une requête représentative',
|
20
|
+
'show up to version:' : 'Montrer à partir de la version :',
|
21
|
+
'Size range:' : 'Ordre de grandeur :',
|
22
|
+
'Type' : 'Type',
|
23
|
+
'url' : 'url'
|
24
|
+
}
|
25
|
+
});
|
@@ -0,0 +1,43 @@
|
|
1
|
+
define([
|
2
|
+
'./locales/de.js',
|
3
|
+
'./locales/fr.js',
|
4
|
+
'./locales/nl.js',
|
5
|
+
'./locales/pl.js',
|
6
|
+
'./locales/pt_br.js',
|
7
|
+
'./locales/ru.js',
|
8
|
+
'./locales/zh.js'
|
9
|
+
], function() {
|
10
|
+
var langId = (navigator.language || navigator.userLanguage).toLowerCase();
|
11
|
+
var language = langId.substr(0, 2);
|
12
|
+
var locales = {};
|
13
|
+
|
14
|
+
for (index in arguments) {
|
15
|
+
for (property in arguments[index])
|
16
|
+
locales[property] = arguments[index][property];
|
17
|
+
}
|
18
|
+
if ( ! locales['en'])
|
19
|
+
locales['en'] = {};
|
20
|
+
|
21
|
+
if ( ! locales[langId] && ! locales[language])
|
22
|
+
language = 'en';
|
23
|
+
|
24
|
+
var locale = (locales[langId] ? locales[langId] : locales[language]);
|
25
|
+
|
26
|
+
function __(text) {
|
27
|
+
var index = locale[text];
|
28
|
+
if (index === undefined)
|
29
|
+
return text;
|
30
|
+
return index;
|
31
|
+
};
|
32
|
+
|
33
|
+
function setLanguage(language) {
|
34
|
+
locale = locales[language];
|
35
|
+
}
|
36
|
+
|
37
|
+
return {
|
38
|
+
__ : __,
|
39
|
+
locales : locales,
|
40
|
+
locale : locale,
|
41
|
+
setLanguage: setLanguage
|
42
|
+
};
|
43
|
+
});
|
@@ -0,0 +1,25 @@
|
|
1
|
+
define({
|
2
|
+
nl: {
|
3
|
+
'Allowed values:' : 'Toegestane waarden:',
|
4
|
+
'Compare all with predecessor': 'Vergelijk alle met voorgaande versie',
|
5
|
+
'compare changes to:' : 'vergelijk veranderingen met:',
|
6
|
+
'compared to' : 'vergelijk met',
|
7
|
+
'Default value:' : 'Standaard waarde:',
|
8
|
+
'Description' : 'Omschrijving',
|
9
|
+
'Field' : 'Veld',
|
10
|
+
'General' : 'Algemeen',
|
11
|
+
'Generated with' : 'Gegenereerd met',
|
12
|
+
'Name' : 'Naam',
|
13
|
+
'No response values.' : 'Geen response waardes.',
|
14
|
+
'optional' : 'optioneel',
|
15
|
+
'Parameter' : 'Parameter',
|
16
|
+
'Permission:' : 'Permissie:',
|
17
|
+
'Response' : 'Antwoorden',
|
18
|
+
'Send' : 'Sturen',
|
19
|
+
'Send a Sample Request' : 'Stuur een sample aanvragen',
|
20
|
+
'show up to version:' : 'toon tot en met versie:',
|
21
|
+
'Size range:' : 'Maatbereik:',
|
22
|
+
'Type' : 'Type',
|
23
|
+
'url' : 'url'
|
24
|
+
}
|
25
|
+
});
|
@@ -0,0 +1,25 @@
|
|
1
|
+
define({
|
2
|
+
pl: {
|
3
|
+
'Allowed values:' : 'Dozwlone wartości:',
|
4
|
+
'Compare all with predecessor': 'Porównaj z poprzednimi wersjami',
|
5
|
+
'compare changes to:' : 'porównaj zmiany do:',
|
6
|
+
'compared to' : 'porównaj do:',
|
7
|
+
'Default value:' : 'Wartość domyślna:',
|
8
|
+
'Description' : 'Opis',
|
9
|
+
'Field' : 'Pole',
|
10
|
+
'General' : 'Generalnie',
|
11
|
+
'Generated with' : 'Wygenerowano z',
|
12
|
+
'Name' : 'Nazwa',
|
13
|
+
'No response values.' : 'Brak odpowiedzi.',
|
14
|
+
'optional' : 'opcjonalny',
|
15
|
+
'Parameter' : 'Parametr',
|
16
|
+
'Permission:' : 'Uprawnienia:',
|
17
|
+
'Response' : 'Odpowiedź',
|
18
|
+
'Send' : 'Wyślij',
|
19
|
+
'Send a Sample Request' : 'Wyślij przykładowe żądanie',
|
20
|
+
'show up to version:' : 'pokaż do wersji:',
|
21
|
+
'Size range:' : 'Zakres rozmiaru:',
|
22
|
+
'Type' : 'Typ',
|
23
|
+
'url' : 'url'
|
24
|
+
}
|
25
|
+
});
|
@@ -0,0 +1,25 @@
|
|
1
|
+
define({
|
2
|
+
'pt_br': {
|
3
|
+
'Allowed values:' : 'Valores permitidos:',
|
4
|
+
'Compare all with predecessor': 'Compare todos com antecessores',
|
5
|
+
'compare changes to:' : 'comparar alterações com:',
|
6
|
+
'compared to' : 'comparado com',
|
7
|
+
'Default value:' : 'Valor padrão:',
|
8
|
+
'Description' : 'Descrição',
|
9
|
+
'Field' : 'Campo',
|
10
|
+
'General' : 'Geral',
|
11
|
+
'Generated with' : 'Gerado com',
|
12
|
+
'Name' : 'Nome',
|
13
|
+
'No response values.' : 'Sem valores de resposta.',
|
14
|
+
'optional' : 'opcional',
|
15
|
+
'Parameter' : 'Parâmetro',
|
16
|
+
'Permission:' : 'Permissão:',
|
17
|
+
'Response' : 'Resposta',
|
18
|
+
'Send' : 'Enviar',
|
19
|
+
'Send a Sample Request' : 'Enviar um Exemplo de Pedido',
|
20
|
+
'show up to version:' : 'aparecer para a versão:',
|
21
|
+
'Size range:' : 'Faixa de tamanho:',
|
22
|
+
'Type' : 'Tipo',
|
23
|
+
'url' : 'url'
|
24
|
+
}
|
25
|
+
});
|
@@ -0,0 +1,25 @@
|
|
1
|
+
define({
|
2
|
+
ru: {
|
3
|
+
'Allowed values:' : 'Допустимые значения:',
|
4
|
+
'Compare all with predecessor': 'Сравнить с предыдущей версией',
|
5
|
+
'compare changes to:' : 'сравнить с:',
|
6
|
+
'compared to' : 'в сравнении с',
|
7
|
+
'Default value:' : 'По умолчанию:',
|
8
|
+
'Description' : 'Описание',
|
9
|
+
'Field' : 'Название',
|
10
|
+
'General' : 'Общая информация',
|
11
|
+
'Generated with' : 'Сгенерировано с помощью',
|
12
|
+
'Name' : 'Название',
|
13
|
+
'No response values.' : 'Нет значений для ответа.',
|
14
|
+
'optional' : 'необязательный',
|
15
|
+
'Parameter' : 'Параметр',
|
16
|
+
'Permission:' : 'Разрешено:',
|
17
|
+
'Response' : 'Ответ',
|
18
|
+
'Send' : 'Отправить',
|
19
|
+
'Send a Sample Request' : 'Отправить тестовый запрос',
|
20
|
+
'show up to version:' : 'показать версию:',
|
21
|
+
'Size range:' : 'Ограничения:',
|
22
|
+
'Type' : 'Тип',
|
23
|
+
'url' : 'URL'
|
24
|
+
}
|
25
|
+
});
|
@@ -0,0 +1,25 @@
|
|
1
|
+
define({
|
2
|
+
zh: {
|
3
|
+
'Allowed values:' : '允許值:',
|
4
|
+
'Compare all with predecessor': '预先比较所有',
|
5
|
+
'compare changes to:' : '比较变更:',
|
6
|
+
'compared to' : '对比',
|
7
|
+
'Default value:' : '默认值:',
|
8
|
+
'Description' : '描述',
|
9
|
+
'Field' : '字段',
|
10
|
+
'General' : '概括',
|
11
|
+
'Generated with' : '生成工具',
|
12
|
+
'Name' : '名称',
|
13
|
+
'No response values.' : '无响应值.',
|
14
|
+
'optional' : '选项',
|
15
|
+
'Parameter' : '参数',
|
16
|
+
'Permission:' : '允许:',
|
17
|
+
'Response' : '響應',
|
18
|
+
'Send' : '發送',
|
19
|
+
'Send a Sample Request' : '發送樣品申請',
|
20
|
+
'show up to version:' : '显示到版本:',
|
21
|
+
'Size range:' : '尺寸範圍:',
|
22
|
+
'Type' : '类型',
|
23
|
+
'url' : '網址'
|
24
|
+
}
|
25
|
+
});
|