s3

package module
Version: v0.0.0-...-97cf746 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 14, 2015 License: MIT Imports: 6 Imported by: 1

README

go-s3presigned-post

Small Go library to create a pre-signed POST.

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
}

Represents AWS credentials and config.

type PolicyOptions

type PolicyOptions struct {
	ExpiryMinutes int
	MaxFileSize   int
}

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.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL