volume

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	RegistryBuilder tableconverter.RegistryBuilder
	AddToRegistry   = RegistryBuilder.AddToRegistry
)
View Source
var Volume, VolumeSlice = tableconverter.ForType[*ori.Volume](
	func() ([]table.Header, error) {
		return volumeHeaders, nil
	},
	func(volume *ori.Volume) ([]table.Row, error) {
		return []table.Row{
			{
				volume.Metadata.Id,
				volume.Spec.Class,
				volume.Spec.Image,
				volume.Status.State.String(),
				duration.HumanDuration(time.Since(time.Unix(0, volume.Metadata.CreatedAt))),
			},
		}, nil
	},
)
View Source
var VolumeClass, VolumeClassSlice = tableconverter.ForType[*ori.VolumeClass](
	func() ([]table.Header, error) {
		return volumeClassHeaders, nil
	},
	func(class *ori.VolumeClass) ([]table.Row, error) {
		return []table.Row{
			{
				class.Name,
				class.Capabilities.Tps,
				class.Capabilities.Iops,
			},
		}, nil
	},
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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