001/*
002 * VM-Operator
003 * Copyright (C) 2023 Michael N. Lipp
004 * 
005 * This program is free software: you can redistribute it and/or modify
006 * it under the terms of the GNU Affero General Public License as
007 * published by the Free Software Foundation, either version 3 of the
008 * License, or (at your option) any later version.
009 *
010 * This program is distributed in the hope that it will be useful,
011 * but WITHOUT ANY WARRANTY; without even the implied warranty of
012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
013 * GNU Affero General Public License for more details.
014 *
015 * You should have received a copy of the GNU Affero General Public License
016 * along with this program.  If not, see <https://www.gnu.org/licenses/>.
017 */
018
019package org.jdrupes.vmoperator.common;
020
021// TODO: Auto-generated Javadoc
022/**
023 * Some constants.
024 */
025@SuppressWarnings("PMD.DataClass")
026public class Constants {
027
028    /** The Constant APP_NAME. */
029    public static final String APP_NAME = "vm-runner";
030
031    /** The Constant VM_OP_NAME. */
032    public static final String VM_OP_NAME = "vm-operator";
033
034    /**
035     * Constants related to the CRD.
036     */
037    @SuppressWarnings("PMD.ShortClassName")
038    public static class Crd {
039        /** The Constant GROUP. */
040        public static final String GROUP = "vmoperator.jdrupes.org";
041
042        /** The Constant KIND_VM. */
043        public static final String KIND_VM = "VirtualMachine";
044
045        /** The Constant KIND_VM_POOL. */
046        public static final String KIND_VM_POOL = "VmPool";
047    }
048
049    /**
050     * Status related constants.
051     */
052    public static class Status {
053        /** The Constant CPUS. */
054        public static final String CPUS = "cpus";
055
056        /** The Constant RAM. */
057        public static final String RAM = "ram";
058
059        /** The Constant OSINFO. */
060        public static final String OSINFO = "osinfo";
061
062        /** The Constant DISPLAY_PASSWORD_SERIAL. */
063        public static final String DISPLAY_PASSWORD_SERIAL
064            = "displayPasswordSerial";
065
066        /** The Constant LOGGED_IN_USER. */
067        public static final String LOGGED_IN_USER = "loggedInUser";
068
069        /** The Constant CONSOLE_CLIENT. */
070        public static final String CONSOLE_CLIENT = "consoleClient";
071
072        /** The Constant CONSOLE_USER. */
073        public static final String CONSOLE_USER = "consoleUser";
074
075        /** The Constant ASSIGNMENT. */
076        public static final String ASSIGNMENT = "assignment";
077    }
078
079    /**
080     * DisplaySecret related constants.
081     */
082    public static class DisplaySecret {
083
084        /** The Constant NAME. */
085        public static final String NAME = "display-secret";
086
087        /** The Constant PASSWORD. */
088        public static final String PASSWORD = "display-password";
089
090        /** The Constant EXPIRY. */
091        public static final String EXPIRY = "password-expiry";
092
093    }
094}