Google Cloud Storage C++ Client  1.24.0
A C++ Client Library for Google Cloud Storage
Typedefs | Functions
google::cloud::storage::examples Namespace Reference

Typedefs

using ClientCommand = std::function< void(google::cloud::storage::Client, std::vector< std::string > const &argv)>
 

Functions

bool UsingEmulator ()
 
std::string MakeRandomBucketName (google::cloud::internal::DefaultPRNG &gen)
 
std::string MakeRandomObjectName (google::cloud::internal::DefaultPRNG &gen, std::string const &prefix)
 
Commands::value_type CreateCommandEntry (std::string const &name, std::vector< std::string > const &arg_names, ClientCommand const &command)
 

Typedef Documentation

◆ ClientCommand

using google::cloud::storage::examples::ClientCommand = typedef std::function<void(google::cloud::storage::Client, std::vector<std::string> const& argv)>

Definition at line 42 of file storage_examples_common.h.

Function Documentation

◆ CreateCommandEntry()

Commands::value_type google::cloud::storage::examples::CreateCommandEntry ( std::string const &  name,
std::vector< std::string > const &  arg_names,
ClientCommand const &  command 
)

Definition at line 44 of file storage_examples_common.cc.

◆ MakeRandomBucketName()

std::string google::cloud::storage::examples::MakeRandomBucketName ( google::cloud::internal::DefaultPRNG &  gen)

Definition at line 34 of file storage_examples_common.cc.

◆ MakeRandomObjectName()

std::string google::cloud::storage::examples::MakeRandomObjectName ( google::cloud::internal::DefaultPRNG &  gen,
std::string const &  prefix 
)

Definition at line 39 of file storage_examples_common.cc.

◆ UsingEmulator()

bool google::cloud::storage::examples::UsingEmulator ( )

Definition at line 26 of file storage_examples_common.cc.