aboutsummaryrefslogtreecommitdiffstats
path: root/ui/imports/api/constants
diff options
context:
space:
mode:
Diffstat (limited to 'ui/imports/api/constants')
-rw-r--r--ui/imports/api/constants/constants.js22
-rw-r--r--ui/imports/api/constants/data/distributions.js64
-rw-r--r--ui/imports/api/constants/data/env-types.js15
-rw-r--r--ui/imports/api/constants/data/environment-monitoring-types.js12
-rw-r--r--ui/imports/api/constants/data/environment-provision-types.js21
-rw-r--r--ui/imports/api/constants/data/log-levels.js27
-rw-r--r--ui/imports/api/constants/data/mechanism-drivers.js24
-rw-r--r--ui/imports/api/constants/data/message-source-systems.js15
-rw-r--r--ui/imports/api/constants/data/network-plugins.js15
-rw-r--r--ui/imports/api/constants/data/object-types-for-links.js39
-rw-r--r--ui/imports/api/constants/data/scans-statuses.js33
-rw-r--r--ui/imports/api/constants/data/type-drivers.js24
-rw-r--r--ui/imports/api/constants/server/publications.js16
13 files changed, 0 insertions, 327 deletions
diff --git a/ui/imports/api/constants/constants.js b/ui/imports/api/constants/constants.js
deleted file mode 100644
index b3f0407..0000000
--- a/ui/imports/api/constants/constants.js
+++ /dev/null
@@ -1,22 +0,0 @@
-/////////////////////////////////////////////////////////////////////////////////////////
-// Copyright (c) 2017 Koren Lev (Cisco Systems), Yaron Yogev (Cisco Systems) and others /
-// /
-// All rights reserved. This program and the accompanying materials /
-// are made available under the terms of the Apache License, Version 2.0 /
-// which accompanies this distribution, and is available at /
-// http://www.apache.org/licenses/LICENSE-2.0 /
-/////////////////////////////////////////////////////////////////////////////////////////
-import { Mongo } from 'meteor/mongo';
-import { SimpleSchema } from 'meteor/aldeed:simple-schema';
-//import * as R from 'ramda';
-
-export const Constants = new Mongo.Collection('constants', { idGeneration: 'MONGO' });
-
-let schema = {
- _id: { type: { _str: { type: String, regEx: SimpleSchema.RegEx.Id } } },
- name: { type: String },
- data: { type: [Object], blackbox: true },
-};
-
-Constants.schema = schema;
-Constants.attachSchema(schema);
diff --git a/ui/imports/api/constants/data/distributions.js b/ui/imports/api/constants/data/distributions.js
deleted file mode 100644
index 97ecdb4..0000000
--- a/ui/imports/api/constants/data/distributions.js
+++ /dev/null
@@ -1,64 +0,0 @@
-/////////////////////////////////////////////////////////////////////////////////////////
-// Copyright (c) 2017 Koren Lev (Cisco Systems), Yaron Yogev (Cisco Systems) and others /
-// /
-// All rights reserved. This program and the accompanying materials /
-// are made available under the terms of the Apache License, Version 2.0 /
-// which accompanies this distribution, and is available at /
-// http://www.apache.org/licenses/LICENSE-2.0 /
-/////////////////////////////////////////////////////////////////////////////////////////
-export const Distributions = [{
- label: 'Mirantis-6.0',
- value: 'Mirantis-6.0',
-}, {
- label: 'Mirantis-7.0',
- value: 'Mirantis-7.0',
-}, {
- label: 'Mirantis-8.0',
- value: 'Mirantis-8.0',
-}, {
- label: 'Mirantis-9.0',
- value: 'Mirantis-9.0',
-}, {
- label: 'RDO-Mitaka',
- value: 'RDO-Mitaka',
-}, {
- label: 'RDO-Liberty',
- value: 'RDO-Liberty',
-}, {
- label: 'RDO-Juno',
- value: 'RDO-Juno',
-}, {
- label: 'RDO-kilo',
- value: 'RDO-kilo',
-}, {
- label: 'devstack-liberty',
- value: 'devstack-liberty',
-}, {
- label: 'Canonical-icehouse',
- value: 'Canonical-icehouse',
-}, {
- label: 'Canonical-juno',
- value: 'Canonical-juno',
-}, {
- label: 'Canonical-liberty',
- value: 'Canonical-liberty',
-}, {
- label: 'Canonical-mitaka',
- value: 'Canonical-mitaka',
-}, {
- label: 'Apex-Mitaka',
- value: 'Apex-Mitaka',
-}, {
- label: 'Devstack-Mitaka',
- value: 'Devstack-Mitaka',
-}, {
- label: 'packstack-7.0.0-0.10.dev1682',
- value: 'packstack-7.0.0-0.10.dev1682',
-}, {
- label: 'Stratoscale-v2.1.6',
- value: 'Stratoscale-v2.1.6',
-}, {
- label: 'Mirantis-9.1',
- value: 'Mirantis-9.1',
-}
-];
diff --git a/ui/imports/api/constants/data/env-types.js b/ui/imports/api/constants/data/env-types.js
deleted file mode 100644
index 00b0aaf..0000000
--- a/ui/imports/api/constants/data/env-types.js
+++ /dev/null
@@ -1,15 +0,0 @@
-/////////////////////////////////////////////////////////////////////////////////////////
-// Copyright (c) 2017 Koren Lev (Cisco Systems), Yaron Yogev (Cisco Systems) and others /
-// /
-// All rights reserved. This program and the accompanying materials /
-// are made available under the terms of the Apache License, Version 2.0 /
-// which accompanies this distribution, and is available at /
-// http://www.apache.org/licenses/LICENSE-2.0 /
-/////////////////////////////////////////////////////////////////////////////////////////
-export const EnvTypes = [{
- label: 'Production',
- value: 'production',
-}, {
- label: 'Development',
- value: 'development',
-}];
diff --git a/ui/imports/api/constants/data/environment-monitoring-types.js b/ui/imports/api/constants/data/environment-monitoring-types.js
deleted file mode 100644
index e3a573a..0000000
--- a/ui/imports/api/constants/data/environment-monitoring-types.js
+++ /dev/null
@@ -1,12 +0,0 @@
-/////////////////////////////////////////////////////////////////////////////////////////
-// Copyright (c) 2017 Koren Lev (Cisco Systems), Yaron Yogev (Cisco Systems) and others /
-// /
-// All rights reserved. This program and the accompanying materials /
-// are made available under the terms of the Apache License, Version 2.0 /
-// which accompanies this distribution, and is available at /
-// http://www.apache.org/licenses/LICENSE-2.0 /
-/////////////////////////////////////////////////////////////////////////////////////////
-export const EnvironmentMonitoringTypes = [{
- label: 'Sensu',
- value: 'Sensu',
-}];
diff --git a/ui/imports/api/constants/data/environment-provision-types.js b/ui/imports/api/constants/data/environment-provision-types.js
deleted file mode 100644
index 5139266..0000000
--- a/ui/imports/api/constants/data/environment-provision-types.js
+++ /dev/null
@@ -1,21 +0,0 @@
-/////////////////////////////////////////////////////////////////////////////////////////
-// Copyright (c) 2017 Koren Lev (Cisco Systems), Yaron Yogev (Cisco Systems) and others /
-// /
-// All rights reserved. This program and the accompanying materials /
-// are made available under the terms of the Apache License, Version 2.0 /
-// which accompanies this distribution, and is available at /
-// http://www.apache.org/licenses/LICENSE-2.0 /
-/////////////////////////////////////////////////////////////////////////////////////////
-export const EnvProvisionTypes = [{
- label: 'None',
- value: 'None',
-}, {
- label: 'Deploy',
- value: 'Deploy',
-}, {
- label: 'Files',
- value: 'Files',
-}, {
- label: 'DB',
- value: 'DB',
-}];
diff --git a/ui/imports/api/constants/data/log-levels.js b/ui/imports/api/constants/data/log-levels.js
deleted file mode 100644
index dee6b6d..0000000
--- a/ui/imports/api/constants/data/log-levels.js
+++ /dev/null
@@ -1,27 +0,0 @@
-/////////////////////////////////////////////////////////////////////////////////////////
-// Copyright (c) 2017 Koren Lev (Cisco Systems), Yaron Yogev (Cisco Systems) and others /
-// /
-// All rights reserved. This program and the accompanying materials /
-// are made available under the terms of the Apache License, Version 2.0 /
-// which accompanies this distribution, and is available at /
-// http://www.apache.org/licenses/LICENSE-2.0 /
-/////////////////////////////////////////////////////////////////////////////////////////
-export const LogLevels = [{
- label: 'CRITICAL',
- value: 'critical',
-}, {
- label: 'ERROR',
- value: 'error',
-}, {
- label: 'WARNING',
- value: 'warning',
-}, {
- label: 'INFO',
- value: 'info',
-}, {
- label: 'DEBUG',
- value: 'debug',
-}, {
- label: 'NOTSET',
- value: 'notset',
-}];
diff --git a/ui/imports/api/constants/data/mechanism-drivers.js b/ui/imports/api/constants/data/mechanism-drivers.js
deleted file mode 100644
index afa8b01..0000000
--- a/ui/imports/api/constants/data/mechanism-drivers.js
+++ /dev/null
@@ -1,24 +0,0 @@
-/////////////////////////////////////////////////////////////////////////////////////////
-// Copyright (c) 2017 Koren Lev (Cisco Systems), Yaron Yogev (Cisco Systems) and others /
-// /
-// All rights reserved. This program and the accompanying materials /
-// are made available under the terms of the Apache License, Version 2.0 /
-// which accompanies this distribution, and is available at /
-// http://www.apache.org/licenses/LICENSE-2.0 /
-/////////////////////////////////////////////////////////////////////////////////////////
-export const MechanismDrivers = [{
- 'label' : 'ovs',
- 'value' : 'ovs'
-}, {
- 'label' : 'vpp',
- 'value' : 'vpp'
-}, {
- 'label' : 'lxb',
- 'value' : 'lxb'
-}, {
- 'label' : 'Arista',
- 'value' : 'Arista'
-}, {
- 'label' : 'Nexus',
- 'value' : 'Nexus'
-}];
diff --git a/ui/imports/api/constants/data/message-source-systems.js b/ui/imports/api/constants/data/message-source-systems.js
deleted file mode 100644
index 77ec901..0000000
--- a/ui/imports/api/constants/data/message-source-systems.js
+++ /dev/null
@@ -1,15 +0,0 @@
-/////////////////////////////////////////////////////////////////////////////////////////
-// Copyright (c) 2017 Koren Lev (Cisco Systems), Yaron Yogev (Cisco Systems) and others /
-// /
-// All rights reserved. This program and the accompanying materials /
-// are made available under the terms of the Apache License, Version 2.0 /
-// which accompanies this distribution, and is available at /
-// http://www.apache.org/licenses/LICENSE-2.0 /
-/////////////////////////////////////////////////////////////////////////////////////////
-export const MessageSourceSystems = [{
- label: 'OpenStack',
- value: 'OpenStack',
-}, {
- label: 'OSDNA_Sensu',
- value: 'OSDNA_Sensu',
-}];
diff --git a/ui/imports/api/constants/data/network-plugins.js b/ui/imports/api/constants/data/network-plugins.js
deleted file mode 100644
index c89be26..0000000
--- a/ui/imports/api/constants/data/network-plugins.js
+++ /dev/null
@@ -1,15 +0,0 @@
-/////////////////////////////////////////////////////////////////////////////////////////
-// Copyright (c) 2017 Koren Lev (Cisco Systems), Yaron Yogev (Cisco Systems) and others /
-// /
-// All rights reserved. This program and the accompanying materials /
-// are made available under the terms of the Apache License, Version 2.0 /
-// which accompanies this distribution, and is available at /
-// http://www.apache.org/licenses/LICENSE-2.0 /
-/////////////////////////////////////////////////////////////////////////////////////////
-export const NetworkPlugins = [{
- label: 'OVS',
- value: 'OVS',
-}, {
- label: 'VPP',
- value: 'VPP',
-}];
diff --git a/ui/imports/api/constants/data/object-types-for-links.js b/ui/imports/api/constants/data/object-types-for-links.js
deleted file mode 100644
index 35f1805..0000000
--- a/ui/imports/api/constants/data/object-types-for-links.js
+++ /dev/null
@@ -1,39 +0,0 @@
-/////////////////////////////////////////////////////////////////////////////////////////
-// Copyright (c) 2017 Koren Lev (Cisco Systems), Yaron Yogev (Cisco Systems) and others /
-// /
-// All rights reserved. This program and the accompanying materials /
-// are made available under the terms of the Apache License, Version 2.0 /
-// which accompanies this distribution, and is available at /
-// http://www.apache.org/licenses/LICENSE-2.0 /
-/////////////////////////////////////////////////////////////////////////////////////////
-export const ObjectTypesForLinks = [{
- label: 'vnic',
- value: 'vnic',
-}, {
- label: 'vconnector',
- value: 'vconnector',
-}, {
- label: 'vedge',
- value: 'vedge',
-}, {
- label: 'instance',
- value: 'instance',
-}, {
- label: 'vservice',
- value: 'vservice',
-}, {
- label: 'pnic',
- value: 'pnic',
-}, {
- label: 'network',
- value: 'network',
-}, {
- label: 'port',
- value: 'port',
-}, {
- label: 'otep',
- value: 'otep',
-}, {
- label: 'agent',
- value: 'agent',
-}];
diff --git a/ui/imports/api/constants/data/scans-statuses.js b/ui/imports/api/constants/data/scans-statuses.js
deleted file mode 100644
index d61c8f3..0000000
--- a/ui/imports/api/constants/data/scans-statuses.js
+++ /dev/null
@@ -1,33 +0,0 @@
-/////////////////////////////////////////////////////////////////////////////////////////
-// Copyright (c) 2017 Koren Lev (Cisco Systems), Yaron Yogev (Cisco Systems) and others /
-// /
-// All rights reserved. This program and the accompanying materials /
-// are made available under the terms of the Apache License, Version 2.0 /
-// which accompanies this distribution, and is available at /
-// http://www.apache.org/licenses/LICENSE-2.0 /
-/////////////////////////////////////////////////////////////////////////////////////////
-export const Statuses = [{
- value: 'draft',
- label: 'Draft',
-}, {
- value: 'pending',
- label: 'Pending',
-}, {
- value: 'running',
- label: 'Running',
-}, {
- value: 'completed',
- label: 'Completed',
-}, {
- value: 'completed_with_errors',
- label: 'Completed with errors',
-}, {
- value: 'failed',
- label: 'Failed',
-}, {
- value: 'aborted',
- label: 'Aborted',
-}
-];
-
-export const StatusesInOperation = ['pending', 'running'];
diff --git a/ui/imports/api/constants/data/type-drivers.js b/ui/imports/api/constants/data/type-drivers.js
deleted file mode 100644
index efc7f7d..0000000
--- a/ui/imports/api/constants/data/type-drivers.js
+++ /dev/null
@@ -1,24 +0,0 @@
-/////////////////////////////////////////////////////////////////////////////////////////
-// Copyright (c) 2017 Koren Lev (Cisco Systems), Yaron Yogev (Cisco Systems) and others /
-// /
-// All rights reserved. This program and the accompanying materials /
-// are made available under the terms of the Apache License, Version 2.0 /
-// which accompanies this distribution, and is available at /
-// http://www.apache.org/licenses/LICENSE-2.0 /
-/////////////////////////////////////////////////////////////////////////////////////////
-export const TypeDrivers = [{
- 'label' : 'local',
- 'value' : 'local'
-}, {
- 'label' : 'vlan',
- 'value' : 'vlan'
-}, {
- 'label' : 'vxlan',
- 'value' : 'vxlan'
-}, {
- 'label' : 'gre',
- 'value' : 'gre'
-}, {
- 'label' : 'flat',
- 'value' : 'flat'
-}];
diff --git a/ui/imports/api/constants/server/publications.js b/ui/imports/api/constants/server/publications.js
deleted file mode 100644
index 3ace17f..0000000
--- a/ui/imports/api/constants/server/publications.js
+++ /dev/null
@@ -1,16 +0,0 @@
-/////////////////////////////////////////////////////////////////////////////////////////
-// Copyright (c) 2017 Koren Lev (Cisco Systems), Yaron Yogev (Cisco Systems) and others /
-// /
-// All rights reserved. This program and the accompanying materials /
-// are made available under the terms of the Apache License, Version 2.0 /
-// which accompanies this distribution, and is available at /
-// http://www.apache.org/licenses/LICENSE-2.0 /
-/////////////////////////////////////////////////////////////////////////////////////////
-import { Meteor } from 'meteor/meteor';
-
-import { Constants } from '../constants.js';
-
-Meteor.publish('constants', function () {
- console.log('server subscribtion to: constants');
- return Constants.find({});
-});