Skip to content

Commit cfa5c0f

Browse files
authored
blob/gcsblob: mark Options.SignBytes and .PrivateKey as deprecated (#2943)
1 parent d273981 commit cfa5c0f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

blob/gcsblob/gcsblob.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,11 +265,13 @@ type Options struct {
265265
// PrivateKey is the Google service account private key.
266266
// Exactly one of PrivateKey or SignBytes must be non-nil to use SignedURL.
267267
// See https://godoc.org/cloud.google.com/go/storage#SignedURLOptions.
268+
// Deprecated: Use MakeSignBytes instead.
268269
PrivateKey []byte
269270

270271
// SignBytes is a function for implementing custom signing.
271272
// Exactly one of PrivateKey, SignBytes, or MakeSignBytes must be non-nil to use SignedURL.
272273
// See https://godoc.org/cloud.google.com/go/storage#SignedURLOptions.
274+
// Deprecated: Use MakeSignBytes instead.
273275
SignBytes func([]byte) ([]byte, error)
274276

275277
// MakeSignBytes is a factory for functions that are being used in place of an empty SignBytes.

0 commit comments

Comments
 (0)