mirror of
https://github.com/deuxfleurs-org/garage.git
synced 2026-08-05 20:37:41 +00:00
admin api: rename bucket aliasing operations
This commit is contained in:
+16
-16
@@ -54,10 +54,10 @@ admin_endpoints![
|
||||
BucketDenyKey,
|
||||
|
||||
// Operations on bucket aliases
|
||||
GlobalAliasBucket,
|
||||
GlobalUnaliasBucket,
|
||||
LocalAliasBucket,
|
||||
LocalUnaliasBucket,
|
||||
AddGlobalBucketAlias,
|
||||
RemoveGlobalBucketAlias,
|
||||
AddLocalBucketAlias,
|
||||
RemoveLocalBucketAlias,
|
||||
];
|
||||
|
||||
// **********************************************
|
||||
@@ -514,48 +514,48 @@ pub struct BucketDenyKeyResponse(pub GetBucketInfoResponse);
|
||||
// Operations on bucket aliases
|
||||
// **********************************************
|
||||
|
||||
// ---- GlobalAliasBucket ----
|
||||
// ---- AddGlobalBucketAlias ----
|
||||
|
||||
#[derive(Serialize, Deserialize)]
|
||||
pub struct GlobalAliasBucketRequest {
|
||||
pub struct AddGlobalBucketAliasRequest {
|
||||
pub bucket_id: String,
|
||||
pub alias: String,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize)]
|
||||
pub struct GlobalAliasBucketResponse(pub GetBucketInfoResponse);
|
||||
pub struct AddGlobalBucketAliasResponse(pub GetBucketInfoResponse);
|
||||
|
||||
// ---- GlobalUnaliasBucket ----
|
||||
// ---- RemoveGlobalBucketAlias ----
|
||||
|
||||
#[derive(Serialize, Deserialize)]
|
||||
pub struct GlobalUnaliasBucketRequest {
|
||||
pub struct RemoveGlobalBucketAliasRequest {
|
||||
pub bucket_id: String,
|
||||
pub alias: String,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize)]
|
||||
pub struct GlobalUnaliasBucketResponse(pub GetBucketInfoResponse);
|
||||
pub struct RemoveGlobalBucketAliasResponse(pub GetBucketInfoResponse);
|
||||
|
||||
// ---- LocalAliasBucket ----
|
||||
// ---- AddLocalBucketAlias ----
|
||||
|
||||
#[derive(Serialize, Deserialize)]
|
||||
pub struct LocalAliasBucketRequest {
|
||||
pub struct AddLocalBucketAliasRequest {
|
||||
pub bucket_id: String,
|
||||
pub access_key_id: String,
|
||||
pub alias: String,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize)]
|
||||
pub struct LocalAliasBucketResponse(pub GetBucketInfoResponse);
|
||||
pub struct AddLocalBucketAliasResponse(pub GetBucketInfoResponse);
|
||||
|
||||
// ---- LocalUnaliasBucket ----
|
||||
// ---- RemoveLocalBucketAlias ----
|
||||
|
||||
#[derive(Serialize, Deserialize)]
|
||||
pub struct LocalUnaliasBucketRequest {
|
||||
pub struct RemoveLocalBucketAliasRequest {
|
||||
pub bucket_id: String,
|
||||
pub access_key_id: String,
|
||||
pub alias: String,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize)]
|
||||
pub struct LocalUnaliasBucketResponse(pub GetBucketInfoResponse);
|
||||
pub struct RemoveLocalBucketAliasResponse(pub GetBucketInfoResponse);
|
||||
|
||||
Reference in New Issue
Block a user