mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-16 17:21:04 +01:00
7a53e2d093
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.54.0 to 0.55.0. - [Release notes](https://github.com/googleapis/google-api-go-client/releases) - [Changelog](https://github.com/googleapis/google-api-go-client/blob/master/CHANGES.md) - [Commits](https://github.com/googleapis/google-api-go-client/compare/v0.54.0...v0.55.0) --- updated-dependencies: - dependency-name: google.golang.org/api dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
24 lines
511 B
Go
24 lines
511 B
Go
// Copyright 2018 Google LLC.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
//go:build !go1.9
|
|
// +build !go1.9
|
|
|
|
package option
|
|
|
|
import (
|
|
"golang.org/x/oauth2/google"
|
|
"google.golang.org/api/internal"
|
|
)
|
|
|
|
type withCreds google.DefaultCredentials
|
|
|
|
func (w *withCreds) Apply(o *internal.DialSettings) {
|
|
o.Credentials = (*google.DefaultCredentials)(w)
|
|
}
|
|
|
|
func WithCredentials(creds *google.DefaultCredentials) ClientOption {
|
|
return (*withCreds)(creds)
|
|
}
|