trace

package
v0.25.0 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	*tview.Application
	// contains filtered or unexported fields
}

App represents main application struct.

func NewApp

func NewApp(title string, group, kind, name string, pollFn func(kind, group, name string) (*queryv1alpha1.QueryResponse, error), fetchFn func(id string) (*unstructured.Unstructured, error)) *App

func (*App) Run

func (a *App) Run(ctx context.Context) error

func (*App) TopLevelInputHandler

func (a *App) TopLevelInputHandler(event *tcell.EventKey, setFocus func(p tview.Primitive)) bool

func (*App) Unzoom

func (a *App) Unzoom()

func (*App) Zoom

func (a *App) Zoom()

type Cmd

type Cmd struct {
	ControlPlane string `short:"c" long:"controlplane" env:"UPBOUND_CONTROLPLANE" description:"Controlplane to query"`
	Group        string `short:"g" long:"group" env:"UPBOUND_GROUP" description:"Group to query"`
	Namespace    string `short:"n" long:"namespace" env:"UPBOUND_NAMESPACE" description:"Namespace of objects to query (defaults to all namespaces)"`

	Kind string `arg:"" description:"Kind to trace, accepts the 'KIND[.GROUP][/NAME]' format."`
	Name string `arg:"" description:"Name to trace" optional:""`
}

func (*Cmd) BeforeApply

func (c *Cmd) BeforeApply() error

BeforeApply sets default values for the delete command, before assignment and validation.

func (*Cmd) Help

func (c *Cmd) Help() string

func (*Cmd) Run

func (c *Cmd) Run(ctx context.Context) error

Directories

Path Synopsis
Package query contains query.spaces.upbound.io API versions.
Package query contains query.spaces.upbound.io API versions.
v1alpha1
Package v1alpha1 contains ControlPlane resources.
Package v1alpha1 contains ControlPlane resources.

Jump to

Keyboard shortcuts

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