public void SetPermiss(string bucket, int permiss)
 {
     var ret = _bucketProvider.SetPermiss(new SetPermissParam(Permiss.FromValue <Permiss>(permiss),
                                                              new BasePersistentOps()
     {
         Bucket = bucket,
     }));
 }
Esempio n. 2
0
        public void SetPermiss(string bucket, bool state)
        {
            var ret = _bucketProvider.SetPermiss(new SetPermissParam(Permiss.Public, new BasePersistentOps()
            {
                Bucket = bucket
            }));

            Check.True(ret.State == state, "设置访问权限失败");
        }