Documentation ¶
Index ¶
- func List(client *golangsdk.ServiceClient, opts ListOptsBuilder) pagination.Pager
- type Auth
- type CreateOpts
- type CreateOptsBuilder
- type CreatePermissionsOpts
- type CreatePermissionsOptsBuilder
- type CreatePermissionsResult
- type CreateResult
- type DeletePermissionsResult
- type DeleteResult
- type GetPermissionsResult
- type GetResult
- type ListOpts
- type ListOptsBuilder
- type ListResult
- type Organization
- type OrganizationPage
- type OrganizationPermissions
- type UpdatePermissionsOpts
- type UpdatePermissionsOptsBuilder
- type UpdatePermissionsResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func List ¶
func List(client *golangsdk.ServiceClient, opts ListOptsBuilder) pagination.Pager
Types ¶
type Auth ¶
type Auth struct { // User ID, which needs to be obtained from the IAM service. UserID string `json:"user_id"` // Username, which needs to be obtained from the IAM service. Username string `json:"user_name"` // User permission that is configured. The value can be 1, 3, or 7. 7: manage 3: write 1: read Auth int `json:"auth"` }
type CreateOpts ¶
type CreateOpts struct {
Namespace string `json:"namespace"`
}
func (CreateOpts) ToNamespaceCreateMap ¶
func (opts CreateOpts) ToNamespaceCreateMap() (map[string]interface{}, error)
type CreateOptsBuilder ¶
type CreatePermissionsOpts ¶
type CreatePermissionsOpts Auth
func (CreatePermissionsOpts) ToPermissionCreateMap ¶
func (opts CreatePermissionsOpts) ToPermissionCreateMap() (map[string]interface{}, error)
type CreatePermissionsResult ¶
func CreatePermissions ¶
func CreatePermissions(client *golangsdk.ServiceClient, organization string, opts CreatePermissionsOptsBuilder) (r CreatePermissionsResult)
type CreateResult ¶
func Create ¶
func Create(client *golangsdk.ServiceClient, opts CreateOptsBuilder) (r CreateResult)
type DeletePermissionsResult ¶
func DeletePermissions ¶
func DeletePermissions(client *golangsdk.ServiceClient, organization string, userID string) (r DeletePermissionsResult)
type DeleteResult ¶
func Delete ¶
func Delete(client *golangsdk.ServiceClient, id string) (r DeleteResult)
type GetPermissionsResult ¶
func GetPermissions ¶
func GetPermissions(client *golangsdk.ServiceClient, organization string) (r GetPermissionsResult)
func (GetPermissionsResult) Extract ¶
func (r GetPermissionsResult) Extract() (*OrganizationPermissions, error)
type ListOpts ¶
type ListOpts struct {
Namespace string `q:"namespace"`
}
func (ListOpts) ToNamespaceListQuery ¶
type ListOptsBuilder ¶
type ListResult ¶
type Organization ¶
type Organization struct { ID int `json:"id"` Name string `json:"name"` CreatorName string `json:"creator_name"` // Auth - user permission. The value can be `7`: manage, `3`: write, `1`: read Auth int `json:"auth"` }
func ExtractOrganizations ¶
func ExtractOrganizations(p pagination.Page) ([]Organization, error)
type OrganizationPage ¶
type OrganizationPage struct {
pagination.SinglePageBase
}
type OrganizationPermissions ¶
type UpdatePermissionsOpts ¶
type UpdatePermissionsOpts Auth
func (UpdatePermissionsOpts) ToPermissionUpdateMap ¶
func (opts UpdatePermissionsOpts) ToPermissionUpdateMap() (map[string]interface{}, error)
type UpdatePermissionsResult ¶
func UpdatePermissions ¶
func UpdatePermissions(client *golangsdk.ServiceClient, organization string, opts UpdatePermissionsOptsBuilder) (r UpdatePermissionsResult)
Click to show internal directories.
Click to hide internal directories.