Start to implement Website CLI

This commit is contained in:
Quentin 2020-12-14 21:50:40 +01:00
parent d0eb6a457f
commit a3566e49da
2 changed files with 5 additions and 3 deletions

View File

@ -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() {

View File

@ -156,6 +156,9 @@ pub struct WebsiteOpt {
/// Delete
#[structopt(long = "deny")]
pub deny: bool,
/// Bucket name
pub bucket: String,
}
#[derive(Serialize, Deserialize, StructOpt, Debug)]