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