trace

package
v1.14.7 Latest Latest
Warning

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

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

Documentation

Overview

Package trace contains the trace command.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cmd

type Cmd struct {
	Resource string `arg:"" help:"Kind of the Crossplane resource, accepts the 'TYPE[.VERSION][.GROUP][/NAME]' format."`
	Name     string `arg:"" optional:"" help:"Name of the Crossplane resource, can be passed as part of the resource too."`

	// TODO(phisco): add support for all the usual kubectl flags; configFlags := genericclioptions.NewConfigFlags(true).AddFlags(...)
	// TODO(phisco): move to namespace defaulting to "" and use the current context's namespace
	Namespace             string `short:"n" name:"namespace" help:"Namespace of the resource." default:"default"`
	Output                string `` /* 126-byte string literal not displayed */
	ShowConnectionSecrets bool   `short:"s" name:"show-connection-secrets" help:"Show connection secrets in the output."`
}

Cmd builds the trace tree for a Crossplane resource.

func (*Cmd) Help

func (c *Cmd) Help() string

Help returns help message for the trace command.

func (*Cmd) Run

func (c *Cmd) Run(k *kong.Context, logger logging.Logger) error

Run runs the trace command.

Directories

Path Synopsis
internal
printer
Package printer contains the definition of the Printer interface and the implementation of all the available printers implementing it.
Package printer contains the definition of the Printer interface and the implementation of all the available printers implementing it.
resource
Package resource contains the definition of the Resource used by all trace printers, and the client used to get a Resource and its children.
Package resource contains the definition of the Resource used by all trace printers, and the client used to get a Resource and its children.

Jump to

Keyboard shortcuts

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