Documentation ¶
Index ¶
- Constants
- Variables
- func AutoUpdateEnabled() bool
- func CacheEnabled() bool
- func DeployedByOperator() bool
- func DisableRemoteIPCheck() bool
- func GetAPIConnString() string
- func GetAPIHost() string
- func GetAPIPort() string
- func GetAllowedEmailDomains() string
- func GetAllowedOrigin() string
- func GetAuthProviderInfo() (pi []string)
- func GetAzureTenant() string
- func GetBrokerType() string
- func GetCoreDNSAddr() string
- func GetDB() string
- func GetEgressLimit() int
- func GetEmqxAppID() string
- func GetEmqxAppSecret() string
- func GetEmqxRestEndpoint() string
- func GetEnvironment() string
- func GetFrontendURL() string
- func GetIngressLimit() int
- func GetJwtValidityDuration() time.Duration
- func GetLicenseKey() string
- func GetMachinesLimit() int
- func GetMasterKey() string
- func GetMessageQueueEndpoint() (string, bool)
- func GetMetricInterval() string
- func GetMqPassword() string
- func GetMqUserName() string
- func GetNetmakerTenantID() string
- func GetNetworkLimit() int
- func GetNodeID() string
- func GetOwnerEmail() string
- func GetPlatform() string
- func GetPublicBrokerEndpoint() string
- func GetPublicIP() (string, error)
- func GetRacAutoDisable() bool
- func GetSQLConf() config.SQLConfig
- func GetSQLConn() string
- func GetSQLDB() string
- func GetSQLHost() string
- func GetSQLPass() string
- func GetSQLPort() int32
- func GetSQLSSLMode() string
- func GetSQLUser() string
- func GetServer() string
- func GetServerConfig() config.ServerConfig
- func GetServerInfo() models.ServerConfig
- func GetUserLimit() int
- func GetVerbosity() int32
- func GetVersion() string
- func IsBasicAuthEnabled() bool
- func IsDNSMode() bool
- func IsDisplayKeys() bool
- func IsEndpointDetectionEnabled() bool
- func IsMessageQueueBackend() bool
- func IsMetricsExporter() bool
- func IsRestBackend() bool
- func SetHost() error
- func SetNodeID(id string)
- func SetVersion(v string)
- func Telemetry() string
- type Emqxdeploy
Constants ¶
const EmqxBrokerType = "emqx"
EmqxBrokerType denotes the broker type for EMQX MQTT
Variables ¶
var ( Version = "dev" IsPro = false ErrLicenseValidation error EmqxCloudDeploy Emqxdeploy = "cloud" EmqxOnPremDeploy Emqxdeploy = "on-prem" )
Functions ¶
func AutoUpdateEnabled ¶
func AutoUpdateEnabled() bool
AutoUpdateEnabled returns a boolean indicating whether netclient auto update is enabled or disabled default is enabled
func CacheEnabled ¶ added in v0.22.0
func CacheEnabled() bool
CacheEnabled - checks if cache is enabled
func DeployedByOperator ¶
func DeployedByOperator() bool
DeployedByOperator - returns true if the instance is deployed by netmaker operator
func DisableRemoteIPCheck ¶
func DisableRemoteIPCheck() bool
DisableRemoteIPCheck - disable the remote ip check
func GetAPIConnString ¶
func GetAPIConnString() string
GetAPIConnString - gets the api connections string
func GetAllowedEmailDomains ¶ added in v0.24.0
func GetAllowedEmailDomains() string
GetAllowedEmailDomains - gets the allowed email domains for oauth signup
func GetAuthProviderInfo ¶
func GetAuthProviderInfo() (pi []string)
GetAuthProviderInfo = gets the oauth provider info
func GetAzureTenant ¶
func GetAzureTenant() string
GetAzureTenant - retrieve the azure tenant ID from env variable or config file
func GetEgressLimit ¶
func GetEgressLimit() int
GetEgressLimit - fetches free tier limits on egresses
func GetEmqxAppID ¶ added in v0.23.0
func GetEmqxAppID() string
GetEmqxAppID - gets the emqx cloud app id
func GetEmqxAppSecret ¶ added in v0.23.0
func GetEmqxAppSecret() string
GetEmqxAppSecret - gets the emqx cloud app secret
func GetEmqxRestEndpoint ¶
func GetEmqxRestEndpoint() string
GetEmqxRestEndpoint - returns the REST API Endpoint of EMQX
func GetEnvironment ¶
func GetEnvironment() string
GetEnvironment returns the environment the server is running in (e.g. dev, staging, prod...)
func GetIngressLimit ¶
func GetIngressLimit() int
GetIngressLimit - fetches free tier limits on ingresses
func GetJwtValidityDuration ¶
GetJwtValidityDuration - returns the JWT validity duration in seconds
func GetLicenseKey ¶
func GetLicenseKey() string
GetLicenseKey - retrieves pro license value from env or conf files
func GetMachinesLimit ¶
func GetMachinesLimit() int
GetMachinesLimit - fetches free tier limits on machines (clients + hosts)
func GetMasterKey ¶
func GetMasterKey() string
GetMasterKey - gets the configured master key of server
func GetMessageQueueEndpoint ¶
GetMessageQueueEndpoint - gets the message queue endpoint
func GetMetricInterval ¶ added in v0.24.3
func GetMetricInterval() string
GetMetricInterval - get the publish metric interval
func GetNetmakerTenantID ¶
func GetNetmakerTenantID() string
GetNetmakerTenantID - get's the associated, Netmaker, tenant ID to verify ownership
func GetNetworkLimit ¶
func GetNetworkLimit() int
GetNetworkLimit - fetches free tier limits on networks
func GetOwnerEmail ¶ added in v0.22.0
func GetOwnerEmail() string
GetOwnerEmail - gets the owner email (saas)
func GetPublicBrokerEndpoint ¶
func GetPublicBrokerEndpoint() string
GetPublicBrokerEndpoint - returns the public broker endpoint which shall be used by netclient
func GetRacAutoDisable ¶
func GetRacAutoDisable() bool
GetRacAutoDisable - returns whether the feature to autodisable RAC is enabled
func GetSQLConf ¶
func GetSQLHost ¶
func GetSQLHost() string
func GetSQLPass ¶
func GetSQLPass() string
func GetSQLPort ¶
func GetSQLPort() int32
func GetSQLSSLMode ¶
func GetSQLSSLMode() string
func GetSQLUser ¶
func GetSQLUser() string
func GetServerConfig ¶
func GetServerConfig() config.ServerConfig
GetServerConfig - gets the server config into memory from file or env
func GetServerInfo ¶
func GetServerInfo() models.ServerConfig
GetServerInfo - gets the server config into memory from file or env
func GetVerbosity ¶
func GetVerbosity() int32
func IsBasicAuthEnabled ¶
func IsBasicAuthEnabled() bool
IsBasicAuthEnabled - checks if basic auth has been configured to be turned off
func IsDisplayKeys ¶
func IsDisplayKeys() bool
IsDisplayKeys - should server be able to display keys?
func IsEndpointDetectionEnabled ¶ added in v0.24.0
func IsEndpointDetectionEnabled() bool
IsEndpointDetectionEnabled - returns true if endpoint detection enabled
func IsMessageQueueBackend ¶
func IsMessageQueueBackend() bool
IsMessageQueueBackend - checks if message queue is on or off
func IsMetricsExporter ¶
func IsMetricsExporter() bool
IsMetricsExporter - checks if metrics exporter is on or off
Types ¶
type Emqxdeploy ¶ added in v0.23.0
type Emqxdeploy string
Emqxdeploy - emqx deploy type
func GetEmqxDeployType ¶ added in v0.23.0
func GetEmqxDeployType() (deployType Emqxdeploy)
GetEmqxDeployType - fetches emqx deploy type this server uses