Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultBandWidth = 2 EIPStatusAvailable = "available" AllocateEIPName = "k8s_lb_allocate_eip" ResourceNameEIP = "EIP" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EIP ¶
type EIP struct { Name string ID string Address string Status string Bandwidth int BillingMode string }
func (*EIP) ToQingCloudEIP ¶ added in v1.3.2
type EIPHelper ¶
type EIPHelper interface { GetEIPByID(id string) (*EIP, error) GetEIPByAddr(addr string) (*EIP, error) ReleaseEIP(id string) error GetAvaliableOrAllocateEIP() (*EIP, error) AllocateEIP() (*EIP, error) GetAvaliableEIPs() ([]*EIP, error) }
func NewEIPHelperOfQingCloud ¶
func NewEIPHelperOfQingCloud(opt NewEIPHelperOfQingCloudOption) EIPHelper
NewEIPHelperOfQingCloud create a eip helper of qingcloud
type NewEIPHelperOfQingCloudOption ¶
type NewEIPHelperOfQingCloudOption struct { JobAPI *qcservice.JobService EIPAPI *qcservice.EIPService TagAPI *qcservice.TagService TagIDs []string UserID string }
Click to show internal directories.
Click to hide internal directories.