checks

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2026 License: MPL-2.0 Imports: 8 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(zone scw.Zone, namePrefix string) *BlockSnapshotCheck

func (*BlockSnapshotCheck) Check

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

func (*BlockSnapshotCheck) CheckName added in v1.4.0

func (c *BlockSnapshotCheck) CheckName() string

func (*BlockSnapshotCheck) Name added in v1.4.0

func (*BlockSnapshotCheck) SizeInGB

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

func (*BlockSnapshotCheck) Tags added in v1.4.0

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

type BlockVolumeCheck added in v1.4.0

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

func BlockVolume added in v1.4.0

func BlockVolume(zone scw.Zone, namePrefix string) *BlockVolumeCheck

func (*BlockVolumeCheck) Check added in v1.4.0

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

func (*BlockVolumeCheck) CheckName added in v1.4.0

func (c *BlockVolumeCheck) CheckName() string

func (*BlockVolumeCheck) IOPS added in v1.4.0

func (c *BlockVolumeCheck) IOPS(iops uint32) *BlockVolumeCheck

func (*BlockVolumeCheck) Name added in v1.4.0

func (c *BlockVolumeCheck) Name(volumeName string) *BlockVolumeCheck

func (*BlockVolumeCheck) SizeInGB added in v1.4.0

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

func (*BlockVolumeCheck) Tags added in v1.4.0

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

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) CheckName added in v1.4.0

func (c *ImageCheck) CheckName() string

func (*ImageCheck) ExtraVolumeSnapshot added in v1.4.0

func (c *ImageCheck) ExtraVolumeSnapshot(index string, snapshotCheck SnapshotCheck) *ImageCheck

func (*ImageCheck) RootVolumeSnapshot added in v1.4.0

func (c *ImageCheck) RootVolumeSnapshot(snapshotCheck SnapshotCheck) *ImageCheck

func (*ImageCheck) SizeInGB added in v1.4.0

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

func (*ImageCheck) Tags added in v1.3.2

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

type InstanceSnapshotCheck added in v1.4.0

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

func InstanceSnapshot added in v1.4.0

func InstanceSnapshot(zone scw.Zone, namePrefix string) *InstanceSnapshotCheck

func (*InstanceSnapshotCheck) Check added in v1.4.0

func (*InstanceSnapshotCheck) CheckName added in v1.4.0

func (c *InstanceSnapshotCheck) CheckName() string

func (*InstanceSnapshotCheck) Name added in v1.4.0

func (*InstanceSnapshotCheck) SizeInGB added in v1.4.0

func (*InstanceSnapshotCheck) Tags added in v1.4.0

type InstanceVolumeCheck added in v1.4.0

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

func InstanceVolume added in v1.4.0

func InstanceVolume(zone scw.Zone, name string) *InstanceVolumeCheck

func (*InstanceVolumeCheck) Check added in v1.4.0

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

func (*InstanceVolumeCheck) CheckName added in v1.4.0

func (c *InstanceVolumeCheck) CheckName() string

func (*InstanceVolumeCheck) Name added in v1.4.0

func (c *InstanceVolumeCheck) Name(volumeName string) *InstanceVolumeCheck

func (*InstanceVolumeCheck) SizeInGB added in v1.4.0

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

func (*InstanceVolumeCheck) Tags added in v1.4.0

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

func (*NoVolumesCheck) CheckName added in v1.4.0

func (c *NoVolumesCheck) CheckName() string

type SnapshotCheck

type SnapshotCheck interface {
	Check(context.Context) error
}

Jump to

Keyboard shortcuts

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