Documentation
¶
Index ¶
- type BlockSnapshotCheck
- type ImageCheck
- func (c *ImageCheck) Check(ctx context.Context) error
- func (c *ImageCheck) ExtraVolumeType(key string, volumeType string) *ImageCheck
- func (c *ImageCheck) RootVolumeBlockSnapshot(snapshotCheck *BlockSnapshotCheck) *ImageCheck
- func (c *ImageCheck) RootVolumeType(rootVolumeType string) *ImageCheck
- func (c *ImageCheck) SizeInGb(size uint64) *ImageCheck
- func (c *ImageCheck) Tags(tags []string) *ImageCheck
- type NoVolumesCheck
- type SnapshotCheck
- type VolumeCheck
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) SizeInGB ¶
func (c *BlockSnapshotCheck) SizeInGB(size uint64) *BlockSnapshotCheck
type ImageCheck ¶
type ImageCheck struct {
// contains filtered or unexported fields
}
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.
type SnapshotCheck ¶
type SnapshotCheck struct {
// contains filtered or unexported fields
}
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 (*VolumeCheck) SizeInGB ¶
func (c *VolumeCheck) SizeInGB(size uint64) *VolumeCheck
func (*VolumeCheck) Tags ¶ added in v1.3.2
func (c *VolumeCheck) Tags(tags []string) *VolumeCheck
Click to show internal directories.
Click to hide internal directories.