-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add Credentials as options on Google Cloud Storage package (#81)
- Loading branch information
1 parent
11b39f3
commit cd57945
Showing
4 changed files
with
45 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,18 @@ | ||
package gcs | ||
|
||
import "github.com/gojektech/heimdall" | ||
import ( | ||
"github.com/gojektech/heimdall" | ||
"golang.org/x/oauth2/google" | ||
) | ||
|
||
// Options represents the Google Cloud Storage storage options | ||
type Options struct { | ||
// BucketName represents the name of the bucket | ||
BucketName string | ||
// CredentialsJSON holds the json data for credentials of a service account | ||
CredentialsJSON []byte | ||
// Credentials represents google credentials, including Application Default Credentials | ||
Credentials *google.Credentials | ||
// Client can be used to specify a heimdall.Client with hystrix like circuit breaker | ||
Client heimdall.Client | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters