NewPostPolicy - Instantiate new post policy.
()
| 68 | |
| 69 | // NewPostPolicy - Instantiate new post policy. |
| 70 | func NewPostPolicy() *PostPolicy { |
| 71 | p := &PostPolicy{} |
| 72 | p.conditions = make([]policyCondition, 0) |
| 73 | p.formData = make(map[string]string) |
| 74 | return p |
| 75 | } |
| 76 | |
| 77 | // SetExpires - Sets expiration time for the new policy. |
| 78 | func (p *PostPolicy) SetExpires(t time.Time) error { |
no outgoing calls