C# 클래스 Snowcode.S3BuildPublisher.S3.S3Helper

Helper class to connect to Amazon aws S3 and store files.
상속: IDisposable
파일 보기 프로젝트 열기: BookSwapSteve/AWS-MSBuild-Task-Library 1 사용 예제들

공개 메소드들

메소드 설명
CreateBucket ( string bucketName ) : void

Creates a S3 Bucket.

DeleteBucket ( string bucketName ) : void

Delete a S3 Bucket.

DeleteObject ( string bucketName, string key ) : void

Seletes an object from a S3 bucket.

Dispose ( ) : void
Publish ( string files, string bucketName, string folder, bool publicRead ) : void

Publish a file to a S3 bucket, in the folder specified, optionally making it publically readable.

PutFileObject ( string bucketName, string key, string file ) : void

Puts a file into a S3 bucket.

PutTextObject ( string bucketName, string key, string text ) : void

Creates a text object in the S3 bucket.

S3Helper ( AmazonS3 amazonS3Client ) : System
S3Helper ( Snowcode.S3BuildPublisher.Client.AwsClientDetails clientDetails ) : System
S3Helper ( string awsAccessKeyId, string awsSecretAccessKey ) : System
SetAcl ( string bucketName, string cannedACL, string key ) : void

Sets the ACL

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

비공개 메소드들

메소드 설명
CreateBucketIfNeeded ( string bucketName ) : void
GetDestinationFolder ( string folder ) : string
StoreFile ( string file, string key, string bucketName, bool publicRead ) : void
StoreFiles ( string files, string bucketName, string destinationFolder, bool publicRead ) : void

메소드 상세

CreateBucket() 공개 메소드

Creates a S3 Bucket.
public CreateBucket ( string bucketName ) : void
bucketName string
리턴 void

DeleteBucket() 공개 메소드

Delete a S3 Bucket.
public DeleteBucket ( string bucketName ) : void
bucketName string
리턴 void

DeleteObject() 공개 메소드

Seletes an object from a S3 bucket.
public DeleteObject ( string bucketName, string key ) : void
bucketName string
key string
리턴 void

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

Dispose() 보호된 메소드

protected Dispose ( bool disposing ) : void
disposing bool
리턴 void

Publish() 공개 메소드

Publish a file to a S3 bucket, in the folder specified, optionally making it publically readable.
public Publish ( string files, string bucketName, string folder, bool publicRead ) : void
files string
bucketName string
folder string
publicRead bool
리턴 void

PutFileObject() 공개 메소드

Puts a file into a S3 bucket.
public PutFileObject ( string bucketName, string key, string file ) : void
bucketName string
key string
file string
리턴 void

PutTextObject() 공개 메소드

Creates a text object in the S3 bucket.
public PutTextObject ( string bucketName, string key, string text ) : void
bucketName string
key string
text string
리턴 void

S3Helper() 공개 메소드

public S3Helper ( AmazonS3 amazonS3Client ) : System
amazonS3Client AmazonS3
리턴 System

S3Helper() 공개 메소드

public S3Helper ( Snowcode.S3BuildPublisher.Client.AwsClientDetails clientDetails ) : System
clientDetails Snowcode.S3BuildPublisher.Client.AwsClientDetails
리턴 System

S3Helper() 공개 메소드

public S3Helper ( string awsAccessKeyId, string awsSecretAccessKey ) : System
awsAccessKeyId string
awsSecretAccessKey string
리턴 System

SetAcl() 공개 메소드

Sets the ACL
public SetAcl ( string bucketName, string cannedACL, string key ) : void
bucketName string
cannedACL string ACL to use, AuthenticatedRead, BucketOwnerFullControl, BucketOwnerRead, NoACL, Private, PublicRead, PublicReadWrite
key string
리턴 void