services

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 24, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeleteParams

type DeleteParams struct {
	BackendName string `json:"backendName"`
}

type HTTPLBUpdaterClient

type HTTPLBUpdaterClient interface {
	Update(ctx context.Context, url string, params *UpdateParams) error
	Delete(ctx context.Context, url string, params *DeleteParams) error
}

func NewHTTPLBUpdaterClient

func NewHTTPLBUpdaterClient() HTTPLBUpdaterClient

type JSONErr

type JSONErr struct {
	Err string `json:"err"`
}

type UpdateParams

type UpdateParams struct {
	BackendName     string           `json:"backendName"`
	LBPort          int              `json:"lbPort"`
	LBProtocol      string           `json:"lbProtocol"`
	UpstreamServers []UpstreamServer `json:"upstreamServers"`
	// fields below are not implemented in CRD yet
	ProxyTimeoutSeconds        int `json:"proxyTimeoutSeconds"`
	ProxyConnectTimeoutSeconds int `json:"proxyConnectTimeoutSeconds"`
}

type UpstreamServer

type UpstreamServer struct {
	Host string `json:"host"`
	Port int    `json:"port"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL