Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( RegistryBuilder tableconverter.RegistryBuilder AddToRegistry = RegistryBuilder.AddToRegistry )
View Source
var Bucket, BucketSlice = tableconverter.ForType[*ori.Bucket](
func() ([]table.Header, error) {
return bucketHeaders, nil
},
func(bucket *ori.Bucket) ([]table.Row, error) {
return []table.Row{
{
bucket.Metadata.Id,
bucket.Spec.Class,
bucket.Status.State.String(),
duration.HumanDuration(time.Since(time.Unix(0, bucket.Metadata.CreatedAt))),
},
}, nil
},
)
View Source
var BucketClass, BucketClassSlice = tableconverter.ForType[*ori.BucketClass](
func() ([]table.Header, error) {
return bucketClassHeaders, nil
},
func(class *ori.BucketClass) ([]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.