Struct OpenVDS::GoogleOpenOptions
-
struct GoogleOpenOptions : public OpenVDS::OpenOptions
Options for opening a VDS in Google Cloud Storage.
Public Types
-
enum class CredentialsType : CredentialsIntType
Values:
-
enumerator Default
-
enumerator AccessToken
-
enumerator Path
-
enumerator Json
-
enumerator SignedUrl
-
enumerator SignedUrlPath
-
enumerator SignedUrlJson
-
enumerator Default
-
using CredentialsIntType = unsigned int
Public Functions
-
inline GoogleOpenOptions()
-
inline GoogleOpenOptions(std::string const &bucket, std::string const &pathPrefix)
GoogleOpenOptions constructor.
- Parameters:
bucket – The bucket of the VDS
pathPrefix – The prefix of the VDS
credentials – Google Cloud Storage access credentials
-
inline GoogleOpenOptions(std::string const &bucket, std::string const &pathPrefix, GoogleCredentialsToken const &credentials)
-
inline GoogleOpenOptions(std::string const &bucket, std::string const &pathPrefix, GoogleCredentialsPath const &credentials)
-
inline GoogleOpenOptions(std::string const &bucket, std::string const &pathPrefix, GoogleCredentialsJson const &credentials)
-
inline GoogleOpenOptions(std::string const &bucket, std::string const &pathPrefix, GoogleCredentialsSignedUrl const &credentials)
-
inline GoogleOpenOptions(std::string const &bucket, std::string const &pathPrefix, GoogleCredentialsSignedUrlPath const &credentials)
-
inline GoogleOpenOptions(std::string const &bucket, std::string const &pathPrefix, GoogleCredentialsSignedUrlJson const &credentials)
-
inline bool SetSignedUrl()
Public Members
-
CredentialsType credentialsType = CredentialsType::Default
-
std::string bucket
-
std::string pathPrefix
-
std::string credentials
-
std::string storageClass
-
std::string region
-
enum class CredentialsType : CredentialsIntType