mirror of https://github.com/ceph/go-ceph
rgw/admin: promote add/remove caps to stable
Promoting the API.AddUserCap and API.RemoveUserCap calls to stable so they can be release in 0.13. Signed-off-by: Sébastien Han <seb@redhat.com>
This commit is contained in:
parent
2ef8713fc5
commit
e23ab127c0
|
@ -1646,20 +1646,7 @@
|
|||
]
|
||||
},
|
||||
"rgw/admin": {
|
||||
"preview_api": [
|
||||
{
|
||||
"name": "API.AddUserCap",
|
||||
"comment": "AddUserCap adds the capabilities for a user.\nOn Success, it returns the updated list of UserCaps for the user.\nPREVIEW\n",
|
||||
"added_in_version": "v0.12.0",
|
||||
"expected_stable_version": "v0.13.0"
|
||||
},
|
||||
{
|
||||
"name": "API.RemoveUserCap",
|
||||
"comment": "RemoveUserCap removes the capabilities from a user.\nOn Success, it returns the updated list of UserCaps for the user.\nPREVIEW\n",
|
||||
"added_in_version": "v0.12.0",
|
||||
"expected_stable_version": "v0.13.0"
|
||||
}
|
||||
],
|
||||
"preview_api": [],
|
||||
"stable_api": [
|
||||
{
|
||||
"name": "API.ListBuckets",
|
||||
|
@ -1727,6 +1714,14 @@
|
|||
{
|
||||
"name": "API.ModifyUser",
|
||||
"comment": "ModifyUser - http://docs.ceph.com/docs/latest/radosgw/adminops/#modify-user\n"
|
||||
},
|
||||
{
|
||||
"name": "API.AddUserCap",
|
||||
"comment": "AddUserCap adds the capabilities for a user.\nOn Success, it returns the updated list of UserCaps for the user.\n"
|
||||
},
|
||||
{
|
||||
"name": "API.RemoveUserCap",
|
||||
"comment": "RemoveUserCap removes the capabilities from a user.\nOn Success, it returns the updated list of UserCaps for the user.\n"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
@ -38,8 +38,4 @@ TaskAdmin.Cancel | v0.12.0 | v0.13.0 |
|
|||
|
||||
### Preview APIs
|
||||
|
||||
Name | Added in Version | Expected Stable Version |
|
||||
---- | ---------------- | ----------------------- |
|
||||
API.AddUserCap | v0.12.0 | v0.13.0 |
|
||||
API.RemoveUserCap | v0.12.0 | v0.13.0 |
|
||||
|
||||
|
|
|
@ -1,6 +1,3 @@
|
|||
//go:build ceph_preview
|
||||
// +build ceph_preview
|
||||
|
||||
package admin
|
||||
|
||||
import (
|
||||
|
@ -11,7 +8,6 @@ import (
|
|||
)
|
||||
|
||||
// AddUserCap adds the capabilities for a user.
|
||||
// PREVIEW
|
||||
//
|
||||
// On Success, it returns the updated list of UserCaps for the user.
|
||||
func (api *API) AddUserCap(ctx context.Context, uid, userCap string) ([]UserCapSpec, error) {
|
||||
|
@ -38,7 +34,6 @@ func (api *API) AddUserCap(ctx context.Context, uid, userCap string) ([]UserCapS
|
|||
}
|
||||
|
||||
// RemoveUserCap removes the capabilities from a user.
|
||||
// PREVIEW
|
||||
//
|
||||
// On Success, it returns the updated list of UserCaps for the user.
|
||||
func (api *API) RemoveUserCap(ctx context.Context, uid, userCap string) ([]UserCapSpec, error) {
|
||||
|
|
Loading…
Reference in New Issue