Documentation ¶
Index ¶
- Constants
- type BackendServer
- type BackendServerCheckSslOptions
- func (m *BackendServerCheckSslOptions) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *BackendServerCheckSslOptions) MarshalBinary() ([]byte, error)
- func (m *BackendServerCheckSslOptions) UnmarshalBinary(b []byte) error
- func (m *BackendServerCheckSslOptions) Validate(formats strfmt.Registry) error
- type Endpoint
- type EndpointBackendCheckCommands
- func (m *EndpointBackendCheckCommands) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *EndpointBackendCheckCommands) MarshalBinary() ([]byte, error)
- func (m *EndpointBackendCheckCommands) UnmarshalBinary(b []byte) error
- func (m *EndpointBackendCheckCommands) Validate(formats strfmt.Registry) error
- type EndpointFrontendSslOptions
- func (m *EndpointFrontendSslOptions) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *EndpointFrontendSslOptions) MarshalBinary() ([]byte, error)
- func (m *EndpointFrontendSslOptions) UnmarshalBinary(b []byte) error
- func (m *EndpointFrontendSslOptions) Validate(formats strfmt.Registry) error
- type Instance
- type InstanceConfig
- type ReadyStatus
Constants ¶
const ( // EndpointModeTCP captures enum value "tcp" EndpointModeTCP string = "tcp" // EndpointModeUDP captures enum value "udp" EndpointModeUDP string = "udp" // EndpointModeHTTP captures enum value "http" EndpointModeHTTP string = "http" )
const ( // EndpointBackendCheckCommandsCheckTypeHTTPDashCheck captures enum value "http-check" EndpointBackendCheckCommandsCheckTypeHTTPDashCheck string = "http-check" // EndpointBackendCheckCommandsCheckTypeTCPDashCheck captures enum value "tcp-check" EndpointBackendCheckCommandsCheckTypeTCPDashCheck string = "tcp-check" )
const ( // EndpointFrontendSslOptionsVerifyRequired captures enum value "required" EndpointFrontendSslOptionsVerifyRequired string = "required" // EndpointFrontendSslOptionsVerifyOptional captures enum value "optional" EndpointFrontendSslOptionsVerifyOptional string = "optional" )
const ( // BackendServerCheckSslOptionsVerifyNone captures enum value "none" BackendServerCheckSslOptionsVerifyNone string = "none" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackendServer ¶
type BackendServer struct { // check ssl options CheckSslOptions *BackendServerCheckSslOptions `json:"check_ssl_options,omitempty"` // Backend server IP address // Required: true // Pattern: ((^\s*((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))\s*$)|(^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$)) Ipaddress string `json:"ipaddress"` // Backend server name // Required: true // Pattern: ^[A-Za-z0-9\-_.]{1,32}$ Name string `json:"name"` // Backend server options Options *string `json:"options,omitempty"` // Backend server port // Required: true Port uint16 `json:"port"` }
BackendServer Backend server
swagger:model BackendServer
func (*BackendServer) ContextValidate ¶
ContextValidate validate this backend server based on the context it is used
func (*BackendServer) MarshalBinary ¶
func (m *BackendServer) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*BackendServer) UnmarshalBinary ¶
func (m *BackendServer) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type BackendServerCheckSslOptions ¶ added in v0.4.0
type BackendServerCheckSslOptions struct { // ca cert CaCert *string `json:"ca_cert,omitempty"` // client cert ClientCert string `json:"client_cert,omitempty"` // client key ClientKey string `json:"client_key,omitempty"` // verify // Enum: [none] Verify *string `json:"verify,omitempty"` }
BackendServerCheckSslOptions Backend check commands
swagger:model BackendServerCheckSslOptions
func (*BackendServerCheckSslOptions) ContextValidate ¶ added in v0.4.0
func (m *BackendServerCheckSslOptions) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this backend server check ssl options based on context it is used
func (*BackendServerCheckSslOptions) MarshalBinary ¶ added in v0.4.0
func (m *BackendServerCheckSslOptions) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*BackendServerCheckSslOptions) UnmarshalBinary ¶ added in v0.4.0
func (m *BackendServerCheckSslOptions) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Endpoint ¶ added in v0.4.0
type Endpoint struct { // backend check commands BackendCheckCommands *EndpointBackendCheckCommands `json:"backend_check_commands,omitempty"` // Backend default server options BackendDefaultServer *string `json:"backend_default_server,omitempty"` // Backend options // Example: ["httpchk GET /"] BackendOptions []string `json:"backend_options"` // Backend servers // Required: true BackendServers []*BackendServer `json:"backend_servers"` // Balance algorithm // Required: true Balance string `json:"balance"` // Frontend options // Example: ssl FrontendOptions *string `json:"frontend_options,omitempty"` // Frontend port // Example: 443 // Required: true FrontendPort uint16 `json:"frontend_port"` // frontend ssl options FrontendSslOptions *EndpointFrontendSslOptions `json:"frontend_ssl_options,omitempty"` // Protocol mode // Required: true // Enum: [tcp udp http] Mode string `json:"mode"` }
Endpoint Endpoint
swagger:model Endpoint
func (*Endpoint) ContextValidate ¶ added in v0.4.0
ContextValidate validate this endpoint based on the context it is used
func (*Endpoint) MarshalBinary ¶ added in v0.4.0
MarshalBinary interface implementation
func (*Endpoint) UnmarshalBinary ¶ added in v0.4.0
UnmarshalBinary interface implementation
type EndpointBackendCheckCommands ¶ added in v0.4.0
type EndpointBackendCheckCommands struct { // check type // Example: http-check // Enum: [http-check tcp-check] CheckType string `json:"check_type,omitempty"` // Backend TCP check commands // Example: ["expect status 200"] Commands []string `json:"commands"` }
EndpointBackendCheckCommands Backend check commands
swagger:model EndpointBackendCheckCommands
func (*EndpointBackendCheckCommands) ContextValidate ¶ added in v0.4.0
func (m *EndpointBackendCheckCommands) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this endpoint backend check commands based on context it is used
func (*EndpointBackendCheckCommands) MarshalBinary ¶ added in v0.4.0
func (m *EndpointBackendCheckCommands) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*EndpointBackendCheckCommands) UnmarshalBinary ¶ added in v0.4.0
func (m *EndpointBackendCheckCommands) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type EndpointFrontendSslOptions ¶ added in v0.4.0
type EndpointFrontendSslOptions struct { // ca cert CaCert *string `json:"ca_cert,omitempty"` // server cert ServerCert string `json:"server_cert,omitempty"` // server key ServerKey string `json:"server_key,omitempty"` // verify // Enum: [required optional] Verify *string `json:"verify,omitempty"` }
EndpointFrontendSslOptions Backend check commands
swagger:model EndpointFrontendSslOptions
func (*EndpointFrontendSslOptions) ContextValidate ¶ added in v0.4.0
func (m *EndpointFrontendSslOptions) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this endpoint frontend ssl options based on context it is used
func (*EndpointFrontendSslOptions) MarshalBinary ¶ added in v0.4.0
func (m *EndpointFrontendSslOptions) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*EndpointFrontendSslOptions) UnmarshalBinary ¶ added in v0.4.0
func (m *EndpointFrontendSslOptions) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Instance ¶
type Instance struct { // config // Required: true Config *InstanceConfig `json:"config"` // Instance ID // Required: true // Maximum: 255 // Minimum: 0 ID uint8 `json:"id"` // Last modified time // Minimum: 0 LastModified int64 `json:"last_modified,omitempty"` // Instance status // Required: true Status map[string]string `json:"status"` }
Instance Instance
swagger:model Instance
func (*Instance) ContextValidate ¶
ContextValidate validate this instance based on the context it is used
func (*Instance) MarshalBinary ¶
MarshalBinary interface implementation
func (*Instance) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type InstanceConfig ¶
type InstanceConfig struct { // Endpoints // Required: true Endpoints []*Endpoint `json:"endpoints"` // Frontend network interface // Example: eth0 // Required: true // Pattern: ^[A-Za-z0-9\-_.]{1,32}$ FrontendInterface string `json:"frontend_interface"` // Frontend IP address // Example: 192.168.1.2 // Required: true // Pattern: ((^\s*((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))\s*$)|(^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$)) FrontendIpaddress string `json:"frontend_ipaddress"` // Frontend network prefix // Example: 24 // Required: true // Maximum: 32 // Minimum: 8 FrontendNetPrefix uint8 `json:"frontend_net_prefix"` // Instance name // Required: true // Pattern: ^[A-Za-z0-9\-_.]{1,32}$ Name string `json:"name"` }
InstanceConfig Instance config
swagger:model InstanceConfig
func (*InstanceConfig) ContextValidate ¶
ContextValidate validate this instance config based on the context it is used
func (*InstanceConfig) MarshalBinary ¶
func (m *InstanceConfig) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*InstanceConfig) UnmarshalBinary ¶
func (m *InstanceConfig) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ReadyStatus ¶
ReadyStatus Ready status
swagger:model ReadyStatus
func (ReadyStatus) ContextValidate ¶
ContextValidate validates this ready status based on context it is used