Exemple #1
0
        public CallRet Delete(string key)
        {
            string entryURI = BucketName + ":" + key;
            string url      = Config.RS_HOST + "/delete/" + Base64UrlSafe.Encode(entryURI);

            return(Conn.Call(url));
        }
Exemple #2
0
        public StatRet Stat(string key)
        {
            string  entryURI = BucketName + ":" + key;
            string  url      = Config.RS_HOST + "/stat/" + Base64UrlSafe.Encode(entryURI);
            CallRet callRet  = Conn.Call(url);

            return(new StatRet(callRet));
        }
Exemple #3
0
        public GetRet GetIfNotModified(string key, string attName, string hash)
        {
            string entryURI = BucketName + ":" + key;
            string url      = Config.RS_HOST + "/get/" + Base64UrlSafe.Encode(entryURI) + "/attName/"
                              + Base64UrlSafe.Encode(attName) + "/base/" + hash;
            CallRet callRet = Conn.Call(url);

            return(new GetRet(callRet));
        }
Exemple #4
0
        public PutFileRet SaveAs(string url, string specStr, string key)
        {
            string entryURI = BucketName + ":" + key;

            url = url + specStr + "/save-as/" + Base64UrlSafe.Encode(entryURI);
            CallRet callRet = Conn.Call(url);

            return(new PutFileRet(callRet));
        }
Exemple #5
0
        public CallRet Publish(string domain)
        {
            String url = Config.RS_HOST + "/publish/" + Base64UrlSafe.Encode(domain) + "/from/" + BucketName;

            return(Conn.Call(url));
        }
Exemple #6
0
        public PutAuthRet PutAuth()
        {
            CallRet callRet = Conn.Call(Config.IO_HOST + "/put-auth/");

            return(new PutAuthRet(callRet));
        }
Exemple #7
0
        public CallRet MkBucket()
        {
            string url = Config.RS_HOST + "/mkbucket/" + BucketName;

            return(Conn.Call(url));
        }
Exemple #8
0
        public CallRet Drop()
        {
            string url = Config.RS_HOST + "/drop/" + BucketName;

            return(Conn.Call(url));
        }
Exemple #9
0
        public CallRet Unpublish(string domain)
        {
            string url = Config.RS_HOST + "/unpublish/" + Base64UrlSafe.Encode(domain);

            return(Conn.Call(url));
        }