pub struct S3Config {Show 13 fields
pub scheme: String,
pub endpoint: String,
pub region: String,
pub bucket_name: String,
pub object_prefix: String,
pub access_key_id: String,
pub access_key_secret: String,
pub skip_verify: bool,
pub timeout: u32,
pub connect_timeout: u32,
pub retry_limit: u8,
pub proxy: ProxyConfig,
pub mirrors: Vec<MirrorConfig>,
}Expand description
S3 configuration information to access blobs.
Fields§
§scheme: StringS3 http scheme, either ‘http’ or ‘https’
endpoint: StringS3 endpoint
region: StringS3 region
bucket_name: StringS3 bucket name
object_prefix: StringPrefix object_prefix to S3 object key, for example the simulation of subdirectory:
- object_key: sha256:xxx
- object_prefix: nydus/
- object_key with object_prefix: nydus/sha256:xxx
access_key_id: StringS3 access key
access_key_secret: StringS3 secret
skip_verify: boolSkip SSL certificate validation for HTTPS scheme.
timeout: u32Drop the read request once http request timeout, in seconds.
connect_timeout: u32Drop the read request once http connection timeout, in seconds.
retry_limit: u8Retry count when read request failed.
proxy: ProxyConfigEnable HTTP proxy for the read request.
mirrors: Vec<MirrorConfig>Enable mirrors for the read request.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for S3Config
impl<'de> Deserialize<'de> for S3Config
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for S3Config
impl StructuralPartialEq for S3Config
Auto Trait Implementations§
impl Freeze for S3Config
impl RefUnwindSafe for S3Config
impl Send for S3Config
impl Sync for S3Config
impl Unpin for S3Config
impl UnwindSafe for S3Config
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more