haproxy-lb/pkg/api/v1/schema/schema.go
2021-03-01 07:40:10 +01:00

30 lines
655 B
Go

package schema
/*
healthCheckNodePort
*/
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"`
}