cmd

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCoreDumpCommand added in v0.7.0

func NewCoreDumpCommand(commonOptions *CommonOptions) *cobra.Command

NewCoreDumpCommand return command that perform createdump on target process

func NewDumpCommand added in v0.6.0

func NewDumpCommand(commonOptions *CommonOptions) *cobra.Command

NewDumpCommand return command that perform dotnet-dump on target process

func NewDumperCommand added in v0.6.0

func NewDumperCommand() *cobra.Command

NewDumperCommand initialize Dumper command

func NewGCDumpCommand added in v0.6.0

func NewGCDumpCommand(commonOptions *CommonOptions) *cobra.Command

NewGCDumpCommand return command that perform dotnet-gcdump on target process

func NewTraceCommand added in v0.6.0

func NewTraceCommand(commonOptions *CommonOptions) *cobra.Command

NewTraceCommand return command that perform dotnet-trace on target process

Types

type CommandBuilder added in v0.6.0

type CommandBuilder struct {
	CommonOptions *CommonOptions
	// contains filtered or unexported fields
}

CommandBuilder represents logic for building and running tools

func NewCommandBuilder added in v0.6.0

func NewCommandBuilder(options *CommonOptions, factory flags.DotnetToolFactory) *CommandBuilder

NewCommandBuilder returns options with specified tool name

func (*CommandBuilder) Build added in v0.6.0

func (cb *CommandBuilder) Build() *cobra.Command

Build will build command *cobra.Command from options

type CommonOptions added in v0.6.0

type CommonOptions struct {
	ContainerID       string
	ContainerRuntime  string
	ContainerName     string
	PodName           string
	PodNamespace      string
	StoreOutputOnHost bool
}

CommonOptions represents container info

func (*CommonOptions) GetFlags added in v0.6.0

func (options *CommonOptions) GetFlags() *pflag.FlagSet

GetFlags return FlagSet that describes options for container selection

Jump to

Keyboard shortcuts

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