mirror of
https://git.deuxfleurs.fr/Deuxfleurs/garage.git
synced 2024-11-14 04:01:25 +00:00
Start to implement Website CLI
This commit is contained in:
parent
d0eb6a457f
commit
a3566e49da
2 changed files with 5 additions and 3 deletions
|
@ -156,12 +156,11 @@ impl AdminRpcHandler {
|
|||
)))
|
||||
}
|
||||
BucketOperation::Website(query) => {
|
||||
/*let bucket = self.get_existing_bucket(&query.bucket).await?;
|
||||
|
||||
let bucket = self.get_existing_bucket(&query.bucket).await?;
|
||||
if query.allow && query.deny {
|
||||
return Err(Error::Message(format!("Website can not be both allowed and denied on a bucket")));
|
||||
}
|
||||
|
||||
/*
|
||||
if query.allow || query.deny {
|
||||
let exposed = query.allow;
|
||||
if let BucketState::Present(state) = bucket.state.get_mut() {
|
||||
|
|
|
@ -156,6 +156,9 @@ pub struct WebsiteOpt {
|
|||
/// Delete
|
||||
#[structopt(long = "deny")]
|
||||
pub deny: bool,
|
||||
|
||||
/// Bucket name
|
||||
pub bucket: String,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, StructOpt, Debug)]
|
||||
|
|
Loading…
Reference in a new issue