mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-12-23 10:30:40 +00:00
net/rusoto: Rename to aws
Rename all the elements to use aws prefix now but still register a backwards compat element factory. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/759>
This commit is contained in:
parent
2b0bf218b1
commit
81437bb1c9
8 changed files with 23 additions and 11 deletions
|
@ -1,5 +1,5 @@
|
|||
[package]
|
||||
name = "gst-plugin-rusoto"
|
||||
name = "gst-plugin-aws"
|
||||
version = "0.9.0"
|
||||
authors = ["Arun Raghavan <arun@arunraghavan.net>",
|
||||
"Jordan Petridis <jordan@centricular.com>",
|
||||
|
@ -40,7 +40,7 @@ base32 = "0.4"
|
|||
backoff = { version = "0.4", features = [ "futures", "tokio" ] }
|
||||
|
||||
[lib]
|
||||
name = "gstrusoto"
|
||||
name = "gstaws"
|
||||
crate-type = ["cdylib", "rlib"]
|
||||
path = "src/lib.rs"
|
||||
|
||||
|
|
|
@ -7,9 +7,9 @@ to interact with [S3](https://aws.amazon.com/s3) and
|
|||
|
||||
## AWS Credentials
|
||||
|
||||
AWS credentials are picked up using the mechanism that
|
||||
[rusoto's ChainProvider](https://rusoto.github.io/rusoto/rusoto_credential/struct.ChainProvider.html)
|
||||
uses. At the moment, that is:
|
||||
AWS credentials are picked up using the mechanism described by
|
||||
[AWS SDK](https://docs.aws.amazon.com/sdk-for-rust/latest/dg/credentials.html).
|
||||
At the moment, that is:
|
||||
|
||||
1. Environment variables: `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY`
|
||||
2. AWS credentials file. Usually located at ~/.aws/credentials.
|
||||
|
|
|
@ -28,7 +28,7 @@ fn plugin_init(plugin: &gst::Plugin) -> Result<(), glib::BoolError> {
|
|||
}
|
||||
|
||||
gst::plugin_define!(
|
||||
rusoto,
|
||||
aws,
|
||||
env!("CARGO_PKG_DESCRIPTION"),
|
||||
plugin_init,
|
||||
concat!(env!("CARGO_PKG_VERSION"), "-", env!("COMMIT_ID")),
|
||||
|
|
|
@ -172,7 +172,7 @@ pub struct S3Sink {
|
|||
|
||||
static CAT: Lazy<gst::DebugCategory> = Lazy::new(|| {
|
||||
gst::DebugCategory::new(
|
||||
"rusotos3sink",
|
||||
"aws3sink",
|
||||
gst::DebugColorFlags::empty(),
|
||||
Some("Amazon S3 Sink"),
|
||||
)
|
||||
|
@ -468,7 +468,7 @@ impl S3Sink {
|
|||
secret_access_key.clone(),
|
||||
None,
|
||||
None,
|
||||
"rusoto-s3-sink",
|
||||
"aws-s3-sink",
|
||||
)),
|
||||
_ => None,
|
||||
};
|
||||
|
|
|
@ -36,5 +36,11 @@ pub fn register(plugin: &gst::Plugin) -> Result<(), glib::BoolError> {
|
|||
"rusotos3sink",
|
||||
gst::Rank::Primary,
|
||||
S3Sink::static_type(),
|
||||
)?;
|
||||
gst::Element::register(
|
||||
Some(plugin),
|
||||
"awss3sink",
|
||||
gst::Rank::Primary,
|
||||
S3Sink::static_type(),
|
||||
)
|
||||
}
|
||||
|
|
|
@ -76,7 +76,7 @@ pub struct S3Src {
|
|||
|
||||
static CAT: Lazy<gst::DebugCategory> = Lazy::new(|| {
|
||||
gst::DebugCategory::new(
|
||||
"rusotos3src",
|
||||
"awss3src",
|
||||
gst::DebugColorFlags::empty(),
|
||||
Some("Amazon S3 Source"),
|
||||
)
|
||||
|
@ -104,7 +104,7 @@ impl S3Src {
|
|||
secret_access_key.clone(),
|
||||
None,
|
||||
None,
|
||||
"rusoto-s3-src",
|
||||
"aws-s3-src",
|
||||
)),
|
||||
_ => None,
|
||||
};
|
||||
|
|
|
@ -21,5 +21,11 @@ pub fn register(plugin: &gst::Plugin) -> Result<(), glib::BoolError> {
|
|||
"rusotos3src",
|
||||
gst::Rank::Primary,
|
||||
S3Src::static_type(),
|
||||
)?;
|
||||
gst::Element::register(
|
||||
Some(plugin),
|
||||
"awss3src",
|
||||
gst::Rank::Primary,
|
||||
S3Src::static_type(),
|
||||
)
|
||||
}
|
||||
|
|
|
@ -27,7 +27,7 @@ static RUNTIME: Lazy<runtime::Runtime> = Lazy::new(|| {
|
|||
runtime::Builder::new_multi_thread()
|
||||
.enable_all()
|
||||
.worker_threads(2)
|
||||
.thread_name("gst-rusoto-runtime")
|
||||
.thread_name("gst-aws-runtime")
|
||||
.build()
|
||||
.unwrap()
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue