Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPolicy ¶
func NewPolicy(key string, c *Credentials, o *PolicyOptions) *policy
Creates a new policy.
Types ¶
type Credentials ¶
type Credentials struct {
Region string
Bucket string
AccessKeyID string
SecretAccessKey string
SecurityToken string
}
Represents AWS credentials and config.
type PolicyOptions ¶
Represents policy options.
type PresignedPOST ¶
type PresignedPOST struct {
Key string `json:"key"`
Policy string `json:"policy"`
Signature string `json:"signature"`
Action string `json:"action"`
Credential string `json:"credential"`
Date string `json:"date"`
}
Represents presigned POST information.
func NewPresignedPOST ¶
func NewPresignedPOST(key string, c *Credentials, o *PolicyOptions) (*PresignedPOST, error)
Creates a new presigned POST.
Click to show internal directories.
Click to hide internal directories.