volumes

package
v0.0.0-...-e6ef1f7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 9, 2026 License: Apache-2.0 Imports: 18 Imported by: 0

README

Volume metadata in Block Storage v3

API.MetadataIn(ctx, resource.ID(id)) binds a fixed Volume metadata scope without HTTP. An explicit resource.Name resolves once through the existing collection lookup; this is a Go convenience beyond Python's ID string input.

package example

import (
    "context"

    "github.com/gophercloud/gophercloud/v2"
    "github.com/JSYoo5B/go-openstacksdk/blockstorage/v3/volumes"
    "github.com/JSYoo5B/go-openstacksdk/resource"
)

func mergeVolumeMetadata(ctx context.Context, client *gophercloud.ServiceClient, id string) (map[string]string, error) {
    scope, err := volumes.New(client).MetadataIn(ctx, resource.ID(id))
    if err != nil {
        return nil, err
    }
    result, err := scope.Merge(ctx, map[string]string{"owner": "team-a"})
    if err != nil {
        return nil, err
    }
    return result.Metadata, nil // full actual server response, including retained keys
}

Get reads metadata, Merge sends POST, and Replace sends PUT. Nil and empty maps explicitly encode metadata:{}. DeleteKeys(nil) clears with one PUT; DeleteKeys([]string{}) validates without HTTP. Nonempty keys preserve order and duplicates, return actual earlier acknowledgements on the first failure, and do not ignore missing keys. The scope does not prefetch or cache the Volume.

Results retain the actual string map, raw response Body, copied Header and StatusCode. The shared metadata guide includes an explicit ETag example: v3 Volume GET emits ETag at 3.15+, and PUT can enforce If-Match; POST and key DELETE do not use that validator. There is no new metadata route gate, automatic version upgrade, implicit ETag fetch or 412 retry. Native parent Volume Create/Update metadata fields and image-metadata actions remain separate APIs.

Python fetch_volume_metadata and deprecated get_volume_metadata correspond to scope.Get; set_volume_metadata corresponds to scope.Merge. Python's Resource cache, seeded return object and injected session differ from this owned response scope. The v2 guide uses the same scoped methods for legacy v2 compatibility.

HTTP contract tests exercise all four Volume/Snapshot bindings. Connection tests cover the shared v3 client and fixed metadata target.

The release-pinned server contract separates these routes from Backup metadata and deployment-specific policies.

서비스별 상태·삭제 대기

WaitForAvailable(ctx, ref, options...)는 available/error와 2초 간격을 SDK가 적용하며 SDK 시간 제한이 없습니다. WaitForState는 caller가 대상 상태를 지정하고, WaitForDelete는 삭제 요청 없이 실제 미존재를 기본 120초 기다립니다. parent context와 호출별 resource.WaitOption이 항상 적용됩니다. 기존 공통 WaitFor/WaitForDeletion의 5분 정책과 네이티브 WaitForStatus는 유지됩니다. 전체 예제와 Python Resource/cache의 차이는 서비스 대기 가이드를 참고하세요.

The service API adds ReserveVolume(ctx, id), UnreserveVolume(ctx, id), BeginVolumeDetaching(ctx, id) and AbortVolumeDetaching(ctx, id). Each sends the pinned source's null action value and returns owned opaque acknowledgement plus separate discovery proof. Existing native Reserve, Unreserve and BeginDetaching retain their original body/status policy. See the package and Connection examples.

The service API adds SetVolumeBootableStatus(ctx, id, bool) and SetVolumeReadonly(ctx, id, options...). Bootable requires an explicit bool; readonly defaults to true and WithVolumeReadonly(false) sends false. WithVolumeReadonlyOptions and PrepareVolumeReadonlyOptions own reusable policies without caller builders. Both actions return VolumeActionResult with separate discovery and opaque acknowledgement proof. Existing native SetBootable and attach modes keep their original contracts. See the Connection and package flag examples.

The direct-ID service methods ExtendVolume(ctx, id, size), RetypeVolume(ctx, id, newType, options...) and CompleteVolumeExtend(ctx, id, options...) preserve typed literal action inputs and return VolumeActionResult. Retype defaults to migration policy never; an explicit empty policy omits it. Extend completion defaults to false and always includes the error bool. WithVolumeRetypeOptions/PrepareVolumeRetypeOptions and WithVolumeExtendCompletionOptions/PrepareVolumeExtendCompletionOptions own reusable policies without caller builders. Existing native ExtendSize and ChangeType keep their contracts. See the Connection and package examples.

API.ResetVolumeStatus·API.MigrateVolume·API.CompleteVolumeMigration은 명시 ID의 opaque action helper입니다. 사용법과 Python 비교를 참고하세요. 기존 native ResetStatus의 status·202/error-only 계약은 유지됩니다.

API.RevertVolumeToSnapshot·API.UnmanageVolume은 SDK가 소유한 action 결과를 반환합니다. 사용법과 Python 비교를 참고하세요. 기존 native Unmanage의 {} body·202/error-only 계약은 유지됩니다.

직접 Cinder attach·detach의 API.AttachCinderVolume·API.DetachCinderVolume은 required literal body 인자와 owned functional options를 받고 VolumeActionResult를 반환합니다. 기존 native API.Attach·API.Detach의 Mode/omitempty/202/error-only 계약과 Nova+Cinder Connection.AttachVolume·DetachVolume workflow는 별도 API로 유지합니다.

API.SetVolumeImageMetadata(ctx, id, options...)와 API.DeleteVolumeImageMetadata(ctx, id, options...)는 이미지 메타데이터 action을 제공합니다. 같은 패키지의 WithVolumeImageMetadata*·WithVolumeImageMetadataDelete*·Prepare로 옵션을 준비하며, 삭제는 기본 전체 삭제와 명시적 빈 목록을 구분하고 키별 실제 응답을 반환합니다. Connection/package/service 사용법과 Python 비교를 참고하세요. 기존 native SetImageMetadata와 일반 MetadataIn 계약은 유지됩니다.

API.UploadVolumeToImage(ctx, id, imageName, options...)는 nullable VolumeImageUploadOpts와 WithVolumeImageUpload*·PrepareVolumeImageUploadOptions를 제공합니다. 결과에는 discovery·action의 실제 응답과 선택한 원본 upload JSON이 있습니다. Connection/package/service 사용법과 Python 비교를 참고하세요. 기존 native UploadImage의 omitempty/202/typed 결과 계약은 유지됩니다.

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

Constants

View Source
const MigrationPolicyNever = upstream.MigrationPolicyNever
View Source
const MigrationPolicyOnDemand = upstream.MigrationPolicyOnDemand
View Source
const ReadOnly = upstream.ReadOnly
View Source
const ReadWrite = upstream.ReadWrite

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	Resources *resource.Collection[Volume]
	// contains filtered or unexported fields
}

API owns typed operations and their shared resource policies.

func New

func New(client *gophercloud.ServiceClient) *API

func (*API) AbortVolumeDetaching

func (a *API) AbortVolumeDetaching(ctx context.Context, id string) (*VolumeActionResult, error)

func (*API) All

func (a *API) All(ctx context.Context, options ...resource.ListOption) ([]*Volume, error)

func (*API) Attach

func (a *API) Attach(ctx context.Context, id string, opts AttachOpts, options ...AttachOption) error

Attach invokes the upstream API with library-owned builders and result handling.

func (*API) AttachCinderVolume

func (a *API) AttachCinderVolume(ctx context.Context, id, mountpoint string, options ...CinderVolumeAttachOption) (*VolumeActionResult, error)

func (*API) BeginDetaching

func (a *API) BeginDetaching(ctx context.Context, id string) error

BeginDetaching invokes the upstream API with library-owned builders and result handling.

func (*API) BeginVolumeDetaching

func (a *API) BeginVolumeDetaching(ctx context.Context, id string) (*VolumeActionResult, error)

func (*API) ChangeType

func (a *API) ChangeType(ctx context.Context, id string, opts ChangeTypeOpts, options ...ChangeTypeOption) error

ChangeType invokes the upstream API with library-owned builders and result handling.

func (*API) CompleteVolumeExtend

func (a *API) CompleteVolumeExtend(ctx context.Context, id string, options ...VolumeExtendCompletionOption) (*VolumeActionResult, error)

func (*API) CompleteVolumeMigration

func (a *API) CompleteVolumeMigration(ctx context.Context, id string, newVolume string, options ...VolumeMigrationCompletionOption) (*VolumeActionResult, error)

func (*API) Create

func (a *API) Create(ctx context.Context, opts CreateOpts, options ...CreateOption) (*Volume, error)

Create invokes the upstream API with library-owned builders and result handling.

func (*API) Delete

func (a *API) Delete(ctx context.Context, id string, options ...DeleteOption) error

Delete invokes the upstream API with library-owned builders and result handling.

func (*API) DeleteVolumeImageMetadata

func (a *API) DeleteVolumeImageMetadata(ctx context.Context, id string, options ...VolumeImageMetadataDeleteOption) (*VolumeImageMetadataDeleteResult, error)

func (*API) Detach

func (a *API) Detach(ctx context.Context, id string, opts DetachOpts, options ...DetachOption) error

Detach invokes the upstream API with library-owned builders and result handling.

func (*API) DetachCinderVolume

func (a *API) DetachCinderVolume(ctx context.Context, id, attachmentID string, options ...CinderVolumeDetachOption) (*VolumeActionResult, error)

func (*API) ExtendSize

func (a *API) ExtendSize(ctx context.Context, id string, opts ExtendSizeOpts, options ...ExtendSizeOption) error

ExtendSize invokes the upstream API with library-owned builders and result handling.

func (*API) ExtendVolume

func (a *API) ExtendVolume(ctx context.Context, id string, newSize int) (*VolumeActionResult, error)

func (*API) Find

func (a *API) Find(ctx context.Context, ref resource.Ref, options ...resource.LookupOption) (*Volume, error)

func (*API) FindIdentity

func (a *API) FindIdentity(ctx context.Context, identity string, options ...resource.IdentityFindOption) (*Volume, error)

FindIdentity tries an ID request before exact ID/name fallback within this collection.

func (*API) ForceDelete

func (a *API) ForceDelete(ctx context.Context, id string) error

ForceDelete invokes the upstream API with library-owned builders and result handling.

func (*API) Get

func (a *API) Get(ctx context.Context, id string) (*Volume, error)

Get invokes the upstream API with library-owned builders and result handling.

func (*API) InitializeConnection

func (a *API) InitializeConnection(ctx context.Context, id string, opts InitializeConnectionOpts, options ...InitializeConnectionOption) (map[string]any, error)

InitializeConnection invokes the upstream API with library-owned builders and result handling.

func (*API) List

func (a *API) List(ctx context.Context, options ...ListOption) iter.Seq2[*Volume, error]

List invokes the upstream API with library-owned builders and result handling.

func (*API) MetadataIn

func (a *API) MetadataIn(ctx context.Context, ref resource.Ref) (*MetadataScope, error)

MetadataIn uses explicit IDs without HTTP. An explicit Name is resolved once through the existing collection's exact lookup and duplicate-name policy.

func (*API) MigrateVolume

func (a *API) MigrateVolume(ctx context.Context, id string, options ...VolumeMigrationOption) (*VolumeActionResult, error)

func (*API) RawClient

func (a *API) RawClient() *gophercloud.ServiceClient

func (*API) ReImage

func (a *API) ReImage(ctx context.Context, id string, opts ReImageOpts, options ...ReImageOption) error

ReImage invokes the upstream API with library-owned builders and result handling.

func (*API) Remove

func (a *API) Remove(ctx context.Context, ref resource.Ref, options ...resource.LookupOption) error

func (*API) Reserve

func (a *API) Reserve(ctx context.Context, id string) error

Reserve invokes the upstream API with library-owned builders and result handling.

func (*API) ReserveVolume

func (a *API) ReserveVolume(ctx context.Context, id string) (*VolumeActionResult, error)

ReserveVolume preserves the source null action separately from native Reserve.

func (*API) ResetStatus

func (a *API) ResetStatus(ctx context.Context, id string, opts ResetStatusOpts, options ...ResetStatusOption) error

ResetStatus invokes the upstream API with library-owned builders and result handling.

func (*API) ResetVolumeStatus

func (a *API) ResetVolumeStatus(ctx context.Context, id string, options ...VolumeStatusResetOption) (*VolumeActionResult, error)

func (*API) RetypeVolume

func (a *API) RetypeVolume(ctx context.Context, id, newType string, options ...VolumeRetypeOption) (*VolumeActionResult, error)

func (*API) RevertVolumeToSnapshot

func (a *API) RevertVolumeToSnapshot(ctx context.Context, id, snapshotID string) (*VolumeActionResult, error)

RevertVolumeToSnapshot takes an explicit volume ID and literal snapshot body value. Completed reports acknowledgement, without a state poll.

func (*API) SetBootable

func (a *API) SetBootable(ctx context.Context, id string, opts BootableOpts, options ...SetBootableOption) error

SetBootable invokes the upstream API with library-owned builders and result handling.

func (*API) SetImageMetadata

func (a *API) SetImageMetadata(ctx context.Context, id string, opts ImageMetadataOpts, options ...SetImageMetadataOption) error

SetImageMetadata invokes the upstream API with library-owned builders and result handling.

func (*API) SetVolumeBootableStatus

func (a *API) SetVolumeBootableStatus(ctx context.Context, id string, bootable bool) (*VolumeActionResult, error)

SetVolumeBootableStatus preserves the required Proxy bool and opaque acknowledgement.

func (*API) SetVolumeImageMetadata

func (a *API) SetVolumeImageMetadata(ctx context.Context, id string, options ...VolumeImageMetadataOption) (*VolumeActionResult, error)

func (*API) SetVolumeReadonly

func (a *API) SetVolumeReadonly(ctx context.Context, id string, options ...VolumeReadonlyOption) (*VolumeActionResult, error)

SetVolumeReadonly owns the default true and explicit false independently of native attach modes.

func (*API) TerminateConnection

func (a *API) TerminateConnection(ctx context.Context, id string, opts TerminateConnectionOpts, options ...TerminateConnectionOption) error

TerminateConnection invokes the upstream API with library-owned builders and result handling.

func (*API) Unmanage

func (a *API) Unmanage(ctx context.Context, id string) error

Unmanage invokes the upstream API with library-owned builders and result handling.

func (*API) UnmanageVolume

func (a *API) UnmanageVolume(ctx context.Context, id string) (*VolumeActionResult, error)

UnmanageVolume exposes the SDK null action separately from native Unmanage.

func (*API) Unreserve

func (a *API) Unreserve(ctx context.Context, id string) error

Unreserve invokes the upstream API with library-owned builders and result handling.

func (*API) UnreserveVolume

func (a *API) UnreserveVolume(ctx context.Context, id string) (*VolumeActionResult, error)

func (*API) Update

func (a *API) Update(ctx context.Context, id string, opts UpdateOpts, options ...UpdateOption) (*Volume, error)

Update invokes the upstream API with library-owned builders and result handling.

func (*API) UploadImage

func (a *API) UploadImage(ctx context.Context, id string, opts UploadImageOpts, options ...UploadImageOption) (VolumeImage, error)

UploadImage invokes the upstream API with library-owned builders and result handling.

func (*API) UploadVolumeToImage

func (a *API) UploadVolumeToImage(ctx context.Context, id, imageName string, options ...VolumeImageUploadOption) (*VolumeImageUploadResult, error)

func (*API) WaitFor

func (a *API) WaitFor(ctx context.Context, ref resource.Ref, status string, options ...resource.WaitOption) (*Volume, error)

func (*API) WaitForAvailable

func (a *API) WaitForAvailable(ctx context.Context, ref resource.Ref, options ...resource.WaitOption) (*Volume, error)

WaitForAvailable uses the Cinder available target, error failure and unlimited SDK wait. Options can select a timeout or a different failure-state list.

func (*API) WaitForDelete

func (a *API) WaitForDelete(ctx context.Context, ref resource.Ref, options ...resource.WaitOption) error

WaitForDelete observes absence with a two-second interval and a 120-second SDK timeout. It sends no DELETE request. Options apply last.

func (*API) WaitForDeletion

func (a *API) WaitForDeletion(ctx context.Context, ref resource.Ref, options ...resource.WaitOption) error

func (*API) WaitForState

func (a *API) WaitForState(ctx context.Context, ref resource.Ref, target string, options ...resource.WaitOption) (*Volume, error)

WaitForState observes an explicit target with a two-second polling interval, the service's exact error failure state, and no SDK timeout. Options apply last.

func (*API) WaitForStatus

func (a *API) WaitForStatus(ctx context.Context, id string, status string) error

WaitForStatus invokes the upstream API with library-owned builders and result handling.

type AttachMode

type AttachMode = upstream.AttachMode

type AttachOption

type AttachOption = request.Option[AttachOpts]

func WithAttachField

func WithAttachField(key string, value any) AttachOption

func WithAttachOptions

func WithAttachOptions(value AttachOpts) AttachOption

type AttachOpts

type AttachOpts = upstream.AttachOpts

type AttachResult

type AttachResult = upstream.AttachResult

type Attachment

type Attachment = upstream.Attachment

type BeginDetachingResult

type BeginDetachingResult = upstream.BeginDetachingResult

type BootableOpts

type BootableOpts = upstream.BootableOpts

type ChangeTypeOption

type ChangeTypeOption = request.Option[ChangeTypeOpts]

func WithChangeTypeField

func WithChangeTypeField(key string, value any) ChangeTypeOption

func WithChangeTypeOptions

func WithChangeTypeOptions(value ChangeTypeOpts) ChangeTypeOption

type ChangeTypeOpts

type ChangeTypeOpts = upstream.ChangeTypeOpts

type ChangeTypeResult

type ChangeTypeResult = upstream.ChangeTypeResult

type CinderVolumeAttachOption

type CinderVolumeAttachOption = cinderaction.DirectAttachOption

func WithCinderVolumeAttachHostName

func WithCinderVolumeAttachHostName(value string) CinderVolumeAttachOption

func WithCinderVolumeAttachInstance

func WithCinderVolumeAttachInstance(value string) CinderVolumeAttachOption

func WithCinderVolumeAttachOptions

func WithCinderVolumeAttachOptions(value CinderVolumeAttachOpts) CinderVolumeAttachOption

type CinderVolumeAttachOpts

type CinderVolumeAttachOpts = cinderaction.DirectAttachOptions

func PrepareCinderVolumeAttachOptions

func PrepareCinderVolumeAttachOptions(ctx context.Context, options ...CinderVolumeAttachOption) (CinderVolumeAttachOpts, error)

type CinderVolumeDetachOption

type CinderVolumeDetachOption = cinderaction.DirectDetachOption

func WithCinderVolumeDetachConnector

func WithCinderVolumeDetachConnector(value map[string]json.RawMessage) CinderVolumeDetachOption

func WithCinderVolumeDetachForce

func WithCinderVolumeDetachForce(value bool) CinderVolumeDetachOption

func WithCinderVolumeDetachOptions

func WithCinderVolumeDetachOptions(value CinderVolumeDetachOpts) CinderVolumeDetachOption

type CinderVolumeDetachOpts

type CinderVolumeDetachOpts = cinderaction.DirectDetachOptions

func PrepareCinderVolumeDetachOptions

func PrepareCinderVolumeDetachOptions(ctx context.Context, options ...CinderVolumeDetachOption) (CinderVolumeDetachOpts, error)

type CreateOption

type CreateOption = request.Option[CreateOpts]

func WithCreateField

func WithCreateField(key string, value any) CreateOption

func WithCreateHintOpts

func WithCreateHintOpts(value SchedulerHintOpts) CreateOption

func WithCreateOptions

func WithCreateOptions(value CreateOpts) CreateOption

type CreateOpts

type CreateOpts = upstream.CreateOpts

type CreateResult

type CreateResult = upstream.CreateResult

type DeleteOption

type DeleteOption = request.Option[DeleteOpts]

func WithDeleteOptions

func WithDeleteOptions(value DeleteOpts) DeleteOption

func WithDeleteQuery

func WithDeleteQuery(key, value string) DeleteOption

type DeleteOpts

type DeleteOpts = upstream.DeleteOpts

type DeleteResult

type DeleteResult = upstream.DeleteResult

type DetachOption

type DetachOption = request.Option[DetachOpts]

func WithDetachField

func WithDetachField(key string, value any) DetachOption

func WithDetachOptions

func WithDetachOptions(value DetachOpts) DetachOption

type DetachOpts

type DetachOpts = upstream.DetachOpts

type DetachResult

type DetachResult = upstream.DetachResult

type ExtendSizeOption

type ExtendSizeOption = request.Option[ExtendSizeOpts]

func WithExtendSizeField

func WithExtendSizeField(key string, value any) ExtendSizeOption

func WithExtendSizeOptions

func WithExtendSizeOptions(value ExtendSizeOpts) ExtendSizeOption

type ExtendSizeOpts

type ExtendSizeOpts = upstream.ExtendSizeOpts

type ExtendSizeResult

type ExtendSizeResult = upstream.ExtendSizeResult

type ForceDeleteResult

type ForceDeleteResult = upstream.ForceDeleteResult

type GetResult

type GetResult = upstream.GetResult

type ImageMetadataOpts

type ImageMetadataOpts = upstream.ImageMetadataOpts

type ImageVolumeType

type ImageVolumeType = upstream.ImageVolumeType

type InitializeConnectionOption

type InitializeConnectionOption = request.Option[InitializeConnectionOpts]

func WithInitializeConnectionField

func WithInitializeConnectionField(key string, value any) InitializeConnectionOption

type InitializeConnectionOpts

type InitializeConnectionOpts = upstream.InitializeConnectionOpts

type InitializeConnectionResult

type InitializeConnectionResult = upstream.InitializeConnectionResult

type ListOption

type ListOption = request.Option[ListOpts]

func WithListOptions

func WithListOptions(value ListOpts) ListOption

func WithListQuery

func WithListQuery(key, value string) ListOption

type ListOpts

type ListOpts = upstream.ListOpts

type MetadataDeleteResult

type MetadataDeleteResult = metadata.DeleteResult

MetadataDeleteResult retains each acknowledged key deletion or an actual clear response.

type MetadataOption

type MetadataOption = metadata.Option

MetadataOption configures only library-owned request headers.

func WithMetadataHeader

func WithMetadataHeader(key, value string) MetadataOption

func WithMetadataHeaders

func WithMetadataHeaders(headers map[string]string) MetadataOption

type MetadataResult

type MetadataResult = metadata.Result

MetadataResult retains the actual metadata response and HTTP evidence.

type MetadataScope

type MetadataScope struct {
	// contains filtered or unexported fields
}

MetadataScope fixes a parent ID and collection URL once. Response fields and later client URL changes cannot select a different metadata resource.

func (*MetadataScope) DeleteKeys

func (s *MetadataScope) DeleteKeys(ctx context.Context, keys []string, options ...MetadataOption) (*MetadataDeleteResult, error)

DeleteKeys clears with PUT for nil keys. A nonnil empty slice performs no HTTP; other keys are deleted in order, retaining prior acknowledgements on error.

func (*MetadataScope) Get

func (s *MetadataScope) Get(ctx context.Context, options ...MetadataOption) (*MetadataResult, error)

func (*MetadataScope) ID

func (s *MetadataScope) ID() string

func (*MetadataScope) Merge

func (s *MetadataScope) Merge(ctx context.Context, values map[string]string, options ...MetadataOption) (*MetadataResult, error)

Merge sends an explicit metadata object, including for a nil or empty map.

func (*MetadataScope) RawClient

func (s *MetadataScope) RawClient() *gophercloud.ServiceClient

func (*MetadataScope) Replace

func (s *MetadataScope) Replace(ctx context.Context, values map[string]string, options ...MetadataOption) (*MetadataResult, error)

Replace sends the complete replacement object; nil and empty maps clear it.

type MigrationPolicy

type MigrationPolicy = upstream.MigrationPolicy

type ReImageOption

type ReImageOption = request.Option[ReImageOpts]

func WithReImageField

func WithReImageField(key string, value any) ReImageOption

func WithReImageOptions

func WithReImageOptions(value ReImageOpts) ReImageOption

type ReImageOpts

type ReImageOpts = upstream.ReImageOpts

type ReImageResult

type ReImageResult = upstream.ReImageResult

type ReserveResult

type ReserveResult = upstream.ReserveResult

type ResetStatusOption

type ResetStatusOption = request.Option[ResetStatusOpts]

func WithResetStatusField

func WithResetStatusField(key string, value any) ResetStatusOption

func WithResetStatusOptions

func WithResetStatusOptions(value ResetStatusOpts) ResetStatusOption

type ResetStatusOpts

type ResetStatusOpts = upstream.ResetStatusOpts

type ResetStatusResult

type ResetStatusResult = upstream.ResetStatusResult

type SchedulerHintOpts

type SchedulerHintOpts = upstream.SchedulerHintOpts

type SetBootableOption

type SetBootableOption = request.Option[BootableOpts]

func WithSetBootableField

func WithSetBootableField(key string, value any) SetBootableOption

func WithSetBootableOptions

func WithSetBootableOptions(value BootableOpts) SetBootableOption

type SetBootableResult

type SetBootableResult = upstream.SetBootableResult

type SetImageMetadataOption

type SetImageMetadataOption = request.Option[ImageMetadataOpts]

func WithSetImageMetadataField

func WithSetImageMetadataField(key string, value any) SetImageMetadataOption

func WithSetImageMetadataOptions

func WithSetImageMetadataOptions(value ImageMetadataOpts) SetImageMetadataOption

type SetImageMetadataResult

type SetImageMetadataResult = upstream.SetImageMetadataResult

type TerminateConnectionOption

type TerminateConnectionOption = request.Option[TerminateConnectionOpts]

func WithTerminateConnectionField

func WithTerminateConnectionField(key string, value any) TerminateConnectionOption

type TerminateConnectionOpts

type TerminateConnectionOpts = upstream.TerminateConnectionOpts

type TerminateConnectionResult

type TerminateConnectionResult = upstream.TerminateConnectionResult

type UnmanageResult

type UnmanageResult = upstream.UnmanageResult

type UnreserveResult

type UnreserveResult = upstream.UnreserveResult

type UpdateOption

type UpdateOption = request.Option[UpdateOpts]

func WithUpdateField

func WithUpdateField(key string, value any) UpdateOption

func WithUpdateOptions

func WithUpdateOptions(value UpdateOpts) UpdateOption

type UpdateOpts

type UpdateOpts = upstream.UpdateOpts

type UpdateResult

type UpdateResult = upstream.UpdateResult

type UploadImageOption

type UploadImageOption = request.Option[UploadImageOpts]

func WithUploadImageField

func WithUploadImageField(key string, value any) UploadImageOption

func WithUploadImageOptions

func WithUploadImageOptions(value UploadImageOpts) UploadImageOption

type UploadImageOpts

type UploadImageOpts = upstream.UploadImageOpts

type UploadImageResult

type UploadImageResult = upstream.UploadImageResult

type Volume

type Volume = upstream.Volume

type VolumeActionResult

type VolumeActionResult = cinderaction.Result

type VolumeExtendCompletionOption

type VolumeExtendCompletionOption = cinderaction.ExtendCompletionOption

func WithVolumeExtendCompletionError

func WithVolumeExtendCompletionError(value bool) VolumeExtendCompletionOption

type VolumeExtendCompletionOpts

type VolumeExtendCompletionOpts = cinderaction.ExtendCompletionOptions

func PrepareVolumeExtendCompletionOptions

func PrepareVolumeExtendCompletionOptions(ctx context.Context, options ...VolumeExtendCompletionOption) (VolumeExtendCompletionOpts, error)

type VolumeImage

type VolumeImage = upstream.VolumeImage

type VolumeImageMetadataDeleteOption

type VolumeImageMetadataDeleteOption = cinderaction.ImageMetadataDeleteOption

func WithVolumeImageMetadataDeleteAll

func WithVolumeImageMetadataDeleteAll() VolumeImageMetadataDeleteOption

WithVolumeImageMetadataDeleteAll restores the default all-keys intent.

func WithVolumeImageMetadataDeleteKeys

func WithVolumeImageMetadataDeleteKeys(keys ...string) VolumeImageMetadataDeleteOption

WithVolumeImageMetadataDeleteKeys preserves order and duplicates. No keys selects an explicit no-op, including when expanded from a nil slice.

type VolumeImageMetadataDeleteResult

type VolumeImageMetadataDeleteResult = cinderaction.ImageMetadataDeleteResult

type VolumeImageMetadataDeletion

type VolumeImageMetadataDeletion = cinderaction.ImageMetadataDeletion

type VolumeImageMetadataOption

type VolumeImageMetadataOption = cinderaction.ImageMetadataOption

func WithVolumeImageMetadata

func WithVolumeImageMetadata(value map[string]string) VolumeImageMetadataOption

WithVolumeImageMetadata replaces the metadata object with string values.

func WithVolumeImageMetadataOptions

func WithVolumeImageMetadataOptions(value VolumeImageMetadataOpts) VolumeImageMetadataOption

WithVolumeImageMetadataOptions replaces the entire owned policy.

func WithVolumeImageMetadataRaw

func WithVolumeImageMetadataRaw(value map[string]json.RawMessage) VolumeImageMetadataOption

WithVolumeImageMetadataRaw replaces the object with owned JSON values.

func WithVolumeImageMetadataValue

func WithVolumeImageMetadataValue(key, value string) VolumeImageMetadataOption

WithVolumeImageMetadataValue adds or replaces one string value.

type VolumeImageMetadataOpts

type VolumeImageMetadataOpts = cinderaction.ImageMetadataOptions

func PrepareVolumeImageMetadataOptions

func PrepareVolumeImageMetadataOptions(ctx context.Context, options ...VolumeImageMetadataOption) (VolumeImageMetadataOpts, error)

type VolumeImageMetadataResponse

type VolumeImageMetadataResponse = rest.Response

type VolumeImageUploadOption

type VolumeImageUploadOption = cinderaction.ImageUploadOption

func WithVolumeImageUploadContainerFormat

func WithVolumeImageUploadContainerFormat(value string) VolumeImageUploadOption

func WithVolumeImageUploadDiskFormat

func WithVolumeImageUploadDiskFormat(value string) VolumeImageUploadOption

func WithVolumeImageUploadForce

func WithVolumeImageUploadForce(value bool) VolumeImageUploadOption

func WithVolumeImageUploadOptions

func WithVolumeImageUploadOptions(value VolumeImageUploadOpts) VolumeImageUploadOption

func WithVolumeImageUploadProtected

func WithVolumeImageUploadProtected(value bool) VolumeImageUploadOption

func WithVolumeImageUploadVisibility

func WithVolumeImageUploadVisibility(value string) VolumeImageUploadOption

type VolumeImageUploadOpts

type VolumeImageUploadOpts = cinderaction.ImageUploadOptions

func PrepareVolumeImageUploadOptions

func PrepareVolumeImageUploadOptions(ctx context.Context, options ...VolumeImageUploadOption) (VolumeImageUploadOpts, error)

type VolumeImageUploadResponse

type VolumeImageUploadResponse = rest.Response

type VolumeImageUploadResult

type VolumeImageUploadResult = cinderaction.ImageUploadResult

type VolumeMigrationCompletionOption

type VolumeMigrationCompletionOption = cinderaction.MigrationCompletionOption

func WithVolumeMigrationCompletionError

func WithVolumeMigrationCompletionError(value bool) VolumeMigrationCompletionOption

type VolumeMigrationOption

type VolumeMigrationOption = cinderaction.MigrationOption

func WithVolumeMigrationCluster

func WithVolumeMigrationCluster(value string) VolumeMigrationOption

func WithVolumeMigrationForceHostCopy

func WithVolumeMigrationForceHostCopy(value bool) VolumeMigrationOption

func WithVolumeMigrationHost

func WithVolumeMigrationHost(value string) VolumeMigrationOption

func WithVolumeMigrationLockVolume

func WithVolumeMigrationLockVolume(value bool) VolumeMigrationOption

func WithVolumeMigrationOptions

func WithVolumeMigrationOptions(value VolumeMigrationOpts) VolumeMigrationOption

type VolumeMigrationOpts

type VolumeMigrationOpts = cinderaction.MigrationOptions

func PrepareVolumeMigrationOptions

func PrepareVolumeMigrationOptions(ctx context.Context, options ...VolumeMigrationOption) (VolumeMigrationOpts, error)

type VolumePage

type VolumePage = upstream.VolumePage

type VolumeReadonlyOption

type VolumeReadonlyOption = cinderaction.ReadonlyOption

func WithVolumeReadonly

func WithVolumeReadonly(value bool) VolumeReadonlyOption

func WithVolumeReadonlyOptions

func WithVolumeReadonlyOptions(value VolumeReadonlyOpts) VolumeReadonlyOption

type VolumeReadonlyOpts

type VolumeReadonlyOpts = cinderaction.ReadonlyOptions

func PrepareVolumeReadonlyOptions

func PrepareVolumeReadonlyOptions(ctx context.Context, options ...VolumeReadonlyOption) (VolumeReadonlyOpts, error)

type VolumeRetypeOption

type VolumeRetypeOption = cinderaction.RetypeOption

func WithVolumeRetypeMigrationPolicy

func WithVolumeRetypeMigrationPolicy(value string) VolumeRetypeOption

func WithVolumeRetypeOptions

func WithVolumeRetypeOptions(value VolumeRetypeOpts) VolumeRetypeOption

type VolumeRetypeOpts

type VolumeRetypeOpts = cinderaction.RetypeOptions

func PrepareVolumeRetypeOptions

func PrepareVolumeRetypeOptions(ctx context.Context, options ...VolumeRetypeOption) (VolumeRetypeOpts, error)

type VolumeStatusResetOption

type VolumeStatusResetOption = cinderaction.StatusResetOption

func WithVolumeStatusResetAttachStatus

func WithVolumeStatusResetAttachStatus(value string) VolumeStatusResetOption

func WithVolumeStatusResetMigrationStatus

func WithVolumeStatusResetMigrationStatus(value string) VolumeStatusResetOption

func WithVolumeStatusResetOptions

func WithVolumeStatusResetOptions(value VolumeStatusResetOpts) VolumeStatusResetOption

func WithVolumeStatusResetStatus

func WithVolumeStatusResetStatus(value string) VolumeStatusResetOption

type VolumeStatusResetOpts

type VolumeStatusResetOpts = cinderaction.StatusResetOptions

func PrepareVolumeStatusResetOptions

func PrepareVolumeStatusResetOptions(ctx context.Context, options ...VolumeStatusResetOption) (VolumeStatusResetOpts, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL