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

Method CreateOssClient

ecosystem/test/test_oss.cpp:103–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101class CachedAuthOssTest : public BasicAuthOssTest {
102 protected:
103 void CreateOssClient(const ClientOptions& opts) override {
104 auto auth = new_basic_oss_authenticator({FLAGS_ak, FLAGS_sk, ""});
105 auth = new_cached_oss_authenticator(auth, 3 /*ttl*/);
106 client = new_oss_client(opts, auth);
107 ASSERT_NE(client, nullptr) << "Failed to create OSS client";
108 }
109
110 void repeatedly_get();
111};

Callers

nothing calls this directly

Calls 3

new_oss_clientFunction · 0.85

Tested by

no test coverage detected