apidocs

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2025 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunApp

func RunApp(uiData *UIData) error

Types

type Explainer

type Explainer struct {
	// contains filtered or unexported fields
}

func NewExplainer

func NewExplainer(gvr schema.GroupVersionResource, openAPIClient openapiclient.Client) *Explainer

func (*Explainer) Explain

func (e *Explainer) Explain(w io.Writer, path string) error

type ResourceFieldsNode

type ResourceFieldsNode struct {
	Name     string
	Children map[string]*ResourceFieldsNode
	Path     string
}

ResourceFieldsNode used for construct a tree-structure from 'sts.metadata.name' paths

func NewResourceFieldsNode

func NewResourceFieldsNode() *ResourceFieldsNode

func (*ResourceFieldsNode) AddPath

func (node *ResourceFieldsNode) AddPath(path string)

type TreeData

type TreeData struct {
	// contains filtered or unexported fields
}

TreeData is used for store custom properties in *tview.TreeNode references

func (*TreeData) IsNodeType

func (d *TreeData) IsNodeType(nodeTypes ...TreeDataNodeType) bool

type TreeDataNodeType

type TreeDataNodeType string
type TreeLinks struct {
	// key=child, value=parent
	ParentMap map[*tview.TreeNode]*tview.TreeNode
}
func NewTreeLinks() *TreeLinks
func (t *TreeLinks) FillLinks(root *tview.TreeNode)

type UIData

type UIData struct {
	DiscoveryClient discovery.CachedDiscoveryInterface
	RestMapper      meta.RESTMapper
	OpenAPISchema   openapi.Resources
	OpenAPIClient   openapiclient.Client
}

type UIState

type UIState struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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