mirror of
https://github.com/restic/restic.git
synced 2025-10-27 12:08:33 +00:00
Update dependenciess
Exclude minio-go for now (pin to 3.x.y).
This commit is contained in:
18
vendor/cloud.google.com/go/spanner/admin/instance/apiv1/doc.go
generated
vendored
18
vendor/cloud.google.com/go/spanner/admin/instance/apiv1/doc.go
generated
vendored
@@ -14,9 +14,11 @@
|
||||
|
||||
// AUTO-GENERATED CODE. DO NOT EDIT.
|
||||
|
||||
// Package instance is an experimental, auto-generated package for the
|
||||
// Package instance is an auto-generated package for the
|
||||
// Cloud Spanner Instance Admin API.
|
||||
//
|
||||
// NOTE: This package is in alpha. It is not stable, and is likely to be subject to changes.
|
||||
//
|
||||
package instance // import "cloud.google.com/go/spanner/admin/instance/apiv1"
|
||||
|
||||
import (
|
||||
@@ -24,11 +26,15 @@ import (
|
||||
"google.golang.org/grpc/metadata"
|
||||
)
|
||||
|
||||
func insertXGoog(ctx context.Context, val []string) context.Context {
|
||||
md, _ := metadata.FromOutgoingContext(ctx)
|
||||
md = md.Copy()
|
||||
md["x-goog-api-client"] = val
|
||||
return metadata.NewOutgoingContext(ctx, md)
|
||||
func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context {
|
||||
out, _ := metadata.FromOutgoingContext(ctx)
|
||||
out = out.Copy()
|
||||
for _, md := range mds {
|
||||
for k, v := range md {
|
||||
out[k] = append(out[k], v...)
|
||||
}
|
||||
}
|
||||
return metadata.NewOutgoingContext(ctx, out)
|
||||
}
|
||||
|
||||
// DefaultAuthScopes reports the default set of authentication scopes to use with this package.
|
||||
|
||||
Reference in New Issue
Block a user