commands

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Overview

Copyright 2019 The Kubernetes Authors. SPDX-License-Identifier: Apache-2.0

Copyright 2019 The Kubernetes Authors. SPDX-License-Identifier: Apache-2.0

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CatCommand

func CatCommand(name string) *cobra.Command

func CountCommand

func CountCommand(name string) *cobra.Command

func GrepCommand

func GrepCommand(name string) *cobra.Command

func RunCommand added in v0.2.0

func RunCommand(name string) *cobra.Command

func TreeCommand

func TreeCommand(name string) *cobra.Command

Types

type CatRunner

type CatRunner struct {
	Format             bool
	KeepAnnotations    bool
	WrapKind           string
	WrapApiVersion     string
	FunctionConfig     string
	OutputDest         string
	Styles             []string
	StripComments      bool
	IncludeLocal       bool
	ExcludeNonLocal    bool
	Command            *cobra.Command
	RecurseSubPackages bool
}

CatRunner contains the run function

func GetCatRunner

func GetCatRunner(name string) *CatRunner

GetCatRunner returns a command CatRunner.

func (*CatRunner) ExecuteCmd added in v0.8.4

func (r *CatRunner) ExecuteCmd(w io.Writer, pkgPath string) error

type CountRunner

type CountRunner struct {
	IncludeSubpackages bool
	Kind               bool
	Command            *cobra.Command
	RecurseSubPackages bool
}

CountRunner contains the run function

func GetCountRunner

func GetCountRunner(name string) *CountRunner

func (*CountRunner) ExecuteCmd added in v0.8.4

func (r *CountRunner) ExecuteCmd(w io.Writer, pkgPath string) error

type GrepRunner

type GrepRunner struct {
	KeepAnnotations bool
	Command         *cobra.Command
	filters.GrepFilter
	Format             bool
	RecurseSubPackages bool
}

GrepRunner contains the run function

func GetGrepRunner

func GetGrepRunner(name string) *GrepRunner

Cmd returns a command GrepRunner.

func (*GrepRunner) ExecuteCmd added in v0.8.4

func (r *GrepRunner) ExecuteCmd(w io.Writer, pkgPath string) error

type RunFnRunner

type RunFnRunner struct {
	IncludeSubpackages bool
	Command            *cobra.Command
	DryRun             bool
	GlobalScope        bool
	FnPaths            []string
	Image              string
	StarPath           string
	StarURL            string
	StarName           string
	EnableExec         bool
	ExecPath           string
	RunFns             runfn.RunFns
	ResultsDir         string
	Network            bool
	Mounts             []string
	LogSteps           bool
	Env                []string
	AsCurrentUser      bool
}

RunFnRunner contains the run function

func GetRunFnRunner

func GetRunFnRunner(name string) *RunFnRunner

GetRunFnRunner returns a RunFnRunner.

type TreeRunner

type TreeRunner struct {
	Command *cobra.Command
	// contains filtered or unexported fields
}

TreeRunner contains the run function

func GetTreeRunner

func GetTreeRunner(name string) *TreeRunner

Directories

Path Synopsis
e2e
internal
k8sgen
All code below this directory is generated.
All code below this directory is generated.

Jump to

Keyboard shortcuts

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