Documentation
¶
Overview ¶
Code generated by sdkgen from Gophercloud v2.15.0; DO NOT EDIT.
Code generated by sdkgen from Gophercloud v2.15.0; DO NOT EDIT.
Index ¶
- type API
- func (a *API) Create(ctx context.Context, serverID string, opts CreateOpts, options ...CreateOption) (*VolumeAttachment, error)
- func (a *API) Delete(ctx context.Context, serverID string, volumeID string) error
- func (a *API) Get(ctx context.Context, serverID string, volumeID string) (*VolumeAttachment, error)
- func (a *API) InServer(ctx context.Context, parent resource.Ref) (*VolumeAttachmentScope, error)
- func (a *API) List(ctx context.Context, serverID string) iter.Seq2[*VolumeAttachment, error]
- func (a *API) RawClient() *gophercloud.ServiceClient
- type CreateOption
- type CreateOpts
- type CreateResult
- type DeleteResult
- type GetResult
- type VolumeAttachment
- type VolumeAttachmentPage
- type VolumeAttachmentResult
- type VolumeAttachmentScope
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
API owns the client and provides concrete inputs, optional extensions and normalized results.
func New ¶
func New(client *gophercloud.ServiceClient) *API
func (*API) Create ¶
func (a *API) Create(ctx context.Context, serverID string, opts CreateOpts, options ...CreateOption) (*VolumeAttachment, error)
Create invokes the upstream API with library-owned builders and result handling.
func (*API) Delete ¶
Delete invokes the upstream API with library-owned builders and result handling.
func (*API) RawClient ¶
func (a *API) RawClient() *gophercloud.ServiceClient
type CreateOption ¶
type CreateOption = request.Option[CreateOpts]
func WithCreateField ¶
func WithCreateField(key string, value any) CreateOption
func WithCreateOptions ¶
func WithCreateOptions(value CreateOpts) CreateOption
type CreateOpts ¶
type CreateOpts = upstream.CreateOpts
type CreateResult ¶
type CreateResult = upstream.CreateResult
type DeleteResult ¶
type DeleteResult = upstream.DeleteResult
type VolumeAttachment ¶
type VolumeAttachment = upstream.VolumeAttachment
type VolumeAttachmentPage ¶
type VolumeAttachmentPage = upstream.VolumeAttachmentPage
type VolumeAttachmentResult ¶
type VolumeAttachmentResult = upstream.VolumeAttachmentResult
type VolumeAttachmentScope ¶
type VolumeAttachmentScope struct {
*resource.Collection[VolumeAttachment]
// contains filtered or unexported fields
}
VolumeAttachmentScope fixes the parent of its resources, sharing the SDK's lookup and wait policies.
func (*VolumeAttachmentScope) Create ¶
func (s *VolumeAttachmentScope) Create(ctx context.Context, opts CreateOpts, options ...CreateOption) (*VolumeAttachment, error)
Create applies Create within the fixed parent.
Click to show internal directories.
Click to hide internal directories.