MCPcopy Index your code
hub / github.com/AI45Lab/Code / new

Method new

core/src/workspace/s3.rs:132–154  ·  view source on GitHub ↗
(
        bucket: impl Into<String>,
        prefix: impl Into<String>,
        access_key_id: impl Into<String>,
        secret_access_key: impl Into<String>,
    )

Source from the content-addressed store, hash-verified

130
131impl S3BackendConfig {
132 pub fn new(
133 bucket: impl Into<String>,
134 prefix: impl Into<String>,
135 access_key_id: impl Into<String>,
136 secret_access_key: impl Into<String>,
137 ) -> Self {
138 Self {
139 endpoint: None,
140 region: None,
141 access_key_id: access_key_id.into(),
142 secret_access_key: secret_access_key.into(),
143 session_token: None,
144 bucket: bucket.into(),
145 prefix: prefix.into(),
146 force_path_style: false,
147 request_timeout: None,
148 max_read_bytes: None,
149 search_enabled: false,
150 max_objects_scanned: None,
151 max_grep_bytes_per_object: None,
152 search_concurrency: None,
153 }
154 }
155
156 pub fn endpoint(mut self, endpoint: impl Into<String>) -> Self {
157 self.endpoint = Some(endpoint.into());

Callers

nothing calls this directly

Calls 8

force_path_styleMethod · 0.80
regionMethod · 0.80
with_search_enabledMethod · 0.80
with_max_read_bytesMethod · 0.80
buildMethod · 0.45

Tested by

no test coverage detected