mirror of
https://github.com/paralus/paralus.git
synced 2026-05-07 00:46:52 +00:00
imports github.com/RafayLabs/rcloud-base/internal/fixtures imports github.com/RafayLabs/rcloud-base/pkg/service imports github.com/RafayLabs/rcloud-base/pkg/auth/v3 imports github.com/RafayLabs/rcloud-base/pkg/service
51 lines
1.1 KiB
Go
51 lines
1.1 KiB
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
|
|
)
|
|
|
|
// audit
|
|
const (
|
|
EventDocType = "event"
|
|
AlertDocType = "alert"
|
|
RelayAuditDocType = "relay_audit" // relay API audits
|
|
RelayCommandsDocType = "relay_commands"
|
|
RelayAPIAuditType = "RelayAPI"
|
|
RelayCommandsAuditType = "RelayCommands"
|
|
)
|
|
|
|
var SessionDataKey contextKey
|