add comment for ValidateCredsCallback

This commit is contained in:
Elim Tsiagbey committed 2024-12-17 11:32:23 -05:00
1 parent a4a55ce70b
commit fe0e5ad5f7
1 file changed
+2
+2
View File
@@ -53,6 +53,8 @@ type ServiceAccountPrivateKey struct {
ClientX509CertURL string `json:"client_x509_cert_url"`
}
// ValidateCredsCallback is called to validate the credentials after rotating the service account key.
// The callback should return an error if the credentials are invalid.
type ValidateCredsCallback func(*Config, ...option.ClientOption) error
// RotateServiceAccountKey takes the private key from this credentials config