haproxy-lb/pkg/api/v1/schema/schema.go
2021-03-06 16:51:36 +01:00

32 lines
677 B
Go

package schema
/*
healthCheckNodePort
*/
const Version = "v1"
type LoadBalancer struct {
Name string `json:"name"`
IP string `json:"ip,omitempty"`
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"`
}