config

package
v0.0.0-...-db4d901 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const DEFAULT_CACHE_TTL_HOURS = 2

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Registries    map[string]RegistryConfig `json:"registries"`
	CacheTTLHours int                       `json:"cache_ttl_hours"`
}

func NewConfig

func NewConfig() Config

func NewFromFile

func NewFromFile(path string) (cfg Config, err error)

func (*Config) GetRegistryConfig

func (c *Config) GetRegistryConfig(domain string) RegistryConfig

type RegistryConfig

type RegistryConfig struct {
	AuthDomain string `json:"auth_domain"`
	Insecure   bool   `json:"insecure"`
	NonSSL     bool   `json:"non_ssl"`
	SkipPing   bool   `json:"skip_ping"`
	Username   string `json:"username"`
	Password   string `json:"password"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL