kubernetes: k8s.io/kubernetes/pkg/kubectl/cmd/convert Index | Files

package convert

import "k8s.io/kubernetes/pkg/kubectl/cmd/convert"


Package Files

convert.go import_known_versions.go

func NewCmdConvert Uses

func NewCmdConvert(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command

NewCmdConvert creates a command object for the generic "convert" action, which translates the config file into a given version.

type ConvertOptions Uses

type ConvertOptions struct {
    PrintFlags *genericclioptions.PrintFlags
    Printer    printers.ResourcePrinter

    OutputVersion string
    Namespace     string

    // contains filtered or unexported fields

ConvertOptions have the data required to perform the convert operation

func NewConvertOptions Uses

func NewConvertOptions(ioStreams genericclioptions.IOStreams) *ConvertOptions

func (*ConvertOptions) Complete Uses

func (o *ConvertOptions) Complete(f cmdutil.Factory, cmd *cobra.Command) (err error)

Complete collects information required to run Convert command from command line.

func (*ConvertOptions) RunConvert Uses

func (o *ConvertOptions) RunConvert() error

RunConvert implements the generic Convert command

Package convert imports 37 packages (graph) and is imported by 13 packages. Updated 2021-01-12. Refresh now. Tools for package owners.