common

package
v0.2.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 28, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
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"
)

environment variables for configuration

View Source
const (
	HeartBeatInterval = time.Second * 30
	SessionID         = "sessionid"
)

paralus constant

View Source
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"
)
View Source
const (
	EventDocType           = "event"
	AlertDocType           = "alert"
	RelayAuditDocType      = "relay_audit" // relay API audits
	RelayCommandsDocType   = "relay_commands"
	RelayAPIAuditType      = "RelayAPI"
	RelayCommandsAuditType = "RelayCommands"
)

audit

View Source
const (
	MaxDials = 2
)
View Source
const (
	NamespacePrefix = "ns"
)

workload prefixes

Variables

View Source
var (
	PrjNameRX = regexp.MustCompile(`^[a-zA-Z][-a-zA-Z0-9]*[a-zA-Z0-9]$`)
)

Regex

View Source
var SessionDataKey contextKey
View Source
var SessionInternalKey contextKey

Functions

This section is empty.

Types

type CliConfigDownloadData

type CliConfigDownloadData struct {
	Profile      string `json:"profile"`
	RestEndpoint string `json:"rest_endpoint"`
	OpsEndpoint  string `json:"ops_endpoint"`
	ApiKey       string `json:"api_key"`
	ApiSecret    string `json:"api_secret"`
	Project      string `json:"project"`
	Organization string `json:"organization"`
	Partner      string `json:"partner"`
}

type DownloadData

type DownloadData struct {
	ControlAddr     string
	APIAddr         string
	RelayAgentImage string
}

type Relay

type Relay struct {
	Token         string `json:"token"`
	Addr          string `json:"addr"`
	Endpoint      string `json:"endpoint"`
	Name          string `json:"name"`
	TemplateToken string `json:"templateToken"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL