Exemplo n.º 1
0
 public S3FileShare(DataShareConfig cfg, string shareName)
 {
     this.cfg       = cfg;
     this.shareName = shareName;
     cfg.GetKeysForShare(shareName, out access_id, out secret_key);
     Debug.Assert(access_id != null);
     Debug.Assert(secret_key != null);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Upload or download data from S3 to a local filesystem folder.   Contents of the folder are zipped or unzipped
 /// and transferred asynchronously to the share.
 ///
 /// For a named share the INI file should contain a section named [Share:<paramref name="shareName"/>] with appropriate
 /// keys for the download directory and s3 bucket names.   Keys should be stored separately in an application specific keys
 /// INI file.
 ///
 /// </summary>
 /// <param name="_cfg">loaded INI file</param>
 /// <param name="shareName">name of the share</param>
 public DataShare(Uwu.Core.ConfigIni _cfg, string shareName)
 {
     cfg       = new DataShareConfig(_cfg);
     ShareName = shareName;
 }
Exemplo n.º 3
0
 public FolderZip(DataShareConfig cfg, string shareName, string folderName)
 {
     this.cfg        = cfg;
     this.folderName = folderName;
     this.shareName  = shareName;
 }