bucket

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 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.

Jump to

Keyboard shortcuts

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