Documentation
¶
Index ¶
- Constants
- func InitCommonConfig(cmd *cli.Command)
- func SaveConnection(alias string, server string, token string, cmd *cli.Command) error
- func SetAgentConfig(config *AgentConfig)
- func SetServerConfig(config *ServerConfig)
- type AgentConfig
- type AuditConfig
- type BadgerDBConfig
- type ClusterConfig
- type DockerConfig
- type MySQLConfig
- type NomadConfig
- type OriginConfig
- type PodmanConfig
- type PortConfig
- type RedisConfig
- type ServerAddr
- type ServerConfig
- type TLSConfig
- type TOTPConfig
- type UIConfig
Constants ¶
View Source
const CONFIG_DIR = "knot"
View Source
const CONFIG_ENV_PREFIX = "KNOT"
View Source
const CONFIG_FILE = "knot.toml"
Variables ¶
This section is empty.
Functions ¶
func InitCommonConfig ¶ added in v0.18.0
func SaveConnection ¶ added in v0.18.0
func SetAgentConfig ¶ added in v0.18.0
func SetAgentConfig(config *AgentConfig)
SetAgentConfig sets the global agent configuration
func SetServerConfig ¶ added in v0.18.0
func SetServerConfig(config *ServerConfig)
SetServerConfig sets the global server configuration
Types ¶
type AgentConfig ¶ added in v0.18.0
type AgentConfig struct {
Endpoint string
SpaceID string
UpdateAuthorizedKeys bool
ServicePassword string
VSCodeTunnel string
SyslogPort int
APIPort int
DisableTerminal bool
Port PortConfig
TLS TLSConfig
}
func GetAgentConfig ¶ added in v0.18.0
func GetAgentConfig() *AgentConfig
GetAgentConfig returns the global agent configuration
type AuditConfig ¶ added in v0.18.0
type AuditConfig struct {
Retention int
}
type BadgerDBConfig ¶ added in v0.18.0
type ClusterConfig ¶ added in v0.18.0
type DockerConfig ¶ added in v0.18.0
type DockerConfig struct {
Host string
}
type MySQLConfig ¶ added in v0.18.0
type NomadConfig ¶ added in v0.18.0
type OriginConfig ¶ added in v0.18.0
type PodmanConfig ¶ added in v0.18.0
type PodmanConfig struct {
Host string
}
type PortConfig ¶ added in v0.18.0
type RedisConfig ¶ added in v0.18.0
type ServerAddr ¶ added in v0.12.2
func GetServerAddr ¶ added in v0.12.2
func GetServerAddr(alias string, cmd *cli.Command) *ServerAddr
Read the server configuration information and generate the websocket address
type ServerConfig ¶ added in v0.18.0
type ServerConfig struct {
Listen string
ListenAgent string
URL string
AgentEndpoint string
WildcardDomain string
HTMLPath string
TemplatePath string
AgentPath string
PrivateFilesPath string
PublicFilesPath string
DownloadPath string
DisableSpaceCreate bool
ListenTunnel string
TunnelDomain string
TunnelServer string
TerminalWebGL bool
EncryptionKey string
Zone string
Timezone string
LeafNode bool
AuthIPRateLimiting bool
Origin OriginConfig
TOTP TOTPConfig
UI UIConfig
Cluster ClusterConfig
MySQL MySQLConfig
BadgerDB BadgerDBConfig
Redis RedisConfig
Audit AuditConfig
Docker DockerConfig
Podman PodmanConfig
Nomad NomadConfig
TLS TLSConfig
}
func GetServerConfig ¶ added in v0.18.0
func GetServerConfig() *ServerConfig
GetServerConfig returns the global server configuration
type TOTPConfig ¶ added in v0.18.0
Click to show internal directories.
Click to hide internal directories.