C# 클래스 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.
파일 보기 프로젝트 열기: kpfaulkner/azurecopy

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
GenerateRegionDict ( ) : Amazon.RegionEndpoint>.Dictionary
GetPrefixFromUrl ( string baseUrl ) : string
S3Helper ( ) : System

메소드 상세

FormatUrl() 공개 정적인 메소드

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
리턴 string

GeneratePreSignedUrl() 공개 정적인 메소드

public static GeneratePreSignedUrl ( string bucket, string key, int timeout = 30 ) : string
bucket string
key string
timeout int
리턴 string

GenerateS3Client() 공개 정적인 메소드

public static GenerateS3Client ( string accessKey, string secretKey, string bucketName = null ) : IAmazonS3
accessKey string
secretKey string
bucketName string
리턴 IAmazonS3

GetBucketFromUrl() 공개 정적인 메소드

public static GetBucketFromUrl ( string url ) : string
url string
리턴 string

GetDisplayName() 공개 정적인 메소드

public static GetDisplayName ( string fullBlobName ) : string
fullBlobName string
리턴 string

GetKeyFromUrl() 공개 정적인 메소드

public static GetKeyFromUrl ( string url ) : string
url string
리턴 string

MatchHandler() 공개 정적인 메소드

public static MatchHandler ( string url ) : bool
url string
리턴 bool