initial commit

This commit is contained in:
ston1th 2020-11-22 12:59:12 +01:00
commit 7715fcf373
37 changed files with 2957 additions and 0 deletions

View file

@ -0,0 +1,34 @@
package schema
/*
healthCheckNodePort
*/
type LBConfig struct {
LoadBalancers []LoadBalancer
}
type LoadBalancer struct {
Name string `json:"name"`
IP string `json:"ip"`
Options Options `json:"options,omitempty"`
Ports []Port `json:"ports,omitempty"`
}
type Options struct {
Frontend []string `json:"frontend,omitempty"`
Backend []string `json:"backend,omitempty"`
DefaultServer string `json:"defaultServer,omitempty`
}
type Port struct {
Port int `json:"port,omitempty"`
Servers []Server `json:"servers,omitempty"`
}
type Server struct {
Name string `json:"name,omitempty"`
IP string `json:"ip,omitempty"`
Port int `json:"port,omitempty"`
}