digioceanloadbalancer

package
v0.0.0-...-4f62784 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2020 License: Apache-2.0 Imports: 6 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DigioceanLoadBalancer

type DigioceanLoadBalancer struct {
	Name                string           `json:"name,omitempty"`
	Algorithm           string           `json:"algorithm,omitempty"`
	Region              string           `json:"region,omitempty"`
	ForwardingRules     []ForwardingRule `json:"forwarding_rules,omitempty"`
	HealthCheck         HealthCheck      `json:"health_check,omitempty"`
	StickySessions      StickySessions   `json:"sticky_sessions,omitempty"`
	DropletIDs          []int            `json:"droplet_ids,omitempty"`
	Tag                 string           `json:"tag,omitempty"`
	RedirectHTTPToHTTPS bool             `json:"redirect_http_to_https,omitempty"`
}

LoadBalancer represents the configuration to be applied to an existing or a new load balancer.

func (*DigioceanLoadBalancer) AttachNodeWithLoadBalancer

func (digioceanloadbalancer *DigioceanLoadBalancer) AttachNodeWithLoadBalancer(request interface{}) (resp interface{}, err error)

AttachNodeWithLoadBalancer function attaches a load balancer to a droplet.

func (*DigioceanLoadBalancer) CreateLoadBalancer

func (digioceanloadbalancer *DigioceanLoadBalancer) CreateLoadBalancer(request interface{}) (resp interface{}, err error)

CreateLoadBalancer function creates a new load balancer.

func (*DigioceanLoadBalancer) DeleteLoadBalancer

func (digioceanloadbalancer *DigioceanLoadBalancer) DeleteLoadBalancer(request interface{}) (resp interface{}, err error)

DeleteLoadBalancer function deletes a load balancer.

func (*DigioceanLoadBalancer) DetachNodeWithLoadBalancer

func (digioceanloadbalancer *DigioceanLoadBalancer) DetachNodeWithLoadBalancer(request interface{}) (resp interface{}, err error)

DetachNodeWithLoadBalancer function detaches a load balancer from a droplet.

func (*DigioceanLoadBalancer) ListLoadBalancer

func (digioceanloadbalancer *DigioceanLoadBalancer) ListLoadBalancer(request interface{}) (resp interface{}, err error)

ListLoadBalancer function lists load balancers.

type ForwardingRule

type ForwardingRule struct {
	EntryProtocol  string `json:"entry_protocol,omitempty"`
	EntryPort      int    `json:"entry_port,omitempty"`
	TargetProtocol string `json:"target_protocol,omitempty"`
	TargetPort     int    `json:"target_port,omitempty"`
	CertificateID  string `json:"certificate_id,omitempty"`
	TLSPassthrough bool   `json:"tls_passthrough,omitempty"`
}

ForwardingRule represents load balancer forwarding rules.

type HealthCheck

type HealthCheck struct {
	Protocol               string `json:"protocol,omitempty"`
	Port                   int    `json:"port,omitempty"`
	Path                   string `json:"path,omitempty"`
	CheckIntervalSeconds   int    `json:"check_interval_seconds,omitempty"`
	ResponseTimeoutSeconds int    `json:"response_timeout_seconds,omitempty"`
	HealthyThreshold       int    `json:"healthy_threshold,omitempty"`
	UnhealthyThreshold     int    `json:"unhealthy_threshold,omitempty"`
}

HealthCheck represents optional load balancer health check rules.

type StickySessions

type StickySessions struct {
	Type             string `json:"typeStickySessions,omitempty"`
	CookieName       string `json:"cookie_name,omitempty"`
	CookieTTLSeconds int    `json:"cookie_ttl_seconds,omitempty"`
}

StickySessions represents optional load balancer session affinity rules.

Jump to

Keyboard shortcuts

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