block

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WaitForVolumeStatus

func WaitForVolumeStatus(s *block.API, req *WaitForVolumeStatusRequest, opts ...scw.RequestOption) (*block.Volume, error)

WaitForVolumeStatus waits for a volume to reach one of the desired statuses. This function can be used to wait for a volume to be unattached for example.

Types

type WaitForVolumeStatusRequest

type WaitForVolumeStatusRequest struct {
	VolumeID      string
	Zone          scw.Zone
	Timeout       *time.Duration
	RetryInterval *time.Duration
	Statuses      []block.VolumeStatus
}

WaitForServerRequest is used by WaitForServer method.

Jump to

Keyboard shortcuts

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