Commit 938f06f2 authored by root's avatar root
parents 172f3cc3 55ff887b
......@@ -7,7 +7,7 @@ import (
func main() {
// utils.HttpLogin("lglhope", "123456789")
var authRequestInfo authz.AuthRequestInfo
var authRequestInfo *authz.AuthRequestInfo
authRequestInfo.Account = "wln"
authRequestInfo.Name = "wln/apple"
authRequestInfo.Service = "wln"
......
......@@ -64,7 +64,7 @@ func HttpLogin(username string, password string) (bool, error) {
return true, nil
}
func HttpAuth(authReqInfo authz.AuthRequestInfo) bool {
func HttpAuth(authReqInfo *authz.AuthRequestInfo) bool {
client := &http.Client{}
authUrl := "http://47.57.4.97/c3ce/dockerimage/authorization"
bytesData, _ := json.Marshal(authReqInfo)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment