Documentation ¶
Index ¶
- Constants
- func InitProxyController(backend backend.Backend, stats backend.StatsProvider, app *scroll.App)
- type Client
- func (c *Client) AddEndpoint(upstreamId, id, u string) (*backend.Endpoint, error)
- func (c *Client) AddHost(name string) (*backend.Host, error)
- func (c *Client) AddHostListener(hostname string, l *backend.Listener) (*backend.Listener, error)
- func (c *Client) AddLocation(hostname, id, path, upstream string) (*backend.Location, error)
- func (c *Client) AddLocationWithOptions(hostname, id, path, upstream string, options backend.LocationOptions) (*backend.Location, error)
- func (c *Client) AddMiddleware(spec *plugin.MiddlewareSpec, hostname, locationId string, ...) (*backend.MiddlewareInstance, error)
- func (c *Client) AddUpstream(id string) (*backend.Upstream, error)
- func (c *Client) AddUpstreamWithOptions(id string, o backend.UpstreamOptions) (*backend.Upstream, error)
- func (c *Client) Delete(endpoint string) (*StatusResponse, error)
- func (c *Client) DeleteEndpoint(upstreamId, id string) (*StatusResponse, error)
- func (c *Client) DeleteHost(name string) (*StatusResponse, error)
- func (c *Client) DeleteHostListener(name, listenerId string) (*StatusResponse, error)
- func (c *Client) DeleteLocation(hostname, id string) (*StatusResponse, error)
- func (c *Client) DeleteMiddleware(spec *plugin.MiddlewareSpec, hostname, locationId, mId string) (*StatusResponse, error)
- func (c *Client) DeleteUpstream(id string) (*StatusResponse, error)
- func (c *Client) Get(u string, params url.Values) ([]byte, error)
- func (c *Client) GetHost(name string) (*backend.Host, error)
- func (c *Client) GetHosts() ([]*backend.Host, error)
- func (c *Client) GetLocation(name, id string) (*backend.Location, error)
- func (c *Client) GetLogSeverity() (log.Severity, error)
- func (c *Client) GetStatus() error
- func (c *Client) GetTopEndpoints(upstreamId string, limit int) ([]*backend.Endpoint, error)
- func (c *Client) GetTopLocations(hostname, upstreamId string, limit int) ([]*backend.Location, error)
- func (c *Client) GetUpstream(id string) (*backend.Upstream, error)
- func (c *Client) GetUpstreams() ([]*backend.Upstream, error)
- func (c *Client) Post(endpoint string, in interface{}) ([]byte, error)
- func (c *Client) Put(endpoint string, in interface{}) ([]byte, error)
- func (c *Client) PutForm(endpoint string, values url.Values) (*StatusResponse, error)
- func (c *Client) RoundTrip(fn RoundTripFn) ([]byte, error)
- func (c *Client) UpdateHostKeyPair(hostname string, keyPair *backend.KeyPair) (*backend.Host, error)
- func (c *Client) UpdateLocationOptions(hostname, location string, options backend.LocationOptions) (*backend.Location, error)
- func (c *Client) UpdateLocationUpstream(hostname, location, upstream string) (*StatusResponse, error)
- func (c *Client) UpdateLogSeverity(s log.Severity) (*StatusResponse, error)
- func (c *Client) UpdateMiddleware(spec *plugin.MiddlewareSpec, hostname, locationId string, ...) (*backend.MiddlewareInstance, error)
- func (c *Client) UpdateUpstreamOptions(upId string, options backend.UpstreamOptions) (*backend.Upstream, error)
- type ConnectionsResponse
- type EndpointsResponse
- type ProxyController
- type RoundTripFn
- type SeverityResponse
- type StatusResponse
- type UpstreamsResponse
Constants ¶
View Source
const CurrentVersion = "v1"
Variables ¶
This section is empty.
Functions ¶
func InitProxyController ¶
Types ¶
type Client ¶
func (*Client) AddEndpoint ¶
func (*Client) AddHostListener ¶
func (*Client) AddLocation ¶
func (*Client) AddLocationWithOptions ¶
func (*Client) AddMiddleware ¶
func (c *Client) AddMiddleware(spec *plugin.MiddlewareSpec, hostname, locationId string, m *backend.MiddlewareInstance) (*backend.MiddlewareInstance, error)
func (*Client) AddUpstreamWithOptions ¶
func (*Client) DeleteEndpoint ¶
func (c *Client) DeleteEndpoint(upstreamId, id string) (*StatusResponse, error)
func (*Client) DeleteHost ¶
func (c *Client) DeleteHost(name string) (*StatusResponse, error)
func (*Client) DeleteHostListener ¶
func (c *Client) DeleteHostListener(name, listenerId string) (*StatusResponse, error)
func (*Client) DeleteLocation ¶
func (c *Client) DeleteLocation(hostname, id string) (*StatusResponse, error)
func (*Client) DeleteMiddleware ¶
func (c *Client) DeleteMiddleware(spec *plugin.MiddlewareSpec, hostname, locationId, mId string) (*StatusResponse, error)
func (*Client) DeleteUpstream ¶
func (c *Client) DeleteUpstream(id string) (*StatusResponse, error)
func (*Client) GetLocation ¶
func (*Client) GetTopEndpoints ¶
func (*Client) GetTopLocations ¶
func (*Client) UpdateHostKeyPair ¶
func (*Client) UpdateLocationOptions ¶
func (*Client) UpdateLocationUpstream ¶
func (c *Client) UpdateLocationUpstream(hostname, location, upstream string) (*StatusResponse, error)
func (*Client) UpdateLogSeverity ¶
func (c *Client) UpdateLogSeverity(s log.Severity) (*StatusResponse, error)
func (*Client) UpdateMiddleware ¶
func (c *Client) UpdateMiddleware(spec *plugin.MiddlewareSpec, hostname, locationId string, m *backend.MiddlewareInstance) (*backend.MiddlewareInstance, error)
func (*Client) UpdateUpstreamOptions ¶
type ConnectionsResponse ¶
type ConnectionsResponse struct {
Connections int
}
type EndpointsResponse ¶
type ProxyController ¶
type ProxyController struct {
// contains filtered or unexported fields
}
type RoundTripFn ¶
type SeverityResponse ¶
type SeverityResponse struct {
Severity string
}
type StatusResponse ¶
type StatusResponse struct {
Message string
}
func (*StatusResponse) Error ¶
func (e *StatusResponse) Error() string
type UpstreamsResponse ¶
Click to show internal directories.
Click to hide internal directories.