fuel-ui/static/consts.js
Vitaly Kramskikh 2756e6b503 Use Keystone V3 API
This commit introduces support of V3 API and also removes token
regeneration every 1 hour which is totally unnecessary. Also,
token is now only stored in User model and passed to the
Keystone client via arguments, so there is no more two sources
of truth. User id and roles are also stored in User model now.

Partial-Bug: #1628445
Closes-Bug: #1618172
Depends-On: If201c247210131ce6ab192362eada250a4f51ce1
Change-Id: I48b73a09cad0d707c16df5ca8ada202173779129
2016-10-04 17:43:43 +03:00

99 lines
1.8 KiB
JavaScript

/*
* Copyright 2016 Mirantis, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License. You may obtain
* a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
**/
export const NODE_STATUSES = [
'ready',
'pending_addition',
'pending_deletion',
'provisioned',
'provisioning',
'deploying',
'stopped',
'discover',
'error',
'offline',
'removing'
];
export const NODE_LIST_SORTERS = [
'cluster',
'roles',
'status',
'name',
'mac',
'ip',
'manufacturer',
'cores',
'ht_cores',
'hdd',
'disks',
'ram',
'interfaces',
'group_id'
];
export const NODE_LIST_FILTERS = [
'cluster',
'roles',
'status',
'manufacturer',
'cores',
'ht_cores',
'hdd',
'disks_amount',
'ram',
'interfaces',
'group_id'
];
export const NODE_VIEW_MODES = [
'standard',
'compact'
];
export const DEPLOYMENT_TASK_STATUSES = [
'pending',
'running',
'ready',
'error',
'skipped'
];
export const DEPLOYMENT_TASK_ATTRIBUTES = [
'task_name',
'node_id',
'status',
'type',
'time_start',
'time_end'
];
export const DEPLOYMENT_HISTORY_VIEW_MODES = [
'timeline',
'table'
];
export const DEPLOYMENT_GRAPH_LEVELS = [
'release',
'plugin',
'cluster'
];
export const DEFAULT_ADMIN_PASSWORD = 'admin';
export const FUEL_PROJECT_NAME = 'admin';
export const FUEL_PROJECT_DOMAIN_NAME = 'fuel';
export const FUEL_USER_DOMAIN_NAME = 'fuel';