Discover Packages
go.anx.io/go-anxcloud
pkg
lbaas
bind
package
Version:
v0.5.2
Opens a new window with list of versions in this module.
Published: Jun 6, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 13
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
Documentation
Documentation
¶
type API interface {
pagination .Pageable
Get(ctx context .Context , page, limit int ) ([]BindInfo , error )
GetByID(ctx context .Context , identifier string ) (Bind , error )
Create(ctx context .Context , definition Definition ) (Bind , error )
Update(ctx context .Context , identifier string , definition Definition ) (Bind , error )
DeleteByID(ctx context .Context , identifier string ) error
}
API contains methods for frontend bind management.
NewAPI creates a new bind API instance with the given client.
type BindInfo struct {
Identifier string `json:"identifier"`
Name string `json:"name"`
}
BindInfo holds the identifier and the name of a load balancer frontend bind.
type BindPage struct {
Page int `json:"page"`
TotalItems int `json:"total_items"`
TotalPages int `json:"total_pages"`
Limit int `json:"limit"`
Data []BindInfo `json:"data"`
}
type Definition struct {
Name string `json:"name"`
State common .State `json:"state"`
Frontend string `json:"frontend"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.