Documentation ¶
Index ¶
- type Certificator
- type Mirrorer
- type Sources
- func (sources *Sources) AddMirrorer(name string, source Mirrorer)
- func (sources *Sources) AddWatcher(name string, source WatchingMirrorer)
- func (sources *Sources) Certificates() tls.Certificate
- func (sources *Sources) Mirrors() (mirrors map[string]string)
- func (sources *Sources) Stop()
- func (sources *Sources) Watch(cb func(map[string]string))
- type WatchingMirrorer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Certificator ¶
type Certificator interface {
Certificates() (tls.Certificate, error)
}
Certificator provides a source to fetch TLS certificates.
type Sources ¶
type Sources struct {
// contains filtered or unexported fields
}
Sources maintains one or more sources of image mirrors.
func (*Sources) AddMirrorer ¶
AddMirrorer adds a new mirror source to the sources engine.
func (*Sources) AddWatcher ¶
func (sources *Sources) AddWatcher(name string, source WatchingMirrorer)
AddWatcher adds a new watcher to the sources engine.
func (*Sources) Certificates ¶
func (sources *Sources) Certificates() tls.Certificate
Certificates retrieves TLS certificates from the configured certificate source.
type WatchingMirrorer ¶
WatchingMirrorer is a source that can receive updates to it's mirror configuration without a restart of the application.
Click to show internal directories.
Click to hide internal directories.