Versions in this module Expand all Collapse all v1 v1.0.0 Oct 23, 2023 Changes in this version + type ActiveHealthcheck struct + Concurrency int + Headers Headers + Healthy Healthy + HttpPath string + HttpsSni string + HttpsVerifyCertificate bool + Timeout int + Type string + Unhealthy Unhealthy + type CertMetadata struct + DnsNames []string + Expiry string + Issuer string + KeyUsages []string + SanNames []string + Snis []string + Subject string + type Certificate struct + Cert string + CreatedAt int64 + Id string + Key string + Metadata CertMetadata + Tags []string + UpdatedAt int64 + type CertificateRef struct + Id string + type CertificateResponse struct + Data []Certificate + Next string + Offset string + type Client struct + BaseURL *url.URL + Client *http.Client + Options *ClientOptions + ResponseTimeout time.Duration + UserAgent string + func NewClient(endpoint string, options *ClientOptions) *Client + func (c *Client) CertificateGetById(controlPlaneId string, certificateId string) (certificate *Certificate, err error) + func (c *Client) CertificatesGet(controlPlaneId string, parameters []string) (certificates []Certificate, err error) + func (c *Client) ConsumerGetById(controlPlaneId string, consumerId string) (consumer *Consumer, err error) + func (c *Client) ConsumersGet(controlPlaneId string, parameters []string) (consumers []Consumer, err error) + func (c *Client) ControlPlaneGetId(controlPlaneId string) (controlPlane *ControlPlane, err error) + func (c *Client) ControlPlanesGet(parameters []string) (controlPlanes []ControlPlane, err error) + func (c *Client) ControlPlanesGetPage(pageSize int, pageNumber int, parameters []string) (*ControlPlaneResponse, error) + func (c *Client) Do(req *http.Request, v interface{}) (resp *RestResponse, err error) + func (c *Client) DpNodeGetById(controlPlaneId string, dpNodeId string) (dpNode *DpNode, err error) + func (c *Client) DpNodesGet(controlPlaneId string, parameters []string) (nodes []DpNode, err error) + func (c *Client) NewRequest(method string, apiPath string, parameters []string, body interface{}) (req *http.Request, err error) + func (c *Client) PluginGetById(controlPlaneId string, routeId string, pluginId string) (plugin *Plugin, err error) + func (c *Client) PluginsGet(controlPlaneId string, routeId string, parameters []string) (plugins []Plugin, err error) + func (c *Client) RouteGetById(controlPlaneId string, routeId string) (route *Route, err error) + func (c *Client) RoutesGet(controlPlaneId string, parameters []string) (routes []Route, err error) + func (c *Client) ServiceGetById(controlPlaneId string, serviceId string) (service *Service, err error) + func (c *Client) ServicesGet(controlPlaneId string, parameters []string) (services []Service, err error) + func (c *Client) SniGetById(controlPlaneId string, sniId string) (sni *Sni, err error) + func (c *Client) SnisGet(controlPlaneId string, parameters []string) (snis []Sni, err error) + func (c *Client) UpstreamGetById(controlPlaneId string, upstreamId string) (upstream *Upstream, err error) + func (c *Client) UpstreamsGet(controlPlaneId string, parameters []string) (upstreams []Upstream, err error) + type ClientOptions struct + Debug bool + SSLVerify bool + Timeout time.Duration + Token string + func DefaultOptions() *ClientOptions + type Config interface + type Consumer struct + CreatedAt int64 + CustomId string + Id string + Tags []string + UpdatedAt int64 + UserName string + type ConsumerResponse struct + Data []Consumer + Next string + Offset string + type ControlPlane struct + Config ControlPlaneConfig + CreatedAt string + Description string + Id string + Labels map[string]string + Name string + UpdatedAt string + type ControlPlaneConfig struct + ClusterType string + ControlPlaneEndpoint string + TelemetryEndpoint string + type ControlPlaneResponse struct + Data []ControlPlane + Meta Meta + type DpNode struct + CompatibilityStatus struct{ ... } + ConfigHash string + CreatedAt int64 + Hostname string + Id string + LastPing int64 + Status string + Type string + UpdatedAt int64 + Version string + type DpNodeResponse struct + Items []DpNode + Page struct{ ... } + type ErrorResponse struct + Detail string + Instance string + Message string + Status int + Title string + type Headers interface + type Healthchecks struct + Active ActiveHealthcheck + Passive PassiveHealthcheck + Threshold int + type Healthy struct + HttpStatuses []int + Interval int + Successes int + type Meta struct + Page Page + type Page struct + Number int + Size int + Total int + type PassiveHealthcheck struct + Healthy Healthy + Type string + Unhealthy Unhealthy + type Plugin struct + Config Config + CreatedAt int64 + Id string + Name string + Protocols []string + Route ServiceRef + Tags []string + UpdatedAt int64 + type PluginResponse struct + Data []Plugin + Next string + Offset string + type RestResponse struct + ErrorResponse ErrorResponse + HttpResponse *http.Response + type Route struct + CreatedAt int64 + Hosts []string + HttpsRedirectStatusCode int + Id string + Name string + PathHandling string + Paths []string + PreserveHost bool + Protocols []string + RegexPriority int + RequestBuffering bool + ResponseBuffering bool + Service ServiceRef + StripPath bool + Tags []string + UpdatedAt int64 + type RouteRef struct + Id string + type RouteResponse struct + Data []Route + Next string + Offset string + type Service struct + ConnectTimeout int + CreatedAt int64 + Enabled bool + Host string + Id string + Name string + Path string + Port int + Protocol string + ReadTimeout int + Retries int + Tags []string + UpdatedAt int64 + WriteTimeout int + type ServiceRef struct + Id string + type ServiceResponse struct + Data []Service + Next string + Offset string + type Sni struct + Certificate CertificateRef + CreatedAt int64 + Id string + Name string + UpdatedAt int64 + type SniResponse struct + Data []Sni + Next string + Offset string + type Unhealthy struct + HttpFailures int + HttpStatuses []int + Interval int + TcpFailures int + Timeouts int + type Upstream struct + Algorithm string + ClientCertificate *CertificateRef + CreatedAt int64 + HashFallback string + HashOn string + HashOnCookiePath string + Healthchecks Healthchecks + HostHeader string + Id string + Name string + Slots int + Tags []string + UseSrvName bool + type UpstreamResponse struct + Data []Upstream + Next string + Offset string