chore(tazjin/yddns): update yandex-cloud version
Change-Id: Iaf246014601bf7ab3fb1af4961c2fe26f66e45be Reviewed-on: https://cl.tvl.fyi/c/depot/+/8770 Tested-by: BuildkiteCI Reviewed-by: tazjin <tazjin@tvl.su>
This commit is contained in:
parent
b3c9619f8c
commit
3d3890ebcd
3 changed files with 9 additions and 12 deletions
5
users/tazjin/yddns/Cargo.lock
generated
5
users/tazjin/yddns/Cargo.lock
generated
|
@ -1451,9 +1451,9 @@ checksum = "1a515f5799fe4961cb532f983ce2b23082366b898e52ffbce459c86f67c8378a"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "yandex-cloud"
|
name = "yandex-cloud"
|
||||||
version = "2023.5.23"
|
version = "2023.6.13"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "4700ffa9a32b893a0c0c20a7d818b256ce2fbc37e354930051c476fc11488dda"
|
checksum = "f131927e2f67d891994c1562f90885e49756b7ba1031b0845b2b8da5b6425c04"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"prost",
|
"prost",
|
||||||
"prost-types",
|
"prost-types",
|
||||||
|
@ -1469,6 +1469,5 @@ dependencies = [
|
||||||
"anyhow",
|
"anyhow",
|
||||||
"crimp",
|
"crimp",
|
||||||
"tokio",
|
"tokio",
|
||||||
"tonic",
|
|
||||||
"yandex-cloud",
|
"yandex-cloud",
|
||||||
]
|
]
|
||||||
|
|
|
@ -6,8 +6,7 @@ edition = "2021"
|
||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
anyhow = "1.0.71"
|
anyhow = "1.0"
|
||||||
crimp = "4087.0.0"
|
crimp = "4087.0"
|
||||||
tokio = "1.28.2"
|
tokio = "*" # pulled in by yandex-cloud
|
||||||
tonic = "0.9.2"
|
yandex-cloud = "2023.6.13"
|
||||||
yandex-cloud = "2023.5.23"
|
|
||||||
|
|
|
@ -3,9 +3,7 @@ use crimp::Request;
|
||||||
use std::env;
|
use std::env;
|
||||||
use std::net::Ipv4Addr;
|
use std::net::Ipv4Addr;
|
||||||
use tokio::runtime;
|
use tokio::runtime;
|
||||||
use tonic::codegen::InterceptedService;
|
use yandex_cloud::tonic_exports::{Channel, Endpoint, InterceptedService};
|
||||||
use tonic::transport::channel::Channel;
|
|
||||||
use tonic::transport::Endpoint;
|
|
||||||
use yandex_cloud::yandex::cloud::dns::v1 as dns;
|
use yandex_cloud::yandex::cloud::dns::v1 as dns;
|
||||||
use yandex_cloud::yandex::cloud::dns::v1::dns_zone_service_client::DnsZoneServiceClient;
|
use yandex_cloud::yandex::cloud::dns::v1::dns_zone_service_client::DnsZoneServiceClient;
|
||||||
use yandex_cloud::{AuthInterceptor, TokenProvider};
|
use yandex_cloud::{AuthInterceptor, TokenProvider};
|
||||||
|
@ -115,7 +113,8 @@ async fn compare_update_record<T: TokenProvider>(
|
||||||
}
|
}
|
||||||
|
|
||||||
fn main() -> Result<()> {
|
fn main() -> Result<()> {
|
||||||
let token = format!("Bearer {}", env::var("YANDEX_CLOUD_TOKEN")?);
|
let token =
|
||||||
|
env::var("YANDEX_CLOUD_TOKEN").context("Yandex Cloud authentication token unset")?;
|
||||||
let target_zone_id =
|
let target_zone_id =
|
||||||
env::var("TARGET_ZONE").unwrap_or_else(|_| "dnsd0tif5mokfu0mg8i5".to_string());
|
env::var("TARGET_ZONE").unwrap_or_else(|_| "dnsd0tif5mokfu0mg8i5".to_string());
|
||||||
let target_record = env::var("TARGET_RECORD").unwrap_or_else(|_| "khtrsk".to_string());
|
let target_record = env::var("TARGET_RECORD").unwrap_or_else(|_| "khtrsk".to_string());
|
||||||
|
|
Loading…
Reference in a new issue