mirror of
https://github.com/crazy-max/diun.git
synced 2025-04-10 22:00:13 +00:00
30 lines
1.3 KiB
Go
30 lines
1.3 KiB
Go
package model
|
|
|
|
// Providers represents a provider configuration
|
|
type Providers struct {
|
|
Docker map[string]PrdDocker `yaml:"docker,omitempty" json:",omitempty"`
|
|
Swarm map[string]PrdSwarm `yaml:"swarm,omitempty" json:",omitempty"`
|
|
Static []PrdStatic `yaml:"static,omitempty" json:",omitempty"`
|
|
}
|
|
|
|
// PrdDocker holds docker provider configuration
|
|
type PrdDocker struct {
|
|
Endpoint string `yaml:"endpoint,omitempty" json:",omitempty"`
|
|
APIVersion string `yaml:"api_version,omitempty" json:",omitempty"`
|
|
TLSCertsPath string `yaml:"tls_certs_path,omitempty" json:",omitempty"`
|
|
TLSVerify bool `yaml:"tls_verify,omitempty" json:",omitempty"`
|
|
WatchByDefault bool `yaml:"watch_by_default,omitempty" json:",omitempty"`
|
|
WatchStopped bool `yaml:"watch_stopped,omitempty" json:",omitempty"`
|
|
}
|
|
|
|
// PrdSwarm holds swarm provider configuration
|
|
type PrdSwarm struct {
|
|
Endpoint string `yaml:"endpoint,omitempty" json:",omitempty"`
|
|
APIVersion string `yaml:"api_version,omitempty" json:",omitempty"`
|
|
TLSCertsPath string `yaml:"tls_certs_path,omitempty" json:",omitempty"`
|
|
TLSVerify bool `yaml:"tls_verify,omitempty" json:",omitempty"`
|
|
WatchByDefault bool `yaml:"watch_by_default,omitempty" json:",omitempty"`
|
|
}
|
|
|
|
// PrdStatic holds static provider configuration
|
|
type PrdStatic Image
|