apiversions

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindFieldStarts

func FindFieldStarts(line string) ([]string, []int)

func ParseKindResults

func ParseKindResults()

func ReadCSV

func ReadCSV(path string) ([]string, [][]string, error)

func RunKind

func RunKind()

func SetupKindCommand

func SetupKindCommand() *cobra.Command

Types

type ResourceDiff

type ResourceDiff struct {
	Changed map[string]*diff.MapDiff
}

func (*ResourceDiff) SortedChangedKeys

func (r *ResourceDiff) SortedChangedKeys() []string

func (*ResourceDiff) Table

func (r *ResourceDiff) Table(includes map[string]bool, skips map[string]bool) string

type ResourcesTable

type ResourcesTable struct {
	Version string
	Kinds   map[string][]string
	Headers []string
	Rows    [][]string
}

func NewResourcesTable

func NewResourcesTable(version string, headers []string, rows [][]string) (*ResourcesTable, error)

func (*ResourcesTable) Diff

func (r *ResourcesTable) Diff(other *ResourcesTable) *ResourceDiff

func (*ResourcesTable) KindResourcesTable

func (r *ResourcesTable) KindResourcesTable() string

func (*ResourcesTable) SimpleTable

func (r *ResourcesTable) SimpleTable() string

func (*ResourcesTable) SortedKinds

func (r *ResourcesTable) SortedKinds() []string

Jump to

Keyboard shortcuts

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