Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetProviders ¶
func GetProviders() []string
Types ¶
type BlockingStrategy ¶
type Config ¶
type DynamicStrategy ¶
type DynamicStrategy struct { CustomThemesPath string `mapstructure:"CUSTOM_THEMES_PATH" yaml:"customThemesPath"` ShowDetailsByDefault bool `mapstructure:"SHOW_DETAILS_BY_DEFAULT" yaml:"showDetailsByDefault"` DefaultTheme string `mapstructure:"DEFAULT_THEME" yaml:"defaultTheme" default:"hacker-terminal"` DefaultRefreshFrequency time.Duration `mapstructure:"DEFAULT_REFRESH_FREQUENCY" yaml:"defaultRefreshFrequency" default:"5s"` }
type Kubernetes ¶ added in v1.6.0
type Logging ¶
type Logging struct {
Level string `mapstructure:"LEVEL" yaml:"level" default:"info"`
}
func NewLoggingConfig ¶
func NewLoggingConfig() Logging
type Provider ¶
type Provider struct { Name string `mapstructure:"NAME" yaml:"provider,omitempty"` Kubernetes Kubernetes }
Provider holds the provider description It can be either docker, swarm or kubernetes
func NewProviderConfig ¶
func NewProviderConfig() Provider
type Server ¶
type Server struct { Port int `mapstructure:"PORT" yaml:"port" default:"10000"` BasePath string `mapstructure:"BASE_PATH" yaml:"basePath" default:"/"` }
func NewServerConfig ¶
func NewServerConfig() Server
type Sessions ¶
type Sessions struct { DefaultDuration time.Duration `mapstructure:"DEFAULT_DURATION" yaml:"defaultDuration" default:"5m"` ExpirationInterval time.Duration `mapstructure:"EXPIRATION_INTERVAL" yaml:"expirationInterval" default:"20s"` }
func NewSessionsConfig ¶
func NewSessionsConfig() Sessions
type Storage ¶
type Storage struct {
File string `mapstructure:"FILE" yaml:"file" default:""`
}
func NewStorageConfig ¶
func NewStorageConfig() Storage
type Strategy ¶
type Strategy struct { Dynamic DynamicStrategy Blocking BlockingStrategy }
func NewStrategyConfig ¶
func NewStrategyConfig() Strategy
Click to show internal directories.
Click to hide internal directories.