loadbalancer

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateParams

type CreateParams struct {
	Name             string                  `json:"name"`
	ServiceClassPath string                  `json:"serviceClassPath"`
	NameServers      []v1.IPv4               `json:"nameServers"`
	Interfaces       []LoadBalancerInterface `json:"interfaces"`
}

type LoadBalancerAPI

type LoadBalancerAPI interface {
	// List returns the list of LoadBalancers, paginated.
	// Pass nil to `cursor` to get the first page, or
	// previously returned `nextCursor` to get the next page.
	List(ctx context.Context, maxItems int64, cursor *v1.LoadBalancerID) (list []v1.ReadLoadBalancerSummary, nextCursor *v1.LoadBalancerID, err error)
	Create(ctx context.Context, params CreateParams) (lb *v1.CreatedLoadBalancer, err error)
	Read(ctx context.Context, id v1.LoadBalancerID) (lb *LoadBalancerDetail, err error)
	Delete(ctx context.Context, id v1.LoadBalancerID) error

	// ListNodes returns the list of LoadBalancerNodes, paginated.
	// Pass nil to `cursor` to get the first page.
	ListNodes(ctx context.Context, lbID v1.LoadBalancerID, maxItems int64, cursor *v1.LoadBalancerID) (list []v1.ReadLoadBalancerNodeSummary, err error)
	ReadNode(ctx context.Context, lbID v1.LoadBalancerID, nodeID v1.LoadBalancerNodeID) (node *LoadBalancerNodeDetail, err error)
}

type LoadBalancerDetail

type LoadBalancerDetail struct {
	LoadBalancerID   v1.LoadBalancerID       `json:"loadBalancerID"`
	Name             string                  `json:"name"`
	ServiceClassPath string                  `json:"serviceClassPath"`
	NameServers      []v1.IPv4               `json:"nameServers"`
	Interfaces       []LoadBalancerInterface `json:"interfaces"`
	Created          int                     `json:"created"`
	Deleting         bool                    `json:"deleting"`
}

type LoadBalancerInterface

type LoadBalancerInterface struct {
	InterfaceIndex  int16        `json:"interfaceIndex"`
	Upstream        string       `json:"upstream"`
	IpPool          []v1.IpRange `json:"ipPool"`
	NetmaskLen      *int16       `json:"netmaskLen"`
	DefaultGateway  *string      `json:"defaultGateway"`
	Vip             *string      `json:"vip"`
	VirtualRouterID *int16       `json:"virtualRouterID"`
	PacketFilterID  *string      `json:"packetFilterID"`
}

func (*LoadBalancerInterface) From

type LoadBalancerNodeDetail

type LoadBalancerNodeDetail struct {
	LoadBalancerNodeID v1.LoadBalancerNodeID     `json:"loadBalancerNodeID"`
	ResourceID         *string                   `json:"resourceID"`
	Interfaces         []NodeInterface           `json:"interfaces"`
	Status             v1.LoadBalancerNodeStatus `json:"status"`
	ArchiveVersion     *string                   `json:"archiveVersion"`
	CreateErrorMessage *string                   `json:"createErrorMessage"`
	Created            int                       `json:"created"`
}

type LoadBalancerOp

type LoadBalancerOp struct {
	// contains filtered or unexported fields
}

func NewLoadBalancerOp

func NewLoadBalancerOp(client *v1.Client, clusterID v1.ClusterID, autoScalingGroupID v1.AutoScalingGroupID) *LoadBalancerOp

func (*LoadBalancerOp) Create

func (op *LoadBalancerOp) Create(ctx context.Context, params CreateParams) (lb *v1.CreatedLoadBalancer, err error)

func (*LoadBalancerOp) Delete

func (op *LoadBalancerOp) Delete(ctx context.Context, id v1.LoadBalancerID) error

func (*LoadBalancerOp) List

func (op *LoadBalancerOp) List(ctx context.Context, maxItems int64, cursor *v1.LoadBalancerID) (list []v1.ReadLoadBalancerSummary, nextCursor *v1.LoadBalancerID, err error)

func (*LoadBalancerOp) ListNodes

func (op *LoadBalancerOp) ListNodes(ctx context.Context, lbID v1.LoadBalancerID, maxItems int64, cursor *v1.LoadBalancerID) (list []v1.ReadLoadBalancerNodeSummary, err error)

func (*LoadBalancerOp) Read

func (*LoadBalancerOp) ReadNode

func (op *LoadBalancerOp) ReadNode(ctx context.Context, lbID v1.LoadBalancerID, nodeID v1.LoadBalancerNodeID) (node *LoadBalancerNodeDetail, err error)

type NodeInterface

type NodeInterface struct {
	InterfaceIndex int16                  `json:"interfaceIndex"`
	Addresses      []NodeInterfaceAddress `json:"addresses"`
}

func (*NodeInterface) From

type NodeInterfaceAddress

type NodeInterfaceAddress struct {
	Address string `json:"address"`
	Vip     bool   `json:"vip"`
}

func (*NodeInterfaceAddress) From

Jump to

Keyboard shortcuts

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