예제 #1
0
파일: glacier.go 프로젝트: kljensen/aws
// Creates a connection object using the default http client and a signature
// for glacier from the secret key, access key, and region.
func NewConnection(secret, access string, r *aws.Region) *Connection {
	// TODO a go routine to create a new signature when the date changes?
	return &Connection{defaultClient, aws.NewSignature(secret, access,
		r, "glacier")}
}
예제 #2
0
// NewConnection returns a Connection with an initialized signature
// based on the provided access credentials and region.
func NewConnection(secret, access string, r *aws.Region) *Connection {
	return &Connection{
		Signature: aws.NewSignature(secret, access, r, "glacier"),
	}
}