Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// Name of image: "sourcegraph/server"
Image string
// Optional: registry url. Provides default.
Registry string `default:"https://registry.hub.docker.com/v1/repositories/"`
Blacklist []string
Whitelist string
StripPrefix string `toml:"strip_prefix"`
StripSuffix string `toml:"strip_suffix"`
}
Config is user provided config.toml
type Context ¶
type Context struct {
// Parsed config for app run.
Config Config
// We provide a HttpClient instance, so that we can inject mocks.
HttpClient HTTPClient
// Global loggeer instance.
Logger zerolog.Logger
}
Context is the global context.
type HTTPClient ¶
HTTPClient interface, used for mocks.
Click to show internal directories.
Click to hide internal directories.