Exemple #1
0
// 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")}
}
Exemple #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"),
	}
}