Documentation ¶
Index ¶
- Variables
- func NewAttachCommand(factory cmdutil.Factory, streams genericclioptions.IOStreams) *cobra.Command
- func NewDeleteCommand(factory cmdutil.Factory, streams genericclioptions.IOStreams) *cobra.Command
- func NewGetCommand(factory cmdutil.Factory, streams genericclioptions.IOStreams) *cobra.Command
- func NewLogCommand(factory cmdutil.Factory, streams genericclioptions.IOStreams) *cobra.Command
- func NewRunCommand(factory cmdutil.Factory, streams genericclioptions.IOStreams) *cobra.Command
- func NewTraceCommand(streams genericclioptions.IOStreams) *cobra.Command
- func NewTraceRunnerCommand() *cobra.Command
- func NewVersionCommand(streams genericclioptions.IOStreams) *cobra.Command
- type AttachOptions
- type DeleteOptions
- type GetOptions
- type LogOptions
- type RunOptions
- type TraceOptions
- type TraceRunnerOptions
Constants ¶
This section is empty.
Variables ¶
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 ¶
NewAttachCommand provides the attach command wrapping AttachOptions.
func NewDeleteCommand ¶
NewDeleteCommand provides the delete command wrapping DeleteOptions.
func NewGetCommand ¶
NewGetCommand provides the get command wrapping GetOptions.
func NewLogCommand ¶
NewLogCommand provides the log command wrapping LogOptions.
func NewRunCommand ¶
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 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.
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) Run ¶
func (o *DeleteOptions) Run() error
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) Run ¶
func (o *GetOptions) Run() 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) Run ¶
func (o *LogOptions) Run() error
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.
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