pub struct S3Volume {
pub endpoint: String,
pub region: String,
pub bucket: String,
pub prefix: String,
pub mountpoint: String,
pub read_only: bool,
pub access_key_id: Option<String>,
pub secret_access_key: Option<String>,
pub session_token: Option<String>,
}Expand description
One S3-compatible bucket to mount inside the workload container.
Structured rather than a shell command: the agent mounts it natively, so nothing has to be installed in the image and no command is interpolated.
Fields§
§endpoint: StringService endpoint, e.g. https://s3.us-east-1.amazonaws.com or a
self-hosted http://minio:9000.
region: StringRegion used for request signing.
bucket: StringBucket to mount.
prefix: StringOptional key prefix, so a mount can expose one sub-tree of a bucket.
mountpoint: StringAbsolute path inside the container where the bucket appears.
read_only: boolMount read-only; the kernel then rejects writes before they reach us.
access_key_id: Option<String>Access key. Absent (with the secret) means anonymous access.
secret_access_key: Option<String>Secret key paired with access_key_id.
session_token: Option<String>Session token, when temporary credentials are in use.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for S3Volume
impl<'de> Deserialize<'de> for S3Volume
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 StructuralPartialEq for S3Volume
Auto Trait Implementations§
impl Freeze for S3Volume
impl RefUnwindSafe for S3Volume
impl Send for S3Volume
impl Sync for S3Volume
impl Unpin for S3Volume
impl UnsafeUnpin for S3Volume
impl UnwindSafe for S3Volume
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