Documentation
¶
Index ¶
- type CreateParams
- type LoadBalancerAPI
- type LoadBalancerDetail
- type LoadBalancerInterface
- type LoadBalancerNodeDetail
- type LoadBalancerOp
- func (op *LoadBalancerOp) Create(ctx context.Context, params CreateParams) (lb *v1.CreatedLoadBalancer, err error)
- func (op *LoadBalancerOp) Delete(ctx context.Context, id v1.LoadBalancerID) error
- func (op *LoadBalancerOp) List(ctx context.Context, maxItems int64, cursor *v1.LoadBalancerID) (list []v1.ReadLoadBalancerSummary, nextCursor *v1.LoadBalancerID, err error)
- func (op *LoadBalancerOp) ListNodes(ctx context.Context, lbID v1.LoadBalancerID, maxItems int64, ...) (list []v1.ReadLoadBalancerNodeSummary, err error)
- func (op *LoadBalancerOp) Read(ctx context.Context, id v1.LoadBalancerID) (lb *LoadBalancerDetail, err error)
- func (op *LoadBalancerOp) ReadNode(ctx context.Context, lbID v1.LoadBalancerID, nodeID v1.LoadBalancerNodeID) (node *LoadBalancerNodeDetail, err error)
- type NodeInterface
- type NodeInterfaceAddress
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 ¶
func (l *LoadBalancerInterface) From(res *v1.LoadBalancerInterface)
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 (op *LoadBalancerOp) Read(ctx context.Context, id v1.LoadBalancerID) (lb *LoadBalancerDetail, err error)
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 ¶
func (n *NodeInterface) From(res *v1.ReadLoadBalancerNodeInterface)
type NodeInterfaceAddress ¶
func (*NodeInterfaceAddress) From ¶
func (n *NodeInterfaceAddress) From(res *v1.ReadLoadBalancerNodeInterfaceAddress)
Click to show internal directories.
Click to hide internal directories.