loadbalancer

package
v0.7.6 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API interface {
	pagination.Pageable
	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" anxcloud:"identifier"`
	Name       string `json:"name"`
}

LoadBalancerInfo holds the identifier and the name of a load balancer

type LoadBalancerPage

type LoadBalancerPage struct {
	Page       int                `json:"page"`
	TotalItems int                `json:"total_items"`
	TotalPages int                `json:"total_pages"`
	Limit      int                `json:"limit"`
	Data       []LoadBalancerInfo `json:"data"`
	// contains filtered or unexported fields
}

func (LoadBalancerPage) Content

func (f LoadBalancerPage) Content() interface{}

func (LoadBalancerPage) Num

func (f LoadBalancerPage) Num() int

func (LoadBalancerPage) Options

func (f LoadBalancerPage) Options() []param.Parameter

func (LoadBalancerPage) Size

func (f LoadBalancerPage) Size() int

func (LoadBalancerPage) Total

func (f LoadBalancerPage) Total() int

type Loadbalancer

type Loadbalancer = v1.LoadBalancer

Loadbalancer holds the information of a load balancer instance.

type RuleInfo

type RuleInfo = v1.RuleInfo

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