s3

package
v0.0.0-...-2eae7ba Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2017 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteWebSite

func DeleteWebSite(bucket string) error

DeleteWebSite removes the website configuration from the bucket.

func GetBucketACL

func GetBucketACL(bucket string) (string, error)

GetBucketACL gets the access control policy for the bucket.

func GetBucketPolicy

func GetBucketPolicy(bucket string) (string, error)

GetBucketPolicy gets the policy of a specified bucket.

func GetLocation

func GetLocation(bucket string) (string, error)

GetLocation returns the region the bucket resides in.

func GetWebSite

func GetWebSite(bucket string) error

GetWebSite returns the website configuration for a bucket.

func ListBuckets

func ListBuckets(showCreationDate bool) error

ListBuckets returns a list of all buckets owned by the authenticated sender of the request

func SetBucketACL

func SetBucketACL(bucket string, acl string) error

SetBucketACL gets the access control policy for the bucket.

func SetBucketPolicyForWebSite

func SetBucketPolicyForWebSite(bucket string) error

SetBucketPolicyForWebSite replaces a policy on a bucket for Web Site.

func SetRedirectAllRequestsTo

func SetRedirectAllRequestsTo(bucket string, paramurl *url.URL) error

SetRedirectAllRequestsTo sets redirect all website requests sent to the bucket's website endpoint the bucket.

func SetWebSite

func SetWebSite(bucket string, input *SetWebSiteInput) error

SetWebSite set the website configuration for a bucket.

Types

type SetWebSiteInput

type SetWebSiteInput struct {
	IndexDocument string
	ErrorDocument string
}

SetWebSiteInput represents parameters of set simple Web Site.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL