1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
/*
Package accounts contains functionality for working with Object Storage
account resources. An account is the top-level resource the object storage
hierarchy: containers belong to accounts, objects belong to containers.
Another way of thinking of an account is like a namespace for all your
resources. It is synonymous with a project or tenant in other OpenStack
services.
Example to Get an Account
account, err := accounts.Get(objectStorageClient, nil).Extract()
fmt.Printf("%+v\n", account)
Example to Update an Account
metadata := map[string]string{
"some": "metadata",
}
updateOpts := accounts.UpdateOpts{
Metadata: metadata,
}
updateResult, err := accounts.Update(objectStorageClient, updateOpts).Extract()
fmt.Printf("%+v\n", updateResult)
*/
package accounts
|