Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var TimeZone *time.Location
Not modify this variable!!! This variable will be filled when initializing the config
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Timezone string `envconfig:"app_timezone" default:"UTC"` // String timezone format SaveLogs bool `envconfig:"app_save_logs" default:"false"` Kubernetes KubernetesConfig Exec ExecConfig Cron CronConfig Telegram TelegramConfig FileStorage FileStorageConfig }
func (*Config) CronInfoRequired ¶
func (*Config) FileStorageRequired ¶
type CronConfig ¶
type ExecConfig ¶
type FileStorageConfig ¶
type KubernetesConfig ¶
type KubernetesConfig struct { // Kind default Pod ApiVersion string `default:"v1"` Host string `envconfig:"k8s_host" required:"true"` Insecure bool `envconfig:"k8s_insecure" default:"true"` BearerToken string `envconfig:"k8s_auth_token" required:"true"` Namespace string `envconfig:"k8s_namespace" required:"true"` LabelSelector string `envconfig:"k8s_label_selector" required:"true"` ContainerName string `envconfig:"k8s_pod_container_name" required:"true"` }
type TelegramConfig ¶
type TelegramConfig struct { ApiEndpoint string `envconfig:"tg_bot_api_endpoint" default:"https://api.telegram.org/bot%s/%s"` HttpProxy string `envconfig:"tg_bot_http_proxy"` BotToken string `envconfig:"tg_bot_token"` Notification TelegramNotificationConfig }
func (*TelegramConfig) NotificationsEnabled ¶
func (tgcfg *TelegramConfig) NotificationsEnabled() bool
Func for check telegram notifications enabled
type TelegramNotificationConfig ¶
type TelegramNotificationConfig struct { Backup TelegramNotificationBackupConfig Info TelegramNotificationInfoConfig }
Click to show internal directories.
Click to hide internal directories.