{"modulePath":"github.phpd.cn/openshift/origin","version":"v4.1.0+incompatible","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package debug\n\n## Functions\n\n```go\nfunc NewCmdDebug(fullName string, f kcmdutil.Factory, streams genericclioptions.IOStreams) *cobra.Command\n```\nNewCmdDebug creates a command for debugging pods.\n\n## Types\n\n```go\ntype DebugOptions struct {\n\tPrintFlags *genericclioptions.PrintFlags\n\n\tAttach attach.AttachOptions\n\n\tCoreClient  corev1client.CoreV1Interface\n\tAppsClient  appsv1client.AppsV1Interface\n\tImageClient imagev1client.ImageV1Interface\n\n\tPrinter          printers.ResourcePrinter\n\tLogsForObject    polymorphichelpers.LogsForObjectFunc\n\tRESTClientGetter genericclioptions.RESTClientGetter\n\n\tNoStdin    bool\n\tForceTTY   bool\n\tDisableTTY bool\n\tTimeout    time.Duration\n\n\tCommand            []string\n\tAnnotations        map[string]string\n\tAsRoot             bool\n\tAsNonRoot          bool\n\tAsUser             int64\n\tKeepLabels         bool // TODO: evaluate selecting the right labels automatically\n\tKeepAnnotations    bool\n\tKeepLiveness       bool\n\tKeepReadiness      bool\n\tKeepInitContainers bool\n\tOneContainer       bool\n\tNodeName           string\n\tAddEnv             []corev1.EnvVar\n\tRemoveEnv          []string\n\tResources          []string\n\tBuilder            func() *resource.Builder\n\tNamespace          string\n\tExplicitNamespace  bool\n\tDryRun             bool\n\tFullCmdName        string\n\tImage              string\n\n\t// IsNode is set after we see the object we're debugging.  We use it to be able to print pertinent advice.\n\tIsNode bool\n\n\tresource.FilenameOptions\n\tgenericclioptions.IOStreams\n}\n```\n\n```go\nfunc NewDebugOptions(streams genericclioptions.IOStreams) *DebugOptions\n```\n\n```go\nfunc (o *DebugOptions) Complete(cmd *cobra.Command, f kcmdutil.Factory, args []string) error\n```\n\n```go\nfunc (o *DebugOptions) RunDebug() error\n```\nDebug creates and runs a debugging pod.\n\n```go\nfunc (o DebugOptions) Validate() error\n```\n\n","path":"github.phpd.cn/openshift/origin/pkg/oc/cli/debug","name":"debug","synopsis":"","isRedistributable":true}
