checks

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2025 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockSnapshotCheck

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

func BlockSnapshot

func BlockSnapshot() *BlockSnapshotCheck

BlockSnapshot returns an empty check, to be passed to another check to fill ID and zone

func (*BlockSnapshotCheck) Check

func (c *BlockSnapshotCheck) Check(ctx context.Context) error

func (*BlockSnapshotCheck) SizeInGB

func (c *BlockSnapshotCheck) SizeInGB(size uint64) *BlockSnapshotCheck

type ImageCheck

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

func Image

func Image(zone scw.Zone, name string) *ImageCheck

func (*ImageCheck) Check

func (c *ImageCheck) Check(ctx context.Context) error

func (*ImageCheck) ExtraVolumeType

func (c *ImageCheck) ExtraVolumeType(key string, volumeType string) *ImageCheck

func (*ImageCheck) RootVolumeBlockSnapshot

func (c *ImageCheck) RootVolumeBlockSnapshot(snapshotCheck *BlockSnapshotCheck) *ImageCheck

func (*ImageCheck) RootVolumeType

func (c *ImageCheck) RootVolumeType(rootVolumeType string) *ImageCheck

func (*ImageCheck) SizeInGb

func (c *ImageCheck) SizeInGb(size uint64) *ImageCheck

func (*ImageCheck) Tags added in v1.3.2

func (c *ImageCheck) Tags(tags []string) *ImageCheck

type NoVolumesCheck

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

func NoVolume

func NoVolume(zone scw.Zone) *NoVolumesCheck

NoVolume checks that the current project does not contain any volume, block or instance.

func (*NoVolumesCheck) Check

func (c *NoVolumesCheck) Check(ctx context.Context) error

type SnapshotCheck

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

func Snapshot

func Snapshot(zone scw.Zone, snapshotName string) *SnapshotCheck

func (*SnapshotCheck) Check

func (c *SnapshotCheck) Check(ctx context.Context) error

func (*SnapshotCheck) SizeInGB

func (c *SnapshotCheck) SizeInGB(size uint64) *SnapshotCheck

func (*SnapshotCheck) Tags added in v1.3.2

func (c *SnapshotCheck) Tags(tags []string) *SnapshotCheck

type VolumeCheck

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

func Volume

func Volume(zone scw.Zone, name string) *VolumeCheck

func (*VolumeCheck) Check

func (c *VolumeCheck) Check(ctx context.Context) error

func (*VolumeCheck) SizeInGB

func (c *VolumeCheck) SizeInGB(size uint64) *VolumeCheck

func (*VolumeCheck) Tags added in v1.3.2

func (c *VolumeCheck) Tags(tags []string) *VolumeCheck

Jump to

Keyboard shortcuts

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