Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetLogLevel ¶
func GetScannerMetadata ¶
Types ¶
type APIConfig ¶
type APIConfig struct { Addr string `env:"SCANNER_API_SERVER_ADDR" envDefault:":8080"` TLSCertificate string `env:"SCANNER_API_SERVER_TLS_CERTIFICATE"` TLSKey string `env:"SCANNER_API_SERVER_TLS_KEY"` ReadTimeout time.Duration `env:"SCANNER_API_SERVER_READ_TIMEOUT" envDefault:"15s"` WriteTimeout time.Duration `env:"SCANNER_API_SERVER_WRITE_TIMEOUT" envDefault:"15s"` }
func GetAPIConfig ¶
func (*APIConfig) IsTLSEnabled ¶
type ClairConfig ¶
type ClairConfig struct {
URL string `env:"SCANNER_CLAIR_URL" envDefault:"http://harbor-harbor-clair:6060"`
}
func GetClairConfig ¶
func GetClairConfig() (cfg ClairConfig, err error)
Click to show internal directories.
Click to hide internal directories.