trace

package
v0.32.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2024 License: Apache-2.0 Imports: 30 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, resources []string, gkns query.GroupKindNames, cns query.CategoryNames, pollFn func(gkns query.GroupKindNames, cns query.CategoryNames) ([]queryv1alpha1.QueryResponseObject, 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)"`
	AllGroups    bool   `short:"A" name:"all-groups" help:"Query in all groups."`

	// positional arguments
	Resources []string `` /* 247-byte string literal not displayed */

	Flags upbound.Flags `embed:""`
}

func (*Cmd) AfterApply added in v0.26.0

func (c *Cmd) AfterApply(kongCtx *kong.Context) error

AfterApply constructs and binds Upbound-specific context to any subcommands that have Run() methods that receive it.

func (*Cmd) Help

func (c *Cmd) Help() string

func (*Cmd) Run

func (c *Cmd) Run(ctx context.Context, kongCtx *kong.Context, upCtx *upbound.Context) error

Directories

Path Synopsis
Package query contains query.spaces.upbound.io API versions.
Package query contains query.spaces.upbound.io API versions.

Jump to

Keyboard shortcuts

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