tableconverters

package
v0.0.0-...-66691d1 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Instance = tableconverter.Funcs[*iri.Instance]{
		Headers: tableconverter.Headers(instanceHeaders),
		Rows: tableconverter.SingleRowFrom(func(instance *iri.Instance) (api.Row, error) {
			return api.Row{
				instance.Metadata.Id,
				instance.Spec.Type,
				instance.Spec.GetImage().GetImage(),
				instance.Status.State.String(),
				duration.HumanDuration(time.Since(time.Unix(0, instance.Metadata.CreatedAt))),
			}, nil
		}),
	}
	InstanceSlice = tableconverter.SliceFuncs[*iri.Instance](Instance)
)
View Source
var (
	RegistryBuilder tableconverter.RegistryBuilder
	AddToRegistry   = RegistryBuilder.AddToRegistry
)

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