MCPcopy Create free account
hub / github.com/alibaba/PhotonLibOS / CreateOssClient

Method CreateOssClient

ecosystem/test/test_oss.cpp:133–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131class CustomCachedAuthOssTest : public CachedAuthOssTest {
132 protected:
133 void CreateOssClient(const ClientOptions& opts) override {
134 auto auth = new_basic_oss_authenticator({FLAGS_ak, FLAGS_sk, ""});
135 auth = new_cached_oss_authenticator(auth, 3 /*ttl*/);
136 client = new_oss_client(opts, new RandInvalidateCacheAuthenticator(auth));
137 ASSERT_NE(client, nullptr) << "Failed to create OSS client";
138 }
139};
140
141void BasicAuthOssTest::list_objects() {

Callers

nothing calls this directly

Calls 3

new_oss_clientFunction · 0.85

Tested by

no test coverage detected