power

package
v0.14.7 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2026 License: Apache-2.0 Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(mCtx *mc.Context, args *PowerArgs) (*string, error)

func WaitForVolumeAvailable added in v0.14.2

func WaitForVolumeAvailable(mCtx *mc.Context, cloudInstanceId, volumeId string) (string, error)

WaitForVolumeAvailable polls the IBM Cloud PowerVS API until the volume reaches "available" (or "in-use") state, retrying on 500 errors. This is necessary because the Terraform IBM Cloud provider's ibm_pi_volume_attach resource polls volume state via GET but does not retry on HTTP 500, causing spurious failures when the IBM Cloud backend returns a transient 500 shortly after volume creation. Running this wait before the Pulumi attachment resource is registered ensures the volume is in a stable state before the provider's own polling begins.

Types

type PowerArgs

type PowerArgs struct {
	InstanceArgs    models.PVMInstanceCreate
	CloudInstanceId string
}

Jump to

Keyboard shortcuts

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