Versions in this module Expand all Collapse all v2 v2.2.1 Sep 25, 2024 Changes in this version + func ExtractAttachmentsInto(r pagination.Page, a any) error + func List(client *gophercloud.ServiceClient, opts ListOptsBuilder) pagination.Pager + func WaitForStatus(ctx context.Context, c *gophercloud.ServiceClient, id, status string) error + type Attachment struct + AttachMode string + AttachedAt time.Time + ConnectionInfo map[string]any + DetachedAt time.Time + ID string + Instance string + Status string + VolumeID string + func ExtractAttachments(r pagination.Page) ([]Attachment, error) + func (r *Attachment) UnmarshalJSON(b []byte) error + type AttachmentPage struct + func (r AttachmentPage) IsEmpty() (bool, error) + type CompleteResult struct + func Complete(ctx context.Context, client *gophercloud.ServiceClient, id string) (r CompleteResult) + type CreateOpts struct + Connector map[string]any + InstanceUUID string + Mode string + VolumeUUID string + func (opts CreateOpts) ToAttachmentCreateMap() (map[string]any, error) + type CreateOptsBuilder interface + ToAttachmentCreateMap func() (map[string]any, error) + type CreateResult struct + func Create(ctx context.Context, client *gophercloud.ServiceClient, opts CreateOptsBuilder) (r CreateResult) + func (r CreateResult) Extract() (*Attachment, error) + func (r CreateResult) ExtractInto(a any) error + type DeleteResult struct + func Delete(ctx context.Context, client *gophercloud.ServiceClient, id string) (r DeleteResult) + type GetResult struct + func Get(ctx context.Context, client *gophercloud.ServiceClient, id string) (r GetResult) + func (r GetResult) Extract() (*Attachment, error) + func (r GetResult) ExtractInto(a any) error + type ListOpts struct + AllTenants bool + InstanceID string + Limit int + Marker string + Offset int + ProjectID string + Sort string + Status string + VolumeID string + func (opts ListOpts) ToAttachmentListQuery() (string, error) + type ListOptsBuilder interface + ToAttachmentListQuery func() (string, error) + type UpdateOpts struct + Connector map[string]any + func (opts UpdateOpts) ToAttachmentUpdateMap() (map[string]any, error) + type UpdateOptsBuilder interface + ToAttachmentUpdateMap func() (map[string]any, error) + type UpdateResult struct + func Update(ctx context.Context, client *gophercloud.ServiceClient, id string, ...) (r UpdateResult) + func (r UpdateResult) Extract() (*Attachment, error) + func (r UpdateResult) ExtractInto(a any) error