pub struct OssConfig {
pub scheme: String,
pub endpoint: 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
OSS configuration information to access blobs.
Fields§
§scheme: StringOss http scheme, either ‘http’ or ‘https’
endpoint: StringOss endpoint
bucket_name: StringOss bucket name
object_prefix: StringPrefix object_prefix to OSS 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: StringOss access key
access_key_secret: StringOss 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 OssConfig
impl<'de> Deserialize<'de> for OssConfig
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 OssConfig
impl StructuralPartialEq for OssConfig
Auto Trait Implementations§
impl Freeze for OssConfig
impl RefUnwindSafe for OssConfig
impl Send for OssConfig
impl Sync for OssConfig
impl Unpin for OssConfig
impl UnwindSafe for OssConfig
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