Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Adduser functions.UaaAddUserFunc = func(info functions.UserInfo) (userId string, err error) { fmt.Println(fmt.Sprintf("add user id: %s .........", info.User.Uid)) emails := make([]Email, 0) for _, value := range info.User.Emails { email := Email{ Value: value, } emails = append(emails, email) } userRequest := UserRequest{ UserName: info.User.Uid, Externalid: info.User.Externalid, Emails: emails, Origin: info.Origin, } data, err := json.Marshal(userRequest) if err != nil { return } body := bytes.NewBuffer(data) response, err := info.RequestFn(info.Token, fmt.Sprintf("%s/Users", info.Uaaurl), "POST", "application/json", body) if err != nil { return } return parse(response) }
View Source
var NewRoundTripper = func() http.RoundTripper { return &http.Transport{ TLSClientConfig: &tls.Config{InsecureSkipVerify: true}, } }
Functions ¶
This section is empty.
Types ¶
type UserCreateResponse ¶
type UserCreateResponse struct {
Id string
}
Click to show internal directories.
Click to hide internal directories.