Documentation
¶
Index ¶
- Constants
- Variables
- type FilterOptions
- type Server
- func (s Server) BuildStandardLabels(settings Settings) map[string]string
- func (s Server) EvalTemplate(t string) (string, error)
- func (s Server) GetAddress(kind string) (address string, err error)
- func (s Server) RegisterConfiguration(configurations map[string]*dynamic.Configuration, settings Settings) (err error)
- type ServerAddress
- type ServerAddresses
- type ServerList
- type Servers
- type Settings
Constants ¶
View Source
const (
TraefikEnable = "traefik.enable"
)
Variables ¶
View Source
var DefaultLabels = map[string]string{
"traefik.http.services.{{ .Name }}.loadBalancer.server.port": "80",
}
View Source
var DefaultSettings = Settings{ DefaultRule: "Host(`{{ .Name }}`)", DefaultLabels: DefaultLabels, }
Functions ¶
This section is empty.
Types ¶
type FilterOptions ¶
func (FilterOptions) Matches ¶
func (f FilterOptions) Matches(name string) bool
func (FilterOptions) MatchesServer ¶
func (f FilterOptions) MatchesServer(server *osServers.Server) bool
type ServerAddress ¶
type ServerAddresses ¶
type ServerAddresses map[string][]ServerAddress
func GetServerAddresses ¶
func GetServerAddresses(input map[string]interface{}) (addresses ServerAddresses, err error)
type ServerList ¶
type Servers ¶
type Servers struct {
Servers ServerList
}
func LoadServers ¶
func LoadServers(client *gophercloud.ServiceClient, filter FilterOptions) (servers *Servers, err error)
func (Servers) RegisterConfiguration ¶
Click to show internal directories.
Click to hide internal directories.