Skip to content

Commit

Permalink
doc(storage): minor fix to PostPolicyV4 docs (#8172)
Browse files Browse the repository at this point in the history
These referred to signed URLs instead of post policies in a couple places; someone was confused by this recently.
  • Loading branch information
tritone committed Jun 29, 2023
1 parent a3ec3cf commit 06553b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions storage/post_policy_v4.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import (
// Please see https://cloud.google.com/storage/docs/xml-api/post-object
// for reference about the fields.
type PostPolicyV4Options struct {
// GoogleAccessID represents the authorizer of the signed URL generation.
// GoogleAccessID represents the authorizer of the signed post policy generation.
// It is typically the Google service account client email address from
// the Google Developers Console in the form of "xxx@developer.gserviceaccount.com".
// Required.
Expand Down Expand Up @@ -85,7 +85,7 @@ type PostPolicyV4Options struct {
// Exactly one of PrivateKey or SignRawBytes must be non-nil.
SignRawBytes func(bytes []byte) (signature []byte, err error)

// Expires is the expiration time on the signed URL.
// Expires is the expiration time on the signed post policy.
// It must be a time in the future.
// Required.
Expires time.Time
Expand Down

0 comments on commit 06553b3

Please sign in to comment.