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.
Click to show internal directories.
Click to hide internal directories.