cmd

package
v0.1.0-rc.1.0...-91c450c Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2021 License: MIT Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ImageName represents the default tracerunner image
	ImageName = "quay.io/iovisor/kubectl-trace-bpftrace"
	// ImageTag represents the tag to fetch for ImageName
	ImageTag = "latest"
	// InitImageName represents the default init container image
	InitImageName = "quay.io/iovisor/kubectl-trace-init"
	// InitImageTag represents the tag to fetch for InitImage
	InitImageTag = "latest"
	// DefaultDeadline is the maximum time a tracejob is allowed to run, in seconds
	DefaultDeadline = 3600
	// DefaultDeadlineGracePeriod is the maximum time to wait to print a map or histogram, in seconds
	// note that it must account for startup time, as the deadline as based on start time
	DefaultDeadlineGracePeriod = 30
)

Functions

func NewAttachCommand

func NewAttachCommand(factory cmdutil.Factory, streams genericclioptions.IOStreams) *cobra.Command

NewAttachCommand provides the attach command wrapping AttachOptions.

func NewDeleteCommand

func NewDeleteCommand(factory cmdutil.Factory, streams genericclioptions.IOStreams) *cobra.Command

NewDeleteCommand provides the delete command wrapping DeleteOptions.

func NewGetCommand

func NewGetCommand(factory cmdutil.Factory, streams genericclioptions.IOStreams) *cobra.Command

NewGetCommand provides the get command wrapping GetOptions.

func NewLogCommand

func NewLogCommand(factory cmdutil.Factory, streams genericclioptions.IOStreams) *cobra.Command

NewLogCommand provides the log command wrapping LogOptions.

func NewRunCommand

func NewRunCommand(factory cmdutil.Factory, streams genericclioptions.IOStreams) *cobra.Command

NewRunCommand provides the run command wrapping RunOptions.

func NewTraceCommand

func NewTraceCommand(streams genericclioptions.IOStreams) *cobra.Command

NewTraceCommand creates the trace command and its nested children.

func NewTraceRunnerCommand

func NewTraceRunnerCommand() *cobra.Command

func NewVersionCommand

func NewVersionCommand(streams genericclioptions.IOStreams) *cobra.Command

NewVersionCommand provides the version command.

Types

type AttachOptions

type AttachOptions struct {
	genericclioptions.IOStreams
	// contains filtered or unexported fields
}

AttachOptions ...

func NewAttachOptions

func NewAttachOptions(streams genericclioptions.IOStreams) *AttachOptions

NewAttachOptions provides an instance of AttachOptions with default values.

func (*AttachOptions) Complete

func (o *AttachOptions) Complete(factory cmdutil.Factory, cmd *cobra.Command, args []string) error

Complete completes the setup of the command.

func (*AttachOptions) Run

func (o *AttachOptions) Run() error

Run the attachement of options

func (*AttachOptions) Validate

func (o *AttachOptions) Validate(cmd *cobra.Command, args []string) error

Validate the options

type DeleteOptions

type DeleteOptions struct {
	genericclioptions.IOStreams
	ResourceBuilderFlags *genericclioptions.ResourceBuilderFlags
	// contains filtered or unexported fields
}

DeleteOptions ...

func NewDeleteOptions

func NewDeleteOptions(streams genericclioptions.IOStreams) *DeleteOptions

NewDeleteOptions provides an instance of DeleteOptions with default values.

func (*DeleteOptions) Complete

func (o *DeleteOptions) Complete(factory cmdutil.Factory, cmd *cobra.Command, args []string) error

Complete completes the setup of the command.

func (*DeleteOptions) Run

func (o *DeleteOptions) Run() error

func (*DeleteOptions) Validate

func (o *DeleteOptions) Validate(cmd *cobra.Command, args []string) error

Validate the delete

type GetOptions

type GetOptions struct {
	genericclioptions.IOStreams
	ResourceBuilderFlags *genericclioptions.ResourceBuilderFlags
	// contains filtered or unexported fields
}

GetOptions ...

func NewGetOptions

func NewGetOptions(streams genericclioptions.IOStreams) *GetOptions

NewGetOptions provides an instance of GetOptions with default values.

func (*GetOptions) Complete

func (o *GetOptions) Complete(factory cmdutil.Factory, cmd *cobra.Command, args []string) error

Complete completes the setup of the command.

func (*GetOptions) Run

func (o *GetOptions) Run() error

func (*GetOptions) Validate

func (o *GetOptions) Validate(cmd *cobra.Command, args []string) error

type LogOptions

type LogOptions struct {
	genericclioptions.IOStreams
	// contains filtered or unexported fields
}

LogOptions ...

func NewLogOptions

func NewLogOptions(streams genericclioptions.IOStreams) *LogOptions

NewLogOptions provides an instance of LogOptions with default values.

func (*LogOptions) Complete

func (o *LogOptions) Complete(factory cmdutil.Factory, cmd *cobra.Command, args []string) error

Complete completes the setup of the command.

func (*LogOptions) Run

func (o *LogOptions) Run() error

func (*LogOptions) Validate

func (o *LogOptions) Validate(cmd *cobra.Command, args []string) error

Validate validates the arguments and flags populating LogOptions accordingly.

type RunOptions

type RunOptions struct {
	genericclioptions.IOStreams
	// contains filtered or unexported fields
}

RunOptions ...

func NewRunOptions

func NewRunOptions(streams genericclioptions.IOStreams) *RunOptions

NewRunOptions provides an instance of RunOptions with default values.

func (*RunOptions) Complete

func (o *RunOptions) Complete(factory cmdutil.Factory, cmd *cobra.Command, args []string) error

Complete completes the setup of the command.

func (*RunOptions) Run

func (o *RunOptions) Run() error

Run executes the run command.

func (*RunOptions) Validate

func (o *RunOptions) Validate(cmd *cobra.Command, args []string) error

Validate validates the arguments and flags populating RunOptions accordingly.

type TraceOptions

type TraceOptions struct {
	genericclioptions.IOStreams
	// contains filtered or unexported fields
}

TraceOptions ...

func NewTraceOptions

func NewTraceOptions(streams genericclioptions.IOStreams) *TraceOptions

NewTraceOptions provides an instance of TraceOptions with default values.

type TraceRunnerOptions

type TraceRunnerOptions struct {
	// contains filtered or unexported fields
}

func NewTraceRunnerOptions

func NewTraceRunnerOptions() *TraceRunnerOptions

func (*TraceRunnerOptions) Complete

func (o *TraceRunnerOptions) Complete(cmd *cobra.Command, args []string) error

Complete completes the setup of the command.

func (*TraceRunnerOptions) Run

func (o *TraceRunnerOptions) Run() error

func (*TraceRunnerOptions) Validate

func (o *TraceRunnerOptions) Validate(cmd *cobra.Command, args []string) error

Jump to

Keyboard shortcuts

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