Documentation ¶
Index ¶
- func AAAAuthentication(rw http.ResponseWriter, req *http.Request)
- func AAAGenerateToken(rw http.ResponseWriter, req *http.Request)
- func AAAValidateToken(id string, signature string) (bool, int64)
- func AssetCreateTemplate(rw http.ResponseWriter, req *http.Request)
- func AssetSynchronize(rw http.ResponseWriter, req *http.Request)
- func CloudAPICall(rw http.ResponseWriter, req *http.Request)
- func CloudAPICallForLoop(in *pb.CloudAPICall, nextToken string, page, totalCount int64) (out *pb.CloudAPICall, isLoop bool)
- func CloudAPICallRaw(rw http.ResponseWriter, req *http.Request)
- func CloudTokenRegistry(rw http.ResponseWriter, req *http.Request)
- func ConfigPull(rw http.ResponseWriter, req *http.Request)
- func ConfigPush(rw http.ResponseWriter, req *http.Request)
- func HookCreate(rw http.ResponseWriter, req *http.Request)
- func HookRecive(rw http.ResponseWriter, req *http.Request)
- func OrchestrationCreate(rw http.ResponseWriter, req *http.Request)
- func PublicCfgVersion(rw http.ResponseWriter, req *http.Request)
- func PublicGenerateToken(rw http.ResponseWriter, req *http.Request)
- func PublicValidateToken(k string) (bool, int64)
- func ValidatePostData(rw http.ResponseWriter, req *http.Request) ([]byte, bool)
- func WechatReceiveMessage(rw http.ResponseWriter, req *http.Request)
- func WechatValidateServer(rw http.ResponseWriter, req *http.Request)
- type AssetSynchronizeRequest
- type AssetTemplate
- type AuthenticationToken
- type CloudAPIRawRequest
- type CloudAPIRequest
- type CloudAPIResponse
- type OrchestrationCreateRequest
- type PrivateToken
- type PublicToken
- type ThirdToken
- type TokenRegInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AAAAuthentication ¶
func AAAAuthentication(rw http.ResponseWriter, req *http.Request)
POST /v1/AAA/authentication
func AAAGenerateToken ¶
func AAAGenerateToken(rw http.ResponseWriter, req *http.Request)
GET /v1/AAA/token
func AAAValidateToken ¶
return the sinature is valid
func AssetCreateTemplate ¶
func AssetCreateTemplate(rw http.ResponseWriter, req *http.Request)
func AssetSynchronize ¶
func AssetSynchronize(rw http.ResponseWriter, req *http.Request)
func CloudAPICall ¶
func CloudAPICall(rw http.ResponseWriter, req *http.Request)
func CloudAPICallForLoop ¶
func CloudAPICallRaw ¶
func CloudAPICallRaw(rw http.ResponseWriter, req *http.Request)
func CloudTokenRegistry ¶
func CloudTokenRegistry(rw http.ResponseWriter, req *http.Request)
POST /v1/cloud/token
func ConfigPull ¶
func ConfigPull(rw http.ResponseWriter, req *http.Request)
func ConfigPush ¶
func ConfigPush(rw http.ResponseWriter, req *http.Request)
func HookCreate ¶
func HookCreate(rw http.ResponseWriter, req *http.Request)
func HookRecive ¶
func HookRecive(rw http.ResponseWriter, req *http.Request)
func OrchestrationCreate ¶
func OrchestrationCreate(rw http.ResponseWriter, req *http.Request)
func PublicCfgVersion ¶
func PublicCfgVersion(rw http.ResponseWriter, req *http.Request)
func PublicGenerateToken ¶
func PublicGenerateToken(rw http.ResponseWriter, req *http.Request)
func PublicValidateToken ¶
func ValidatePostData ¶
func WechatReceiveMessage ¶
func WechatReceiveMessage(rw http.ResponseWriter, req *http.Request)
func WechatValidateServer ¶
func WechatValidateServer(rw http.ResponseWriter, req *http.Request)
Types ¶
type AssetSynchronizeRequest ¶
type AssetSynchronizeRequest struct { PrivateToken AuthenticationToken `json:"token"` CloudTokenName string `json:"name"` Region string `json:"region"` }
type AssetTemplate ¶
type AssetTemplate struct { PrivateToken AuthenticationToken `json:"token"` Name string `json:"name"` Param map[string]string `json:"param"` }
type AuthenticationToken ¶
type CloudAPIRawRequest ¶
type CloudAPIRequest ¶
type CloudAPIResponse ¶
type PrivateToken ¶
type PublicToken ¶
type PublicToken struct {
Token string `json:"token"`
}
type ThirdToken ¶
type ThirdToken struct { PrivateToken AuthenticationToken `json:"token"` Cloud string `json:"cloud"` Name string `json:"name"` ID string `json:"id"` Key string `json:"key"` }
type TokenRegInfo ¶
Click to show internal directories.
Click to hide internal directories.