object S3
S3 utility
- Alphabetic
- By Inheritance
- S3
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
apply[T](config: T)(implicit ws: StandaloneAhcWSClient, provider: URIProvider[T]): Try[WSS3]
Tries to create a S3 client from an URI using the following format:
s3:http://accessKey:secretKey@s3.amazonaws.com/?style=[virtualHost|path]Tries to create a S3 client from an URI using the following format:
s3:http://accessKey:secretKey@s3.amazonaws.com/?style=[virtualHost|path]The
accessKeyandsecretKeymust not be URI-encoded.import play.api.libs.ws.ahc.StandaloneAhcWSClient import com.zengularity.benji.s3.S3 def init1(implicit wc: StandaloneAhcWSClient) = S3("s3:http://accessKey:secretKey@s3.amazonaws.com/?style=virtualHost") // or def init2(implicit wc: StandaloneAhcWSClient) = S3(new java.net.URI("s3:https://accessKey:secretKey@s3.amazonaws.com/?style=path"))
- T
the config type to be consumed by the provider typeclass
- config
the config element used by the provider to generate the URI
- provider
a typeclass that try to generate an URI from the config element
- returns
Success if the WSS3 was properly created, otherwise Failure
-
def
apply(accessKeyId: String, secretAccessKeyId: String, scheme: String, host: String)(implicit ws: StandaloneAhcWSClient): WSS3
Returns the S3 client in the path style (and signature V1/V2).
Returns the S3 client in the path style (and signature V1/V2).
- accessKeyId
the user access key
- secretAccessKeyId
the user secret key
- scheme
the scheme
- host
the host name (or IP address)
- returns
A WSS3 instance configured to work with the S3-compatible API of a the server
def init(implicit wc: play.api.libs.ws.ahc.StandaloneAhcWSClient) = com.zengularity.benji.s3.S3( accessKeyId = "accessKey", secretAccessKeyId = "secretAccessKey", scheme = "https", host = "s3.amazonaws.com")
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
virtualHost(accessKeyId: String, secretAccessKeyId: String, scheme: String, host: String)(implicit ws: StandaloneAhcWSClient): WSS3
Returns the S3 client in the virtual host style.
Returns the S3 client in the virtual host style. A S3 signature V1/V2 is used (see virtualHostAwsV4).
- accessKeyId
the user access key
- secretAccessKeyId
the user secret key
- scheme
the scheme
- host
the host name (or IP address)
- returns
A WSS3 instance configured to work with the S3-compatible API of a the server
def init(implicit wc: play.api.libs.ws.ahc.StandaloneAhcWSClient) = com.zengularity.benji.s3.S3.virtualHost( accessKeyId = "accessKey", secretAccessKeyId = "secretAccessKey", scheme = "https", host = "s3.amazonaws.com")
-
def
virtualHostAwsV4(accessKeyId: String, secretAccessKeyId: String, scheme: String, host: String, region: String)(implicit ws: StandaloneAhcWSClient): WSS3
Returns the S3 client in the virtual host style.
Returns the S3 client in the virtual host style. A AWS signature V4 is used (see virtualHostAwsV4 and Signature Version 4 Signing Process.
- accessKeyId
the user access key
- secretAccessKeyId
the user secret key
- scheme
the scheme
- host
the host name (or IP address)
- region
the AWS/S3 region
- returns
A WSS3 instance configured to work with the AWS V4
def init(implicit wc: play.api.libs.ws.ahc.StandaloneAhcWSClient) = com.zengularity.benji.s3.S3.virtualHostAwsV4( accessKeyId = "accessKey", secretAccessKeyId = "secretAccessKey", scheme = "https", host = "s3.amazonaws.com", region = "us-east-1")
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()