Documentation ¶
Overview ¶
endpoint.go - the endpoint APIs definition supported by the endpoint service
Index ¶
- Constants
- type Billing
- type Client
- func (c *Client) CreateEndpoint(args *CreateEndpointArgs) (*CreateEndpointResult, error)
- func (c *Client) DeleteEndpoint(endpointId string, clientToken string) error
- func (c *Client) GetEndpointDetail(endpointId string) (*Endpoint, error)
- func (c *Client) GetServices() (*ListServiceResult, error)
- func (c *Client) ListEndpoints(args *ListEndpointArgs) (*ListEndpointResult, error)
- func (c *Client) UpdateEndpoint(endpointId string, args *UpdateEndpointArgs) error
- func (c *Client) UpdateEndpointEnterpriseSecurityGroup(endpointId string, args *UpdateEndpointESGArgs) error
- func (c *Client) UpdateEndpointNormalSecurityGroup(endpointId string, args *UpdateEndpointNSGArgs) error
- type CreateEndpointArgs
- type CreateEndpointResult
- type Endpoint
- type ListEndpointArgs
- type ListEndpointResult
- type ListServiceResult
- type PaymentTimingType
- type Reservation
- type UpdateEndpointArgs
- type UpdateEndpointESGArgs
- type UpdateEndpointNSGArgs
Constants ¶
const ( URI_PREFIX = bce.URI_PREFIX + "v1" DEFAULT_ENDPOINT = "bcc." + bce.DEFAULT_REGION + ".baidubce.com" REQUEST_ENDPOINT_URL = "/endpoint" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Billing ¶
type Billing struct { PaymentTiming PaymentTimingType `json:"paymentTiming,omitempty"` Reservation *Reservation `json:"reservation,omitempty"` }
type Client ¶
Client of VPC service is a kind of BceClient, so derived from BceClient
func (*Client) CreateEndpoint ¶
func (c *Client) CreateEndpoint(args *CreateEndpointArgs) (*CreateEndpointResult, error)
CreateEndpoint - create an endpoint with the specific parameters
PARAMS:
- args: the arguments to create an endpoint
RETURNS:
- *CreateEndpointResult: the result of create endpoint
- error: nil if success otherwise the specific error
func (*Client) DeleteEndpoint ¶
DeleteEndpoint - delete an endpoint
PARAMS:
- endpointId: the specific endpointId
- clientToken: optional parameter, an Idempotent Token
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) GetEndpointDetail ¶
GetEndpointDetail - get the endpoint detail
PARAMS:
- endpointId: the specific endpointId
RETURNS:
- *Endpoint: the endpoint
- error: nil if success otherwise the specific error
func (*Client) GetServices ¶
func (c *Client) GetServices() (*ListServiceResult, error)
GetServices - get the public services RETURNS:
- *ListServiceResult: the result of public service
- error: nil if success otherwise the specific error
func (*Client) ListEndpoints ¶
func (c *Client) ListEndpoints(args *ListEndpointArgs) (*ListEndpointResult, error)
ListEndpoints - list all endpoint with the specific parameters
PARAMS:
- args: the arguments to list all endpoint
RETURNS:
- *ListEndpointResult: the result of list all endpoint
- error: nil if success otherwise the specific error
func (*Client) UpdateEndpoint ¶
func (c *Client) UpdateEndpoint(endpointId string, args *UpdateEndpointArgs) error
UpdateEndpoint - update an endpoint
PARAMS:
- endpointId: the specific endpointId
- UpdateEndpointArgs: the arguments to update an endpoint
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) UpdateEndpointEnterpriseSecurityGroup ¶ added in v0.9.164
func (c *Client) UpdateEndpointEnterpriseSecurityGroup(endpointId string, args *UpdateEndpointESGArgs) error
UpdateEndpointEnterpriseSecurityGroup - update enterprise security group bound to the endpoint
PARAMS:
- endpointId: the specific endpointId
- args: the arguments to update an enterprise security group
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) UpdateEndpointNormalSecurityGroup ¶ added in v0.9.164
func (c *Client) UpdateEndpointNormalSecurityGroup(endpointId string, args *UpdateEndpointNSGArgs) error
UpdateEndpointNormalSecurityGroup - update normal security group bound to the endpoint
PARAMS:
- endpointId: the specific endpointId
- args: the arguments to update a normal security group
RETURNS:
- error: nil if success otherwise the specific error
type CreateEndpointArgs ¶
type CreateEndpointArgs struct { ClientToken string `json:"-"` VpcId string `json:"vpcId"` Name string `json:"name"` SubnetId string `json:"subnetId"` Service string `json:"service"` Description string `json:"description,omitempty"` IpAddress string `json:"ipAddress,omitempty"` Billing *Billing `json:"billing"` Tags []model.TagModel `json:"tags,omitempty"` Bandwidth int `json:"bandwidth"` }
type CreateEndpointResult ¶
type Endpoint ¶
type Endpoint struct { EndpointId string `json:"endpointId"` Name string `json:"name"` IpAddress string `json:"ipAddress"` Status string `json:"status"` Service string `json:"service"` SubnetId string `json:"subnetId"` Description string `json:"description"` CreateTime string `json:"createTime"` VpcId string `json:"vpcId"` ProductType string `json:"productType"` Tags []model.TagModel `json:"tags,omitempty"` }
type ListEndpointArgs ¶
type ListEndpointResult ¶
type ListServiceResult ¶
type ListServiceResult struct {
Services []string `json:"services"`
}
type PaymentTimingType ¶
type PaymentTimingType string