C# Class Akamai.NetStorage.NetStorage

The Netstorage class is the preferred interface for calling libraries indending to leverage the Netstorage API. All of the available actions are innumerated in this library and are responsible for the correct business logic to assemble the request to the API. Some early safetys are added in this library to limit errors. TODO: Add "LIST" support for ObjectStore TODO: Detect FileStore v. ObjectStore TODO: Extract xml response from various requests into standard object representation Author: [email protected] (Colin Bendell)
Afficher le fichier Open project: vimond/NetStorageKit-C-Sharp Class Usage Examples

Méthodes publiques

Méthode Description
DU ( string path, string format = "xml" ) : Stream
Delete ( string path ) : bool
Dir ( string path, string format = "xml" ) : Stream
Download ( string path ) : Stream
MTime ( string path, System.DateTime mTime = null ) : bool
MkDir ( string path ) : bool
NetStorage ( string hostname, string username, string key, bool useSSL = false ) : System
QuickDelete ( string path ) : bool
Rename ( string path, string original ) : bool
RmDir ( string path ) : bool
Stat ( string path, string format = "xml" ) : Stream
Symlink ( string path, string target ) : bool
Upload ( string path, FileInfo srcFile, bool indexZip = null ) : bool
Upload ( string path, Stream uploadFileStream, System.DateTime mTime = null, long size = null, byte md5Checksum = null, byte sha1Checksum = null, byte sha256Checksum = null, bool indexZip = null ) : bool

Private Methods

Méthode Description
execute ( string method, string path, Akamai.Netstorage.APIParams acsParams, Stream uploadStream = null ) : Stream
getNetStorageUri ( string path ) : Uri

Method Details

DU() public méthode

public DU ( string path, string format = "xml" ) : Stream
path string
format string
Résultat Stream

Delete() public méthode

public Delete ( string path ) : bool
path string
Résultat bool

Dir() public méthode

public Dir ( string path, string format = "xml" ) : Stream
path string
format string
Résultat Stream

Download() public méthode

public Download ( string path ) : Stream
path string
Résultat Stream

MTime() public méthode

public MTime ( string path, System.DateTime mTime = null ) : bool
path string
mTime System.DateTime
Résultat bool

MkDir() public méthode

public MkDir ( string path ) : bool
path string
Résultat bool

NetStorage() public méthode

public NetStorage ( string hostname, string username, string key, bool useSSL = false ) : System
hostname string
username string
key string
useSSL bool
Résultat System

QuickDelete() public méthode

public QuickDelete ( string path ) : bool
path string
Résultat bool

Rename() public méthode

public Rename ( string path, string original ) : bool
path string
original string
Résultat bool

RmDir() public méthode

public RmDir ( string path ) : bool
path string
Résultat bool

Stat() public méthode

public Stat ( string path, string format = "xml" ) : Stream
path string
format string
Résultat Stream

Symlink() public méthode

public Symlink ( string path, string target ) : bool
path string
target string
Résultat bool

Upload() public méthode

public Upload ( string path, FileInfo srcFile, bool indexZip = null ) : bool
path string
srcFile System.IO.FileInfo
indexZip bool
Résultat bool

Upload() public méthode

public Upload ( string path, Stream uploadFileStream, System.DateTime mTime = null, long size = null, byte md5Checksum = null, byte sha1Checksum = null, byte sha256Checksum = null, bool indexZip = null ) : bool
path string
uploadFileStream Stream
mTime System.DateTime
size long
md5Checksum byte
sha1Checksum byte
sha256Checksum byte
indexZip bool
Résultat bool