Versions in this module Expand all Collapse all v0 v0.4.1 Apr 11, 2019 v0.4.0 Apr 7, 2019 Changes in this version + func Bool(b bool) *bool + func Int(i int) *int + func IsNotFoundErr(e error) bool + func String(s string) *string + func StringSlice(elements ...string) []*string + type ActiveHealthcheck struct + Concurrency *int + HTTPPath *string + HTTPSSni *string + HTTPSVerifyCertificate *bool + Healthy *Healthy + Timeout *int + Type *string + Unhealthy *Unhealthy + func (in *ActiveHealthcheck) DeepCopy() *ActiveHealthcheck + func (in *ActiveHealthcheck) DeepCopyInto(out *ActiveHealthcheck) + type CIDRPort struct + IP *string + Port *int + func (c *CIDRPort) String() string + func (in *CIDRPort) DeepCopy() *CIDRPort + func (in *CIDRPort) DeepCopyInto(out *CIDRPort) + type Certificate struct + Cert *string + CreatedAt *int64 + ID *string + Key *string + SNIs []*string + Tags []*string + func (c *Certificate) String() string + func (c *Certificate) Valid() bool + func (in *Certificate) DeepCopy() *Certificate + func (in *Certificate) DeepCopyInto(out *Certificate) + type CertificateService service + func (s *CertificateService) Create(ctx context.Context, certificate *Certificate) (*Certificate, error) + func (s *CertificateService) Delete(ctx context.Context, usernameOrID *string) error + func (s *CertificateService) Get(ctx context.Context, usernameOrID *string) (*Certificate, error) + func (s *CertificateService) List(ctx context.Context, opt *ListOpt) ([]*Certificate, *ListOpt, error) + func (s *CertificateService) ListAll(ctx context.Context) ([]*Certificate, error) + func (s *CertificateService) Update(ctx context.Context, certificate *Certificate) (*Certificate, error) + type Client struct + Certificates *CertificateService + Consumers *ConsumerService + CustomEntities *CustomEntityService + Plugins *PluginService + Routes *RouteService + SNIs *SNIService + Services *Svcservice + Targets *TargetService + Upstreams *UpstreamService + func NewClient(baseURL *string, client *http.Client) (*Client, error) + func (c *Client) Do(ctx context.Context, req *http.Request, v interface{}) (*Response, error) + func (c *Client) Root(ctx context.Context) (map[string]interface{}, error) + func (c *Client) SetDebugMode(enableDebug bool) + func (c *Client) SetLogger(w io.Writer) + func (c *Client) Status(ctx context.Context) (*Status, error) + type Configuration map[string]interface + func (in Configuration) DeepCopy() Configuration + func (in Configuration) DeepCopyInto(out *Configuration) + type Consumer struct + CreatedAt *int64 + CustomID *string + ID *string + Tags []*string + Username *string + func (c *Consumer) String() string + func (c *Consumer) Valid() bool + func (in *Consumer) DeepCopy() *Consumer + func (in *Consumer) DeepCopyInto(out *Consumer) + type ConsumerService service + func (s *ConsumerService) Create(ctx context.Context, consumer *Consumer) (*Consumer, error) + func (s *ConsumerService) Delete(ctx context.Context, usernameOrID *string) error + func (s *ConsumerService) Get(ctx context.Context, usernameOrID *string) (*Consumer, error) + func (s *ConsumerService) List(ctx context.Context, opt *ListOpt) ([]*Consumer, *ListOpt, error) + func (s *ConsumerService) ListAll(ctx context.Context) ([]*Consumer, error) + func (s *ConsumerService) Update(ctx context.Context, consumer *Consumer) (*Consumer, error) + type CustomEntityService service + func (s *CustomEntityService) Create(ctx context.Context, entity custom.Entity) (custom.Entity, error) + func (s *CustomEntityService) Delete(ctx context.Context, entity custom.Entity) error + func (s *CustomEntityService) Get(ctx context.Context, entity custom.Entity) (custom.Entity, error) + func (s *CustomEntityService) List(ctx context.Context, opt *ListOpt, entity custom.Entity) ([]custom.Entity, *ListOpt, error) + func (s *CustomEntityService) ListAll(ctx context.Context, entity custom.Entity) ([]custom.Entity, error) + func (s *CustomEntityService) Update(ctx context.Context, entity custom.Entity) (custom.Entity, error) + type Healthcheck struct + Active *ActiveHealthcheck + Passive *PassiveHealthcheck + func (in *Healthcheck) DeepCopy() *Healthcheck + func (in *Healthcheck) DeepCopyInto(out *Healthcheck) + type Healthy struct + HTTPStatuses []int + Interval *int + Successes *int + func (in *Healthy) DeepCopy() *Healthy + func (in *Healthy) DeepCopyInto(out *Healthy) + type ListOpt struct + MatchAllTags bool + Offset string + Size int + Tags []*string + type PassiveHealthcheck struct + Healthy *Healthy + Unhealthy *Unhealthy + func (in *PassiveHealthcheck) DeepCopy() *PassiveHealthcheck + func (in *PassiveHealthcheck) DeepCopyInto(out *PassiveHealthcheck) + type Plugin struct + Config Configuration + Consumer *Consumer + CreatedAt *int + Enabled *bool + ID *string + Name *string + Protocols []*string + Route *Route + RunOn *string + Service *Service + Tags []*string + func (in *Plugin) DeepCopy() *Plugin + func (in *Plugin) DeepCopyInto(out *Plugin) + func (p *Plugin) String() string + func (p *Plugin) Valid() bool + type PluginService service + func (s *PluginService) Create(ctx context.Context, plugin *Plugin) (*Plugin, error) + func (s *PluginService) Delete(ctx context.Context, usernameOrID *string) error + func (s *PluginService) Get(ctx context.Context, usernameOrID *string) (*Plugin, error) + func (s *PluginService) List(ctx context.Context, opt *ListOpt) ([]*Plugin, *ListOpt, error) + func (s *PluginService) ListAll(ctx context.Context) ([]*Plugin, error) + func (s *PluginService) ListAllForConsumer(ctx context.Context, consumerIDorName *string) ([]*Plugin, error) + func (s *PluginService) ListAllForRoute(ctx context.Context, routeID *string) ([]*Plugin, error) + func (s *PluginService) ListAllForService(ctx context.Context, serviceIDorName *string) ([]*Plugin, error) + func (s *PluginService) Update(ctx context.Context, plugin *Plugin) (*Plugin, error) + type Response struct + type Route struct + CreatedAt *int + Destinations []*CIDRPort + Hosts []*string + ID *string + Methods []*string + Name *string + Paths []*string + PreserveHost *bool + Protocols []*string + RegexPriority *int + SNIs []*string + Service *Service + Sources []*CIDRPort + StripPath *bool + Tags []*string + UpdatedAt *int + func (in *Route) DeepCopy() *Route + func (in *Route) DeepCopyInto(out *Route) + func (r *Route) String() string + func (r *Route) Valid() bool + type RouteService service + func (s *RouteService) Create(ctx context.Context, route *Route) (*Route, error) + func (s *RouteService) CreateInService(ctx context.Context, serviceID *string, route *Route) (*Route, error) + func (s *RouteService) Delete(ctx context.Context, nameOrID *string) error + func (s *RouteService) Get(ctx context.Context, nameOrID *string) (*Route, error) + func (s *RouteService) List(ctx context.Context, opt *ListOpt) ([]*Route, *ListOpt, error) + func (s *RouteService) ListAll(ctx context.Context) ([]*Route, error) + func (s *RouteService) ListForService(ctx context.Context, serviceNameOrID *string, opt *ListOpt) ([]*Route, *ListOpt, error) + func (s *RouteService) Update(ctx context.Context, route *Route) (*Route, error) + type SNI struct + Certificate *Certificate + CreatedAt *int64 + ID *string + Name *string + Tags []*string + func (c *SNI) String() string + func (c *SNI) Valid() bool + func (in *SNI) DeepCopy() *SNI + func (in *SNI) DeepCopyInto(out *SNI) + type SNIService service + func (s *SNIService) Create(ctx context.Context, sni *SNI) (*SNI, error) + func (s *SNIService) Delete(ctx context.Context, usernameOrID *string) error + func (s *SNIService) Get(ctx context.Context, usernameOrID *string) (*SNI, error) + func (s *SNIService) List(ctx context.Context, opt *ListOpt) ([]*SNI, *ListOpt, error) + func (s *SNIService) ListAll(ctx context.Context) ([]*SNI, error) + func (s *SNIService) ListForCertificate(ctx context.Context, certificateID *string, opt *ListOpt) ([]*SNI, *ListOpt, error) + func (s *SNIService) Update(ctx context.Context, sni *SNI) (*SNI, error) + type Service struct + ConnectTimeout *int + CreatedAt *int + Host *string + ID *string + Name *string + Path *string + Port *int + Protocol *string + ReadTimeout *int + Retries *int + Tags []*string + UpdatedAt *int + WriteTimeout *int + func (in *Service) DeepCopy() *Service + func (in *Service) DeepCopyInto(out *Service) + func (s *Service) String() string + func (s *Service) Valid() bool + type Status struct + Database struct{ ... } + Server struct{ ... } + type Svcservice service + func (s *Svcservice) Create(ctx context.Context, service *Service) (*Service, error) + func (s *Svcservice) Delete(ctx context.Context, nameOrID *string) error + func (s *Svcservice) Get(ctx context.Context, nameOrID *string) (*Service, error) + func (s *Svcservice) GetForRoute(ctx context.Context, routeID *string) (*Service, error) + func (s *Svcservice) List(ctx context.Context, opt *ListOpt) ([]*Service, *ListOpt, error) + func (s *Svcservice) ListAll(ctx context.Context) ([]*Service, error) + func (s *Svcservice) Update(ctx context.Context, service *Service) (*Service, error) + type Target struct + CreatedAt *float64 + ID *string + Tags []*string + Target *string + Upstream *Upstream + Weight *int + func (in *Target) DeepCopy() *Target + func (in *Target) DeepCopyInto(out *Target) + func (t *Target) String() string + func (t *Target) Valid() bool + type TargetService service + func (s *TargetService) Create(ctx context.Context, upstreamNameOrID *string, target *Target) (*Target, error) + func (s *TargetService) Delete(ctx context.Context, upstreamNameOrID *string, targetOrID *string) error + func (s *TargetService) List(ctx context.Context, upstreamNameOrID *string, opt *ListOpt) ([]*Target, *ListOpt, error) + func (s *TargetService) ListAll(ctx context.Context, upstreamNameOrID *string) ([]*Target, error) + func (s *TargetService) MarkHealthy(ctx context.Context, upstreamNameOrID *string, target *Target) error + func (s *TargetService) MarkUnhealthy(ctx context.Context, upstreamNameOrID *string, target *Target) error + type Unhealthy struct + HTTPFailures *int + HTTPStatuses []int + TCPFailures *int + Timeouts *int + func (in *Unhealthy) DeepCopy() *Unhealthy + func (in *Unhealthy) DeepCopyInto(out *Unhealthy) + type Upstream struct + CreatedAt *int64 + HashFallback *string + HashFallbackHeader *string + HashOn *string + HashOnCookie *string + HashOnCookiePath *string + HashOnHeader *string + Healthchecks *Healthcheck + ID *string + Name *string + Slots *int + Tags []*string + func (in *Upstream) DeepCopy() *Upstream + func (in *Upstream) DeepCopyInto(out *Upstream) + func (u *Upstream) String() string + func (u *Upstream) Valid() bool + type UpstreamService service + func (s *UpstreamService) Create(ctx context.Context, upstream *Upstream) (*Upstream, error) + func (s *UpstreamService) Delete(ctx context.Context, upstreamNameOrID *string) error + func (s *UpstreamService) Get(ctx context.Context, upstreamNameOrID *string) (*Upstream, error) + func (s *UpstreamService) List(ctx context.Context, opt *ListOpt) ([]*Upstream, *ListOpt, error) + func (s *UpstreamService) ListAll(ctx context.Context) ([]*Upstream, error) + func (s *UpstreamService) Update(ctx context.Context, upstream *Upstream) (*Upstream, error) + type Validator interface + Valid func() bool