Documentation ¶
Overview ¶
* Copyright 2025 Baidu, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file * except in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under the * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, * either express or implied. See the License for the specific language governing permissions * and limitations under the License.
Index ¶
- Constants
- type Client
- func (c *Client) AttachTags(body *api.TagsOperationRequest) error
- func (c *Client) CreateHpas(body *api.CreateHpasReq) (*api.CreateHpasResp, error)
- func (c *Client) CreateHpasCoupon(body *api.CreateHpasCouponReq) (*api.CreateHpasCouponResp, error)
- func (c *Client) DeleteHpas(body *api.DeleteHpasReq) error
- func (c *Client) DescribeCouponHpas(body *api.ListCouponHpasPageReq) (*api.ListHpasCouponByPageResp, error)
- func (c *Client) DetachTags(body *api.TagsOperationRequest) error
- func (c *Client) ImageList(body *api.BaseMarkerV3Req) (*api.DescribeHpasImageResp, error)
- func (c *Client) ListHpas(body *api.ListHpasPageReq) (*api.ListHpasByPageResp, error)
- func (c *Client) ModifyPasswordHpas(body *api.ModifyPasswordHpasReq) error
- func (c *Client) RebootHpas(body *api.RebootHpasReq) error
- func (c *Client) ResetHpas(body *api.ResetHpasReq) error
- func (c *Client) StartHpas(body *api.StartHpasReq) error
- func (c *Client) StopHpas(body *api.StopHpasReq) error
Constants ¶
const ( DEFAULT_SERVICE_DOMAIN = "" DEFAULT_MAX_PARALLEL = 10 MULTIPART_ALIGN = 1 << 20 // 1MB MIN_MULTIPART_SIZE = 1 << 20 // 1MB DEFAULT_MULTIPART_SIZE = 12 * (1 << 20) // 12MB MAX_PART_NUMBER = 10000 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { *bce.BceClient // Fileds that used in parallel operation for BOS service MaxParallel int64 MultipartSize int64 }
Client of bcd service is a kind of BceClient, so derived from BceClient
func NewClient ¶
NewClient make the bcd service client with default configuration. Use `cli.Config.xxx` to access the config or change it to non-default value.
func (*Client) AttachTags ¶
func (c *Client) AttachTags(body *api.TagsOperationRequest) error
AttachTags -
PARAMS:
- body: body参数
RETURNS:
- error: the return error if any occurs
func (*Client) CreateHpas ¶
func (c *Client) CreateHpas(body *api.CreateHpasReq) (*api.CreateHpasResp, error)
CreateHpas -
PARAMS:
- body: body参数
RETURNS:
- *api.CreateHpasResp:
- error: the return error if any occurs
func (*Client) CreateHpasCoupon ¶
func (c *Client) CreateHpasCoupon(body *api.CreateHpasCouponReq) ( *api.CreateHpasCouponResp, error)
CreateHpasCoupon -
PARAMS:
- body: body参数
RETURNS:
- *api.CreateHpasCouponResp:
- error: the return error if any occurs
func (*Client) DeleteHpas ¶
func (c *Client) DeleteHpas(body *api.DeleteHpasReq) error
DeleteHpas -
PARAMS:
- body: body参数
RETURNS:
- error: the return error if any occurs
func (*Client) DescribeCouponHpas ¶
func (c *Client) DescribeCouponHpas(body *api.ListCouponHpasPageReq) ( *api.ListHpasCouponByPageResp, error)
DescribeCouponHpas -
PARAMS:
- body: body参数
RETURNS:
- *api.ListHpasCouponByPageResp:
- error: the return error if any occurs
func (*Client) DetachTags ¶
func (c *Client) DetachTags(body *api.TagsOperationRequest) error
func (*Client) ImageList ¶
func (c *Client) ImageList(body *api.BaseMarkerV3Req) (*api.DescribeHpasImageResp, error)
ImageList - 查询镜像接口
PARAMS:
- body: body参数
RETURNS:
- *api.DescribeHpasImageResp:
- error: the return error if any occurs
func (*Client) ListHpas ¶
func (c *Client) ListHpas(body *api.ListHpasPageReq) ( *api.ListHpasByPageResp, error)
ListHpas -
PARAMS:
- showRdmaTopo:
- body: body参数
RETURNS:
- *api.ListHpasByPageResp:
- error: the return error if any occurs
func (*Client) ModifyPasswordHpas ¶
func (c *Client) ModifyPasswordHpas(body *api.ModifyPasswordHpasReq) error
ModifyPasswordHpas -
PARAMS:
- body: body参数
RETURNS:
- error: the return error if any occurs
func (*Client) RebootHpas ¶
func (c *Client) RebootHpas(body *api.RebootHpasReq) error
RebootHpas -
PARAMS:
- body: body参数
RETURNS:
- error: the return error if any occurs
func (*Client) ResetHpas ¶
func (c *Client) ResetHpas(body *api.ResetHpasReq) error
ResetHpas -
PARAMS:
- body: body参数
RETURNS:
- error: the return error if any occurs