loadbalancer

package
v0.3.28 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API interface {
	Get(ctx context.Context, page, limit int) ([]LoadBalancerInfo, error)
	GetByID(ctx context.Context, identifier string) (Loadbalancer, error)
}

API contains load balancer actions.

func NewAPI

func NewAPI(c client.Client) API

NewAPI creates a new load balancer API instance with the given client.

type LoadBalancerInfo

type LoadBalancerInfo struct {
	Identifier string `json:"identifier"`
	Name       string `json:"name"`
}

LoadBalancerInfo holds the identifier and the name of a load balancer

type Loadbalancer

type Loadbalancer struct {
	CustomerIdentifier string     `json:"customer_identifier"`
	ResellerIdentifier string     `json:"reseller_identifier"`
	Identifier         string     `json:"identifier"`
	Name               string     `json:"name"`
	IpAddress          string     `json:"ip_address"`
	AutomationRules    []RuleInfo `json:"automation_rules"`
}

Loadbalancer holds the information of a load balancer instance.

type RuleInfo

type RuleInfo struct {
	Identifier string `json:"identifier"`
	Name       string `json:"name"`
}

RuleInfo holds the name and identifier of a rule.

Jump to

Keyboard shortcuts

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