Files
paralus/pkg/common/constants.go
nirav-rafay c66bdc25cd restructure rcloud-base as a single base controller (#37)
* 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>
2022-03-03 17:59:06 +05:30

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
)