47
// You can find more info about "Google Setting Up Authentication for Server to Server Production Applications" under the following link
48
// https://cloud.google.com/docs/authentication/production
49
>
func NewClient(ctx context.Context, config *config.GstorageArchiver) (Client, error) {
client.go
50
>
if credentialsPath := os.Getenv("GOOGLE_APPLICATION_CREDENTIALS"); credentialsPath != "" {
51
>
clientDelegate, err := newClientDelegateWithCredentials(ctx, credentialsPath)
52
>
return &storageWrapper{client: clientDelegate}, err
53
>
}
54
55
if config.CredentialsPath != "" {