C# Class azurecopy.Utils.S3Helper

ASSUMPTION is that all S3 URLs will be in format https://bucketname.s3.amazonaws.com and NOT https://s3.amazonaws.com/bucketname Will need to handle both eventually.
Afficher le fichier Open project: kpfaulkner/azurecopy

Méthodes publiques

Méthode Description
FormatUrl ( string url ) : string

Format URL into s3.amazonaws.com/bucketname regardless of format it comes in with. Not foolproof, but should handle the common cases. FIXME: Will need to revisit.

GeneratePreSignedUrl ( string bucket, string key, int timeout = 30 ) : string
GenerateS3Client ( string accessKey, string secretKey, string bucketName = null ) : IAmazonS3
GetBucketFromUrl ( string url ) : string
GetDisplayName ( string fullBlobName ) : string
GetKeyFromUrl ( string url ) : string
MatchHandler ( string url ) : bool

Private Methods

Méthode Description
GenerateRegionDict ( ) : Amazon.RegionEndpoint>.Dictionary
GetPrefixFromUrl ( string baseUrl ) : string
S3Helper ( ) : System

Method Details

FormatUrl() public static méthode

Format URL into s3.amazonaws.com/bucketname regardless of format it comes in with. Not foolproof, but should handle the common cases. FIXME: Will need to revisit.
public static FormatUrl ( string url ) : string
url string
Résultat string

GeneratePreSignedUrl() public static méthode

public static GeneratePreSignedUrl ( string bucket, string key, int timeout = 30 ) : string
bucket string
key string
timeout int
Résultat string

GenerateS3Client() public static méthode

public static GenerateS3Client ( string accessKey, string secretKey, string bucketName = null ) : IAmazonS3
accessKey string
secretKey string
bucketName string
Résultat IAmazonS3

GetBucketFromUrl() public static méthode

public static GetBucketFromUrl ( string url ) : string
url string
Résultat string

GetDisplayName() public static méthode

public static GetDisplayName ( string fullBlobName ) : string
fullBlobName string
Résultat string

GetKeyFromUrl() public static méthode

public static GetKeyFromUrl ( string url ) : string
url string
Résultat string

MatchHandler() public static méthode

public static MatchHandler ( string url ) : bool
url string
Résultat bool