Documentation ¶
Overview ¶
Package et defines the et services of BCE. The supported APIs are all defined in different files.
Index ¶
- Constants
- type Client
- func (c *Client) CreateEtChannel(args *CreateEtChannelArgs) (*CreateEtChannelResult, error)
- func (c *Client) CreateEtChannelRouteRule(args *CreateEtChannelRouteRuleArgs) (*CreateEtChannelRouteRuleResult, error)
- func (c *Client) CreateEtDcphy(args *CreateEtDcphyArgs) (*CreateEtDcphyResult, error)
- func (c *Client) DeleteEtChannel(args *DeleteEtChannelArgs) error
- func (c *Client) DeleteEtChannelRouteRule(args *DeleteEtChannelRouteRuleArgs) error
- func (c *Client) DisableEtChannelIPv6(args *DisableEtChannelIPv6Args) error
- func (c *Client) EnableEtChannelIPv6(args *EnableEtChannelIPv6Args) error
- func (c *Client) GetEtChannel(args *GetEtChannelArgs) (*GetEtChannelsResult, error)
- func (c *Client) ListEtChannelRouteRule(args *ListEtChannelRouteRuleArgs) (*ListEtChannelRouteRuleResult, error)
- func (c *Client) ListEtDcphy(args *ListEtDcphyArgs) (*ListEtDcphyResult, error)
- func (c *Client) ListEtDcphyDetail(dcphyId string) (*EtDcphyDetail, error)
- func (c *Client) RecommitEtChannel(args *RecommitEtChannelArgs) error
- func (c *Client) UpdateEtChannel(args *UpdateEtChannelArgs) error
- func (c *Client) UpdateEtChannelRouteRule(args *UpdateEtChannelRouteRuleArgs) error
- func (c *Client) UpdateEtDcphy(dcphyId string, args *UpdateEtDcphyArgs) error
- type CreateEtChannelArgs
- type CreateEtChannelResult
- type CreateEtChannelRouteRuleArgs
- type CreateEtChannelRouteRuleResult
- type CreateEtDcphyArgs
- type CreateEtDcphyResult
- type DeleteEtChannelArgs
- type DeleteEtChannelRouteRuleArgs
- type DisableEtChannelIPv6Args
- type EnableEtChannelIPv6Args
- type EnableEtChannelIPv6Result
- type Et
- type EtChannelResult
- type EtChannelRouteRule
- type EtDcphyDetail
- type GetEtChannelArgs
- type GetEtChannelsResult
- type ListEtChannelRouteRuleArgs
- type ListEtChannelRouteRuleResult
- type ListEtDcphyArgs
- type ListEtDcphyResult
- type RecommitEtChannelArgs
- type RecommitEtChannelResult
- type UpdateEtChannelArgs
- type UpdateEtChannelResult
- type UpdateEtChannelRouteRuleArgs
- type UpdateEtDcphyArgs
Constants ¶
const ( URI_PREFIX = bce.URI_PREFIX + "v1" DEFAULT_ENDPOINT = "bcc." + bce.DEFAULT_REGION + ".baidubce.com" REQUEST_ET_URL = "/et" REQUEST_ET_CHANNEL_URL = "/channel" REQUEST_ET_CHANNEL_ROUTE_URL = "/route" REQUEST_ET_CHANNEL_ROUTE_RULE_URL = "/rule" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client of ET service is a kind of BceClient, so derived from BceClient
func (*Client) CreateEtChannel ¶
func (c *Client) CreateEtChannel(args *CreateEtChannelArgs) (*CreateEtChannelResult, error)
CreateEtChannel - create an Et channel with the specific parameters
PARAMS:
- args: the arguments to create an eip
RETURNS:
- CreateEipResult: the result of create EIP, contains new EIP's address
- error: nil if success otherwise the specific error
func (*Client) CreateEtChannelRouteRule ¶
func (c *Client) CreateEtChannelRouteRule(args *CreateEtChannelRouteRuleArgs) (*CreateEtChannelRouteRuleResult, error)
CreateEtChannelRouteRule - create a new EtChannelRouteRule with the specified parameters
PARAMS:
- args: the arguments to create EtChannelRouteRule
RETURNS:
- *CreateEtChannelRouteRuleResult: the id of the EtChannelRouteRule newly created
- error: nil if success otherwise the specific error
func (*Client) CreateEtDcphy ¶
func (c *Client) CreateEtDcphy(args *CreateEtDcphyArgs) (*CreateEtDcphyResult, error)
CreateEtDcphy - init a new Et
PARAMS:
- args: the arguments to init et dcphy
RETURNS:
- CreateEtDcphyResult: the id of et dcphy newly created
- error: nil if success otherwise the specific error
func (*Client) DeleteEtChannel ¶
func (c *Client) DeleteEtChannel(args *DeleteEtChannelArgs) error
DeleteEtChannel - delete et channel
PARAMS:
- args: the arguments to delete et channel
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) DeleteEtChannelRouteRule ¶
func (c *Client) DeleteEtChannelRouteRule(args *DeleteEtChannelRouteRuleArgs) error
DeleteEtChannelRouteRule - delete a specified EtChannelRouteRule
PARAMS:
- params: the arguments to delete EtChannelRouteRule
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) DisableEtChannelIPv6 ¶
func (c *Client) DisableEtChannelIPv6(args *DisableEtChannelIPv6Args) error
DisableEtChannelIPv6 - disable EtChannelIPv6 with the specified parameters
PARAMS:
- args: the arguments to disable EtChannelIPv6
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) EnableEtChannelIPv6 ¶
func (c *Client) EnableEtChannelIPv6(args *EnableEtChannelIPv6Args) error
EnableEtChannelIPv6 - enable et channel ipv6
PARAMS:
- args: the arguments to enable et channel ipv6
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) GetEtChannel ¶
func (c *Client) GetEtChannel(args *GetEtChannelArgs) (*GetEtChannelsResult, error)
GetEtChannel - get an et channel
PARAMS:
- args: the arguments to get et channel
RETURNS:
- *GetEtChannelResult: the info of the et channel
- error: nil if success otherwise the specific error
func (*Client) ListEtChannelRouteRule ¶
func (c *Client) ListEtChannelRouteRule(args *ListEtChannelRouteRuleArgs) (*ListEtChannelRouteRuleResult, error)
ListEtChannelRouteRule - list all EtChannelRouteRules with the specified parameters
PARAMS:
- args: the arguments to list EtChannelRouteRules
RETURNS:
- *EtChannelRouteRuleResult: the result of all EtChannelRouteRules
- error: nil if success otherwise the specific error
func (*Client) ListEtDcphy ¶
func (c *Client) ListEtDcphy(args *ListEtDcphyArgs) (*ListEtDcphyResult, error)
ListEtDcphy - List ets
PARAMS:
- args: the arguments to list et
RETURNS:
- ListEtDcphyResult: list result
- error: nil if success otherwise the specific error
func (*Client) ListEtDcphyDetail ¶
func (c *Client) ListEtDcphyDetail(dcphyId string) (*EtDcphyDetail, error)
ListEtDcphyDetail - List specific et detail
PARAMS:
- dcphyId: the id of etDcphy
RETURNS:
- EtDcphyDetail: etDcphy detail
- error: nil if success otherwise the specific error
func (*Client) RecommitEtChannel ¶
func (c *Client) RecommitEtChannel(args *RecommitEtChannelArgs) error
RecommitEtChannel - recommit et channel
PARAMS:
- args: the arguments to recommit et channel
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) UpdateEtChannel ¶
func (c *Client) UpdateEtChannel(args *UpdateEtChannelArgs) error
UpdateEtChannel - update et channel
PARAMS:
- args: the arguments to update et channel
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) UpdateEtChannelRouteRule ¶
func (c *Client) UpdateEtChannelRouteRule(args *UpdateEtChannelRouteRuleArgs) error
UpdateEtChannelRouteRule - update a specified EtChannelRouteRule
PARAMS:
- args: the arguments to update EtChannelRouteRule
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) UpdateEtDcphy ¶
func (c *Client) UpdateEtDcphy(dcphyId string, args *UpdateEtDcphyArgs) error
UpdateEtDcphy - update an existed Et
PARAMS:
- edId: the id of et dcphy
- args: the arguments to update et dcphy
RETURNS:
- error: nil if success otherwise the specific error
type CreateEtChannelArgs ¶
type CreateEtChannelArgs struct { ClientToken string `json:"clientToken,omitempty"` EtId string `json:"etId"` AuthorizedUsers []string `json:"authorizedUsers,omitempty"` Description string `json:"description,omitempty"` BaiduAddress string `json:"baiduAddress"` Name string `json:"name"` Networks []string `json:"networks,omitempty"` CustomerAddress string `json:"customerAddress"` RouteType string `json:"routeType"` VlanId int `json:"vlanId"` BgpAsn string `json:"bgpAsn,omitempty"` BgpKey string `json:"bgpKey,omitempty"` EnableIpv6 int `json:"enableIpv6,omitempty"` BaiduIpv6Address string `json:"baiduIpv6Address,omitempty"` CustomerIpv6Address string `json:"customerIpv6Address,omitempty"` Ipv6Networks []string `json:"ipv6Networks,omitempty"` }
type CreateEtChannelResult ¶
type CreateEtChannelResult struct {
Id string `json:"id"`
}
type CreateEtChannelRouteRuleArgs ¶
type CreateEtChannelRouteRuleArgs struct { EtId string `json:"etId"` EtChannelId string `json:"etChannelId"` ClientToken string `json:"clientToken,omitempty"` IpVersion int `json:"ipVersion,omitempty"` DestAddress string `json:"destAddress"` NextHopType string `json:"nexthopType"` NextHopId string `json:"nexthopId"` Description string `json:"description,omitempty"` }
type CreateEtChannelRouteRuleResult ¶
type CreateEtChannelRouteRuleResult struct {
RouteRuleId string `json:"routeRuleId"`
}
type CreateEtDcphyArgs ¶
type CreateEtDcphyArgs struct { ClientToken string `json:"clientToken,omitempty"` Name string `json:"name"` Description string `json:"description,omitempty"` Isp string `json:"isp"` IntfType string `json:"intfType"` ApType string `json:"apType"` ApAddr string `json:"apAddr"` UserName string `json:"userName"` UserPhone string `json:"userPhone"` UserEmail string `json:"userEmail"` UserIdc string `json:"userIdc"` }
type CreateEtDcphyResult ¶
type CreateEtDcphyResult struct {
Id string `json:"id"`
}
type DeleteEtChannelArgs ¶
type EnableEtChannelIPv6Args ¶
type EnableEtChannelIPv6Args struct { ClientToken string `json:"clientToken,omitempty"` EtId string `json:"etId"` EtChannelId string `json:"etChannelId"` Result EnableEtChannelIPv6Result `json:"enableEtChannelIpv6Result"` }
type Et ¶
type Et struct { Id string `json:"Id"` Name string `json:"name"` Description string `json:"description"` Status string `json:"status"` ExpireTime string `json:"expireTime"` Isp string `json:"isp"` IntfType string `json:"intfType"` ApType string `json:"apType"` ApAddr string `json:"apAddr"` UserName string `json:"userName"` UserPhone string `json:"userPhone"` UserEmail string `json:"userEmail"` UserIdc string `json:"userIdc"` }
type EtChannelResult ¶
type EtChannelResult struct { AuthorizedUsers []string `json:"authorizedUsers"` Description string `json:"description"` BaiduAddress string `json:"baiduAddress"` Name string `json:"name"` Networks []string `json:"networks"` BGPAsn string `json:"bgpAsn"` BGPKey string `json:"bgpKey"` CustomerAddress string `json:"customerAddress"` RouteType string `json:"routeType"` VlanId string `json:"vlanId"` Id string `json:"id"` Status string `json:"status"` EnableIpv6 uint32 `json:"enableIpv6"` BaiduIpv6Address string `json:"baiduIpv6Address"` Ipv6Networks []string `json:"ipv6Networks"` CustomerIpv6Address string `json:"CustomerIpv6Address"` }
type EtChannelRouteRule ¶
type EtChannelRouteRule struct { RouteRuleId string `json:"routeRuleId"` IpVersion int `json:"ipVersion"` DestAddress string `json:"destAddress"` NextHopType string `json:"nexthopType"` NextHopId string `json:"nexthopId"` Description string `json:"description"` RouteProto string `json:"routeProto"` AsPaths string `json:"asPaths"` LocalPreference int `json:"localPreference"` Med int `json:"med"` Origin string `json:"origin"` }
type EtDcphyDetail ¶
type EtDcphyDetail struct { Id string `json:"clientToken,omitempty"` Name string `json:"name"` Description string `json:"description"` Status string `json:"status"` ExpireTime string `json:"expireTime"` Isp string `json:"isp"` IntfType string `json:"intfType"` ApType string `json:"apType"` ApAddr string `json:"apAddr"` UserName string `json:"userName"` UserPhone string `json:"userPhone"` UserEmail string `json:"userEmail"` UserIdc string `json:"userIdc"` }
type GetEtChannelArgs ¶
type GetEtChannelsResult ¶
type GetEtChannelsResult struct {
EtChannels []EtChannelResult `json:"etChannels"`
}
type ListEtChannelRouteRuleResult ¶
type ListEtChannelRouteRuleResult struct { Marker string `json:"marker"` IsTrucated bool `json:"isTruncated"` NextMarker string `json:"nextMarker"` MaxKeys int `json:"maxKeys"` RouteRules []EtChannelRouteRule `json:"routeRules"` }
type ListEtDcphyArgs ¶
type ListEtDcphyResult ¶
type RecommitEtChannelArgs ¶
type RecommitEtChannelArgs struct { ClientToken string `json:"clientToken,omitempty"` EtId string `json:"etId"` EtChannelId string `json:"etChannelId"` Result RecommitEtChannelResult `json:"etChannelResult"` }
type RecommitEtChannelResult ¶
type RecommitEtChannelResult struct { AuthorizedUsers []string `json:"authorizedUsers"` Description string `json:"description"` BaiduAddress string `json:"baiduAddress"` Name string `json:"name"` Networks []string `json:"networks"` CustomerAddress string `json:"customerAddress"` RouteType string `json:"routeType"` VlanId string `json:"vlanId"` Id string `json:"id"` Status string `json:"status"` EnableIpv6 uint32 `json:"enableIpv6"` BaiduIpv6Address string `json:"baiduIpv6Address"` Ipv6Networks []string `json:"ipv6Networks"` CustomerIpv6Address string `json:"CustomerIpv6Address"` }
type UpdateEtChannelArgs ¶
type UpdateEtChannelArgs struct { ClientToken string `json:"clientToken,omitempty"` EtId string `json:"etId"` EtChannelId string `json:"etChannelId"` Result UpdateEtChannelResult `json:"UpdateEtChannelResult"` }
type UpdateEtChannelResult ¶
type UpdateEtDcphyArgs ¶
type UpdateEtDcphyArgs struct { ClientToken string `json:"clientToken,omitempty"` Name string `json:"name,omitempty"` Description string `json:"description,omitempty"` UserName string `json:"userName,omitempty"` UserPhone string `json:"userPhone,omitempty"` UserEmail string `json:"userEmail,omitempty"` }