trace

package
v1.15.2 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 18 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."`
	ShowPackageDependencies   string `` /* 147-byte string literal not displayed */
	ShowPackageRevisions      string `` /* 141-byte string literal not displayed */
	ShowPackageRuntimeConfigs bool   `name:"show-package-runtime-configs" help:"Show package runtime configs in the output." default:"false"`
}

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.
resource/xpkg
Package xpkg contains the client to get a Crossplane package with all its dependencies as a tree of Resource.
Package xpkg contains the client to get a Crossplane package with all its dependencies as a tree of Resource.
resource/xrm
Package xrm contains the client to get a Crossplane resource with all its children as a tree of Resource.
Package xrm contains the client to get a Crossplane resource with all its children as a tree of Resource.

Jump to

Keyboard shortcuts

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