instance

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: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsVolumeTypeCompatible added in v0.3.1

func IsVolumeTypeCompatible(imageVolumeType scwInstance.VolumeVolumeType, configVolumeType string) bool

IsVolumeTypeCompatible checks if the volume type from the image is compatible with the one from the config. It allows a sbs_snapshot image to be used with a sbs_volume config.

func WaitForServerTerminated

func WaitForServerTerminated(s *instance.API, req *WaitForServerTerminatedRequest, opts ...scw.RequestOption) error

WaitForServerTerminated waits for a server to be terminated.

func WaitForVolumeDetached added in v0.2.0

func WaitForVolumeDetached(s *instance.API, req *WaitForVolumeDetachedRequest, opts ...scw.RequestOption) (*instance.Volume, error)

WaitForVolumeDetached wait for the volume to be in the detached state.

Types

type WaitForServerTerminatedRequest

type WaitForServerTerminatedRequest struct {
	ServerID      string
	Zone          scw.Zone
	Timeout       *time.Duration
	RetryInterval *time.Duration
}

WaitForServerTerminatedRequest is used by WaitForServerTerminated method.

type WaitForVolumeDetachedRequest added in v0.2.0

type WaitForVolumeDetachedRequest instance.WaitForVolumeRequest

Jump to

Keyboard shortcuts

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