I found this comment // valid parameters not supported by go-ceph: system, exclusive, placement-tags in the Create user function and I was wondering if there is a specific reason why its not supported. is there an issue with just adding it to the struct and to the array in the function ?
func (api *API) CreateUser(ctx context.Context, user User) (User, error) {
if user.ID == "" {
return User{}, errMissingUserID
}
if user.DisplayName == "" {
return User{}, errMissingUserDisplayName
}
// valid parameters not supported by go-ceph: system, exclusive, placement-tags
body, err := api.call(ctx, http.MethodPut, "/user", valueToURLParams(user, []string{"uid", "display-name", "default-placement", "email", "key-type", "access-key", "secret-key", "user-caps", "tenant", "generate-key", "max-buckets", "suspended", "op-mask", "account-id", "account-root"}))
if err != nil {
return User{}, err
}
// Unmarshal response into Go type
u := User{}
err = json.Unmarshal(body, &u)
if err != nil {
return User{}, fmt.Errorf("%s. %s. %w", unmarshalError, string(body), err)
}
return u, nil
}
I found this comment
// valid parameters not supported by go-ceph: system, exclusive, placement-tagsin the Create user function and I was wondering if there is a specific reason why its not supported. is there an issue with just adding it to the struct and to the array in the function ?