mirror of
https://github.com/paralus/paralus.git
synced 2026-05-08 17:36:56 +00:00
* restructure rcloud-base as a single base controller * updated master.rest * moved sentry from internal to pkg as it is used by relay * removing unused rpc and it's dependencies * Fix usermgmt tests * Don't redefine variables in rest file Co-authored-by: Abin Simon <abin.simon@rafay.co>
39 lines
866 B
Go
39 lines
866 B
Go
package common
|
|
|
|
import "time"
|
|
|
|
// environment variables for configuration
|
|
const (
|
|
Production = "PRODUCTION"
|
|
ServerPort = "SERVER_PORT"
|
|
CertFolder = "CERT_FOLDER"
|
|
EdgeSecHost = "EDGE_SEC_HOST"
|
|
EdgeSecPort = "EDGE_SEC_PORT"
|
|
SaltMasterHost = "SALT_MASTER_HOST"
|
|
SaltMasterAdvertisedHost = "SALT_MASTER_ADV_HOST"
|
|
ClusterSchedulerHost = "CLUSTER_SCHEDULER_HOST"
|
|
ClusterSchedulerPort = "CLUSTER_SCHEDULER_PORT"
|
|
)
|
|
|
|
// workload prefixes
|
|
const (
|
|
NamespacePrefix = "ns"
|
|
)
|
|
|
|
// rcloud constant
|
|
const (
|
|
HeartBeatInterval = time.Second * 30
|
|
SessionID = "sessionid"
|
|
)
|
|
|
|
const (
|
|
// LOCAL_ACCOUNT is AccountType enum value for local users
|
|
ACCOUNT_TYPE_LOCAL = "LOCAL"
|
|
// SSO_ACCOUNT is AccountType enum value for SSO users
|
|
ACCOUNT_TYPE_SSO = "SSO"
|
|
)
|
|
|
|
const (
|
|
MaxDials = 2
|
|
)
|