@@ -26,8 +26,11 @@ pub enum CloudConfigError {
2626 Ssl ( #[ from] openssl:: error:: ErrorStack ) ,
2727}
2828
29+ /// Configuration for creating a session to a serverless cluster.
30+ /// This can be automatically created if you provide the bundle path
31+ /// to the [`CloudSessionBuilder`] constructor.
2932#[ derive( Debug ) ]
30- pub ( crate ) struct CloudConfig {
33+ pub struct CloudConfig {
3134 datacenters : HashMap < String , Datacenter > ,
3235 auth_infos : HashMap < String , AuthInfo > ,
3336
@@ -67,6 +70,8 @@ impl CloudConfig {
6770 }
6871}
6972
73+ /// Contains all authentication info for creating TLS connections using SNI proxy
74+ /// to connect to cloud nodes.
7075#[ derive( Debug ) ]
7176pub ( crate ) struct AuthInfo {
7277 key : PKey < Private > ,
@@ -97,6 +102,7 @@ impl AuthInfo {
97102 }
98103}
99104
105+ /// Contains cloud datacenter configuration for creating TLS connections to its nodes.
100106#[ derive( Debug ) ]
101107pub ( crate ) struct Datacenter {
102108 certificate_authority : X509 ,
@@ -137,6 +143,7 @@ impl Datacenter {
137143 }
138144}
139145
146+ /// Contains the names of the primary datacenter and authentication info.
140147#[ derive( Debug ) ]
141148pub ( crate ) struct Context {
142149 datacenter_name : String ,
0 commit comments