Documentation
¶
Index ¶
- func Create(client *golangsdk.ServiceClient, opts MemberOpts) (*members.Member, error)
- func Delete(client *golangsdk.ServiceClient, opts MemberOpts) (err error)
- func Get(client *golangsdk.ServiceClient, opts MemberOpts) (*members.Member, error)
- func Update(client *golangsdk.ServiceClient, opts UpdateOpts) (*members.Member, error)
- type ListResponse
- type MemberOpts
- type UpdateOpts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Create ¶
func Create(client *golangsdk.ServiceClient, opts MemberOpts) (*members.Member, error)
func Delete ¶
func Delete(client *golangsdk.ServiceClient, opts MemberOpts) (err error)
Delete membership for given image. Callee should be image owner.
Types ¶
type ListResponse ¶
type ListResponse struct { Members []members.Member `json:"members"` // Specifies the sharing schema. Schema string `json:"schema"` }
func List ¶
func List(client *golangsdk.ServiceClient, imageId string) (*ListResponse, error)
List members returns list of members for specified image id.
type MemberOpts ¶
type UpdateOpts ¶
type UpdateOpts struct { ImageId string `json:"-" required:"true"` MemberId string `json:"-" required:"true"` // Specifies whether a shared image will be accepted or declined. // // Available values include: // // accepted: indicates that a shared image is accepted. After an image is accepted, the image is displayed in the image list. You can use the image to create ECSs. // // rejected: indicates that a shared image is declined. After an image is rejected, the image is not displayed in the image list. However, you can still use the image to create ECSs. Status string `json:"status" required:"true"` // Specifies the ID of a vault. // // This parameter is mandatory if you want to accept a shared full-ECS image created from a CBR backup. // // You can obtain the vault ID from the CBR console or section "Querying the Vault List" in Cloud Backup and Recovery API Reference. VaultID string `json:"vault_id,omitempty"` }
UpdateOpts represents options to an Update request.
Click to show internal directories.
Click to hide internal directories.