cli

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeIntoTable

func DecodeIntoTable(o runtime.Object) (*metav1.Table, error)

func DiffRenderString

func DiffRenderString(a map[string]any, b map[string]any) string

func Start

func Start(watchRes watch.Interface, watchResTable watch.Interface) error

func YamlRenderString

func YamlRenderString(a map[string]any) string

Types

type Resource

type Resource struct {
	VersionsMap map[string]*ResourceVersion
	Versions    []*ResourceVersion
}

func NewResource

func NewResource() *Resource

func (*Resource) CreateOrGetVersion

func (r *Resource) CreateOrGetVersion(version string) *ResourceVersion

func (*Resource) TableColumnDefinition

func (r *Resource) TableColumnDefinition() []metav1.TableColumnDefinition

type ResourceVersion

type ResourceVersion struct {
	Version   string
	Timestamp time.Time
	EventType watch.EventType
	Object    *unstructured.Unstructured
	Table     *metav1.Table
}

func NewResourceVersion

func NewResourceVersion(version string, timestamp time.Time) *ResourceVersion

type TickMsg

type TickMsg time.Time

Jump to

Keyboard shortcuts

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