Skip to main content

GCSStorageConfig

GCSStorageConfig represents the configuration that will be used if storage is GCS within the client usage.
It composes of bucket, api endpoint and credentials.

Each instance is produced automatically when creating a new rac-delta client with gcs storage type.


Structure

pub struct GCSStorageConfig {
pub base: BaseStorageConfig,
pub bucket: String,
pub api_endpoint: Option<String>,
pub credentials: GCSCredentials,
}

pub struct GCSCredentials {
pub project_id: String,
pub client_email: String,
pub private_key: String,
}

Properties

PropertyTypeDescription
baseBaseStorageConfigExtended base configuration.
bucketStringBucket name of the storage.
api_endpointOption<String>Optional endpoint to GCS api.
credentialsGCSCredentialsCredentials object composed of project ID, client email and private key.