-
Notifications
You must be signed in to change notification settings - Fork 842
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document default value of InstanceCredentialProvider #5188
Conversation
object_store/src/gcp/builder.rs
Outdated
@@ -393,7 +393,7 @@ impl GoogleCloudStorageBuilder { | |||
self | |||
} | |||
|
|||
/// Set the credential provider overriding any other options | |||
/// Set the credential provider overriding any other options. Default: [`InstanceCredentialProvider`] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a crate-private struct, hence why the docs aren't building cleanly.
Perhaps we could instead add a comment on the builder itself that if no credentials are configured, it will default to using instance metadata credentials?
object_store/src/gcp/builder.rs
Outdated
@@ -393,7 +393,6 @@ impl GoogleCloudStorageBuilder { | |||
self | |||
} | |||
|
|||
/// Set the credential provider overriding any other options |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why this removal?
object_store/src/gcp/builder.rs
Outdated
@@ -107,7 +107,7 @@ pub struct GoogleCloudStorageBuilder { | |||
retry_config: RetryConfig, | |||
/// Client options | |||
client_options: ClientOptions, | |||
/// Credentials | |||
/// Credentials. Uses instance metadata credentials if not provided |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This won't be rendered on docs.rs as this is a private field, perhaps we could document on the struct, i.e. line 84
I took the liberty of getting this over the line |
Which issue does this PR close?
Closes #5187
Rationale for this change
Couldn't find this info out and wasted an hour or two
What changes are included in this PR?
docs changes
Are there any user-facing changes?
just docs.