Documentation ¶
Index ¶
- Variables
- type BaiduCloud
- func (p *BaiduCloud) DescribeInstanceBill(ctx context.Context, param types.DescribeInstanceBillRequest, isAll bool) (types.DescribeInstanceBill, error)
- func (p *BaiduCloud) DescribeInstances(ctx context.Context, param types.DescribeInstancesRequest) (types.DescribeInstances, error)
- func (p *BaiduCloud) DescribeMetricList(ctx context.Context, param types.DescribeMetricListRequest) (types.DescribeMetricList, error)
- func (p *BaiduCloud) DescribeRegions(ctx context.Context, param types.DescribeRegionsRequest) (types.DescribeRegions, error)
- func (*BaiduCloud) ProviderType() cloud.Provider
- func (p *BaiduCloud) QueryAccountBill(ctx context.Context, param types.QueryAccountBillRequest) (types.DataInQueryAccountBill, error)
- func (p *BaiduCloud) QueryAvailableInstances(ctx context.Context, param types.QueryAvailableInstancesRequest) (types.QueryAvailableInstances, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var EndPoints = map[string]string{
"bj": ".bj.baidubce.com",
"gz": ".gz.baidubce.com",
"su": ".su.baidubce.com",
"hkg": ".hkg.baidubce.com",
"fwh": ".fwh.baidubce.com",
"bd": ".bd.baidubce.com",
}
Functions ¶
This section is empty.
Types ¶
type BaiduCloud ¶
type BaiduCloud struct {
// contains filtered or unexported fields
}
func New ¶
func New(ak, sk, regionId string) (*BaiduCloud, error)
func (*BaiduCloud) DescribeInstanceBill ¶
func (p *BaiduCloud) DescribeInstanceBill(ctx context.Context, param types.DescribeInstanceBillRequest, isAll bool) (types.DescribeInstanceBill, error)
func (*BaiduCloud) DescribeInstances ¶ added in v0.2.1
func (p *BaiduCloud) DescribeInstances(ctx context.Context, param types.DescribeInstancesRequest) (types.DescribeInstances, error)
func (*BaiduCloud) DescribeMetricList ¶
func (p *BaiduCloud) DescribeMetricList(ctx context.Context, param types.DescribeMetricListRequest) (types.DescribeMetricList, error)
func (*BaiduCloud) DescribeRegions ¶
func (p *BaiduCloud) DescribeRegions(ctx context.Context, param types.DescribeRegionsRequest) (types.DescribeRegions, error)
func (*BaiduCloud) QueryAccountBill ¶
func (p *BaiduCloud) QueryAccountBill(ctx context.Context, param types.QueryAccountBillRequest) (types.DataInQueryAccountBill, error)
QueryAccountBill
func (*BaiduCloud) QueryAvailableInstances ¶
func (p *BaiduCloud) QueryAvailableInstances(ctx context.Context, param types.QueryAvailableInstancesRequest) (types.QueryAvailableInstances, error)
Click to show internal directories.
Click to hide internal directories.