Documentation
¶
Index ¶
Constants ¶
View Source
const ( DEFAULT_ENDPOINT = "ccr." + bce.DEFAULT_REGION + ".baidubce.com" URI_PREFIX = bce.URI_PREFIX + "api/ccr/esvc/v1" REQUEST_INSTANCE_URL = "/instances" REQUEST_PRIVATELINK_URL = "/privatelinks" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client ccr enterprise interface.Interface
func (*Client) GetInstanceDetail ¶
func (c *Client) GetInstanceDetail(instanceID string) (*GetInstanceDetailResponse, error)
GetInstanceDetail - get a specific instance detail info
PARAMS:
- instanceID: the specific instance ID
RETURNS:
- *GetInstanceDetailResponse: the result of get instance detail info
- error: nil if success otherwise the specific error
func (*Client) ListInstances ¶
func (c *Client) ListInstances(args *ListInstancesArgs) (*ListInstancesResponse, error)
ListInstances - list all instance with the specific parameters
PARAMS:
- ListInstancesArgs: the arguments to list all instance
RETURNS:
- ListInstancesResponse: the result of list Instance
- error: nil if success otherwise the specific error
func (*Client) ListPrivateNetworks ¶
func (c *Client) ListPrivateNetworks(instanceID string) (*ListPrivateNetworksResponse, error)
ListPrivateNetworks - list all Privatelinks in an instance with the specific parameters
PARAMS:
- instanceID: the specific instance ID
RETURNS:
- *ListPrivateNetworksResponse: the result of list Privatelinks
- error: nil if success otherwise the specific error
type GetInstanceDetailResponse ¶
type GetInstanceDetailResponse struct { Info *InstanceInfo `json:"info,omitempty"` Statistic InstanceStatistic `json:"statistic,omitempty"` Quota UserQuota `json:"quota,omitempty"` Bucket string `json:"bucket,omitempty"` Region string `json:"region,omitempty"` }
type InstanceInfo ¶
type InstanceStatistic ¶
type Interface ¶
type Interface interface { ListInstances(args *ListInstancesArgs) (*ListInstancesResponse, error) GetInstanceDetail(instanceID string) (*GetInstanceDetailResponse, error) ListPrivateNetworks(instanceID string) (*ListPrivateNetworksResponse, error) }
type ListInstancesArgs ¶
type ListInstancesResponse ¶
type ListInstancesResponse struct { PageInfo `json:",inline"` Instances []*InstanceInfo `json:"instances"` }
type ListPrivateNetworksResponse ¶
type ListPrivateNetworksResponse struct { Domain string `json:"domain"` Items []PrivateNetworksItems `json:"items"` }
type PagedListOption ¶
type PrivateNetworksItems ¶
type PrivateNetworksItems struct { VpcID string `json:"vpcID,omitempty"` SubnetID string `json:"subnetID,omitempty"` ServiceNetID string `json:"serviceNetID,omitempty"` Status string `json:"status,omitempty"` IPAddress string `json:"ipAddress,omitempty"` ResourceSource string `json:"resourceSource,omitempty"` }
Click to show internal directories.
Click to hide internal directories.