web

package
v3.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddIPParams

type AddIPParams struct {
	HealthCheckInterval int               `json:"healthcheck_interval"`
	Checks              []api.HealthCheck `json:"checks"`
	IP                  string            `json:"ip"`
}

Legacy types. Those should be removed later in the v3 branch

type CreateEndpointParams

type CreateEndpointParams struct {
	HealthCheckInterval int               `json:"healthcheck_interval"`
	Checks              []api.HealthCheck `json:"checks"`
	Plugin              string            `json:"plugin"`
	PluginConfig        json.RawMessage   `json:"plugin_config"`
}

type EncryptedStorageController added in v3.1.0

type EncryptedStorageController struct {
	// contains filtered or unexported fields
}

func NewEncryptedStorageController added in v3.1.0

func NewEncryptedStorageController(encryptedStorage models.EncryptedStorage) EncryptedStorageController

func (EncryptedStorageController) RotateEncryptionKey added in v3.1.0

func (d EncryptedStorageController) RotateEncryptionKey(w http.ResponseWriter, r *http.Request, _ map[string]string) error

type EndpointController

type EndpointController struct {
	// contains filtered or unexported fields
}

func NewEndpointController

func NewEndpointController(scheduler scheduler.Scheduler, storage models.Storage, endpointCreator endpoint.Creator, encryptedStorage models.EncryptedStorage) EndpointController

func (EndpointController) Create

func (EndpointController) Delete

func (c EndpointController) Delete(w http.ResponseWriter, r *http.Request, params map[string]string) error

func (EndpointController) Failover

func (c EndpointController) Failover(w http.ResponseWriter, r *http.Request, params map[string]string) error

func (EndpointController) Get

func (EndpointController) GetHosts

func (c EndpointController) GetHosts(w http.ResponseWriter, r *http.Request, params map[string]string) error

func (EndpointController) List

func (EndpointController) Update

func (c EndpointController) Update(w http.ResponseWriter, r *http.Request, params map[string]string) error

type GetIPResponse

type GetIPResponse struct {
	IP api.Endpoint `json:"ip"`
}

type IPController

type IPController struct {
	// contains filtered or unexported fields
}

func NewIPController

func NewIPController(scheduler scheduler.Scheduler, storage models.Storage, endpointCreator endpoint.Creator) IPController

func (IPController) Create

func (c IPController) Create(w http.ResponseWriter, r *http.Request, _ map[string]string) error

func (IPController) Get

func (c IPController) Get(w http.ResponseWriter, r *http.Request, params map[string]string) error

func (IPController) List

type ListIPsResponse

type ListIPsResponse struct {
	IPs []api.Endpoint `json:"ips"`
}

type VersionController

type VersionController struct {
	// contains filtered or unexported fields
}

func NewVersionController

func NewVersionController(version string) VersionController

func (VersionController) Version

Jump to

Keyboard shortcuts

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