checks

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2026 License: MPL-2.0 Imports: 9 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

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 ServerCheck added in v1.5.0

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

func Server added in v1.5.0

func Server(zone scw.Zone, name string) *ServerCheck

func (*ServerCheck) AdminPasswordEncryptionSSHKeyID added in v1.5.0

func (c *ServerCheck) AdminPasswordEncryptionSSHKeyID(sshKeyID string) *ServerCheck

func (*ServerCheck) Check added in v1.5.0

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

func (*ServerCheck) CheckName added in v1.5.0

func (c *ServerCheck) CheckName() string

func (*ServerCheck) Tags added in v1.5.0

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

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