Documentation
¶
Index ¶
- type AddIPParams
- type CreateEndpointParams
- type EncryptedStorageController
- type EndpointController
- func (c EndpointController) Create(w http.ResponseWriter, r *http.Request, _ map[string]string) error
- func (c EndpointController) Delete(w http.ResponseWriter, r *http.Request, params map[string]string) error
- func (c EndpointController) Failover(w http.ResponseWriter, r *http.Request, params map[string]string) error
- func (c EndpointController) Get(w http.ResponseWriter, r *http.Request, params map[string]string) error
- func (c EndpointController) GetHosts(w http.ResponseWriter, r *http.Request, params map[string]string) error
- func (c EndpointController) List(w http.ResponseWriter, r *http.Request, _ map[string]string) error
- func (c EndpointController) Update(w http.ResponseWriter, r *http.Request, params map[string]string) error
- type GetIPResponse
- type IPController
- type ListIPsResponse
- type VersionController
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 (c EndpointController) Create(w http.ResponseWriter, r *http.Request, _ map[string]string) error
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 (c EndpointController) Get(w http.ResponseWriter, r *http.Request, params map[string]string) error
func (EndpointController) GetHosts ¶
func (c EndpointController) GetHosts(w http.ResponseWriter, r *http.Request, params map[string]string) error
func (EndpointController) List ¶
func (c EndpointController) List(w http.ResponseWriter, r *http.Request, _ map[string]string) error
func (EndpointController) Update ¶
func (c EndpointController) Update(w http.ResponseWriter, r *http.Request, params map[string]string) error
type GetIPResponse ¶
type IPController ¶
type IPController struct {
// contains filtered or unexported fields
}
func NewIPController ¶
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 ¶
func (c IPController) List(w http.ResponseWriter, r *http.Request, _ map[string]string) error
type ListIPsResponse ¶
type VersionController ¶
type VersionController struct {
// contains filtered or unexported fields
}
func NewVersionController ¶
func NewVersionController(version string) VersionController
func (VersionController) Version ¶
func (c VersionController) Version(w http.ResponseWriter, r *http.Request, _ map[string]string) error
Click to show internal directories.
Click to hide internal directories.