mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-06-07 07:58:53 +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]
|
[package]
|
||||||
name = "gst-plugin-rusoto"
|
name = "gst-plugin-aws"
|
||||||
version = "0.9.0"
|
version = "0.9.0"
|
||||||
authors = ["Arun Raghavan <arun@arunraghavan.net>",
|
authors = ["Arun Raghavan <arun@arunraghavan.net>",
|
||||||
"Jordan Petridis <jordan@centricular.com>",
|
"Jordan Petridis <jordan@centricular.com>",
|
||||||
|
@ -40,7 +40,7 @@ base32 = "0.4"
|
||||||
backoff = { version = "0.4", features = [ "futures", "tokio" ] }
|
backoff = { version = "0.4", features = [ "futures", "tokio" ] }
|
||||||
|
|
||||||
[lib]
|
[lib]
|
||||||
name = "gstrusoto"
|
name = "gstaws"
|
||||||
crate-type = ["cdylib", "rlib"]
|
crate-type = ["cdylib", "rlib"]
|
||||||
path = "src/lib.rs"
|
path = "src/lib.rs"
|
||||||
|
|
||||||
|
|
|
@ -7,9 +7,9 @@ to interact with [S3](https://aws.amazon.com/s3) and
|
||||||
|
|
||||||
## AWS Credentials
|
## AWS Credentials
|
||||||
|
|
||||||
AWS credentials are picked up using the mechanism that
|
AWS credentials are picked up using the mechanism described by
|
||||||
[rusoto's ChainProvider](https://rusoto.github.io/rusoto/rusoto_credential/struct.ChainProvider.html)
|
[AWS SDK](https://docs.aws.amazon.com/sdk-for-rust/latest/dg/credentials.html).
|
||||||
uses. At the moment, that is:
|
At the moment, that is:
|
||||||
|
|
||||||
1. Environment variables: `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY`
|
1. Environment variables: `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY`
|
||||||
2. AWS credentials file. Usually located at ~/.aws/credentials.
|
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!(
|
gst::plugin_define!(
|
||||||
rusoto,
|
aws,
|
||||||
env!("CARGO_PKG_DESCRIPTION"),
|
env!("CARGO_PKG_DESCRIPTION"),
|
||||||
plugin_init,
|
plugin_init,
|
||||||
concat!(env!("CARGO_PKG_VERSION"), "-", env!("COMMIT_ID")),
|
concat!(env!("CARGO_PKG_VERSION"), "-", env!("COMMIT_ID")),
|
||||||
|
|
|
@ -172,7 +172,7 @@ pub struct S3Sink {
|
||||||
|
|
||||||
static CAT: Lazy<gst::DebugCategory> = Lazy::new(|| {
|
static CAT: Lazy<gst::DebugCategory> = Lazy::new(|| {
|
||||||
gst::DebugCategory::new(
|
gst::DebugCategory::new(
|
||||||
"rusotos3sink",
|
"aws3sink",
|
||||||
gst::DebugColorFlags::empty(),
|
gst::DebugColorFlags::empty(),
|
||||||
Some("Amazon S3 Sink"),
|
Some("Amazon S3 Sink"),
|
||||||
)
|
)
|
||||||
|
@ -468,7 +468,7 @@ impl S3Sink {
|
||||||
secret_access_key.clone(),
|
secret_access_key.clone(),
|
||||||
None,
|
None,
|
||||||
None,
|
None,
|
||||||
"rusoto-s3-sink",
|
"aws-s3-sink",
|
||||||
)),
|
)),
|
||||||
_ => None,
|
_ => None,
|
||||||
};
|
};
|
||||||
|
|
|
@ -36,5 +36,11 @@ pub fn register(plugin: &gst::Plugin) -> Result<(), glib::BoolError> {
|
||||||
"rusotos3sink",
|
"rusotos3sink",
|
||||||
gst::Rank::Primary,
|
gst::Rank::Primary,
|
||||||
S3Sink::static_type(),
|
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(|| {
|
static CAT: Lazy<gst::DebugCategory> = Lazy::new(|| {
|
||||||
gst::DebugCategory::new(
|
gst::DebugCategory::new(
|
||||||
"rusotos3src",
|
"awss3src",
|
||||||
gst::DebugColorFlags::empty(),
|
gst::DebugColorFlags::empty(),
|
||||||
Some("Amazon S3 Source"),
|
Some("Amazon S3 Source"),
|
||||||
)
|
)
|
||||||
|
@ -104,7 +104,7 @@ impl S3Src {
|
||||||
secret_access_key.clone(),
|
secret_access_key.clone(),
|
||||||
None,
|
None,
|
||||||
None,
|
None,
|
||||||
"rusoto-s3-src",
|
"aws-s3-src",
|
||||||
)),
|
)),
|
||||||
_ => None,
|
_ => None,
|
||||||
};
|
};
|
||||||
|
|
|
@ -21,5 +21,11 @@ pub fn register(plugin: &gst::Plugin) -> Result<(), glib::BoolError> {
|
||||||
"rusotos3src",
|
"rusotos3src",
|
||||||
gst::Rank::Primary,
|
gst::Rank::Primary,
|
||||||
S3Src::static_type(),
|
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()
|
runtime::Builder::new_multi_thread()
|
||||||
.enable_all()
|
.enable_all()
|
||||||
.worker_threads(2)
|
.worker_threads(2)
|
||||||
.thread_name("gst-rusoto-runtime")
|
.thread_name("gst-aws-runtime")
|
||||||
.build()
|
.build()
|
||||||
.unwrap()
|
.unwrap()
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue