MCPcopy
hub / github.com/minio/minio-go / SetExpires

Method SetExpires

post-policy.go:78–84  ·  view source on GitHub ↗

SetExpires - Sets expiration time for the new policy.

(t time.Time)

Source from the content-addressed store, hash-verified

76
77// SetExpires - Sets expiration time for the new policy.
78func (p *PostPolicy) SetExpires(t time.Time) error {
79 if t.IsZero() {
80 return errInvalidArgument("No expiry time set.")
81 }
82 p.expiration = t
83 return nil
84}
85
86// SetKey - Sets an object name for the policy based upload.
87func (p *PostPolicy) SetKey(key string) error {

Callers 6

PutObjectFanOutMethod · 0.95
TestPostPolicySetExpiresFunction · 0.95
testPresignedPostPolicyFunction · 0.95
mainFunction · 0.95

Calls 1

errInvalidArgumentFunction · 0.85

Tested by 1

TestPostPolicySetExpiresFunction · 0.76