initial commit
This commit is contained in:
commit
7715fcf373
37 changed files with 2957 additions and 0 deletions
34
pkg/api/v1/schema/schema.go
Normal file
34
pkg/api/v1/schema/schema.go
Normal 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"`
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue