Commit 0cebc17d authored by liugaoling's avatar liugaoling

authorization

parent b29d08fb
...@@ -7,14 +7,9 @@ import ( ...@@ -7,14 +7,9 @@ import (
func main() { func main() {
// utils.HttpLogin("lglhope", "123456789") // utils.HttpLogin("lglhope", "123456789")
authRequestInfo := authz.AuthRequestInfo { var authRequestInfo authz.AuthRequestInfo
Account: "wln", authRequestInfo.Account = "wln"
Type: "", authRequestInfo.Name = "wln/apple"
Name: "wln/apple", authRequestInfo.Service = "wln"
Service: "CE-Z1",
IP: nil,
Actions: ["pull"],
Labels: nil,
}
utils.HttpAuth(authRequestInfo) utils.HttpAuth(authRequestInfo)
} }
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