config

package
v0.0.0-...-d37e48f Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitConfig

func InitConfig()

Types

type CacheConfig

type CacheConfig struct {
	ObjectTTL   int              `mapstructure:"object_ttl"`
	RedisConfig RedisConfig      `mapstructure:"redis"`
	LocalConfig LocalCacheConfig `mapstructure:"local"`
}

type Config

type Config struct {
	Port        int         `mapstructure:"port"`
	CacheConfig CacheConfig `mapstructure:"cache"`
	OutputDir   string      `mapstructure:"output_dir"`
	KubeConfig  string      `mapstructure:"kube_config"`
	Namespace   string      `mapstructure:"namespace"`
	CertFile    string      `mapstructure:"tls_cert_file"`
	KeyFile     string      `mapstructure:"tls_key_file"`
	TrivyPath   string      `mapstructure:"trivy_path"`
}
var Cfg Config

type LocalCacheConfig

type LocalCacheConfig struct {
	Expiration int `mapstructure:"expiration"`
	MaxSize    int `mapstructure:"max_size"`
}

type RedisConfig

type RedisConfig struct {
	Address  string `mapstructure:"address"`
	Password string `mapstructure:"password"`
	DB       int    `mapstructure:"database"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳