cli: Index | Files | Directories

package cmds

import ""


Package Files

apiresources.go delete.go delete_flags.go describe.go edit.go root.go

func NewCmdApiResources Uses

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

func NewCmdDelete Uses

func NewCmdDelete(f cmdutil.Factory, streams genericclioptions.IOStreams) *cobra.Command

func NewCmdDescribe Uses

func NewCmdDescribe(parent string, f cmdutil.Factory, streams genericclioptions.IOStreams) *cobra.Command

func NewCmdEdit Uses

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

func NewKubeDBCommand Uses

func NewKubeDBCommand(in io.Reader, out, err io.Writer) *cobra.Command

NewKubeDBCommand creates the `kubedb` command and its nested children.

type ApiResourcesOptions Uses

type ApiResourcesOptions struct {
    Output     string
    Namespaced bool
    Verbs      []string
    NoHeaders  bool
    Cached     bool


ApiResourcesOptions is the start of the data required to perform the operation. As new fields are added, add them here instead of referencing the cmd.Flags()

func NewAPIResourceOptions Uses

func NewAPIResourceOptions(ioStreams genericclioptions.IOStreams) *ApiResourcesOptions

func (*ApiResourcesOptions) RunApiResources Uses

func (o *ApiResourcesOptions) RunApiResources(cmd *cobra.Command, f cmdutil.Factory) error

func (*ApiResourcesOptions) Validate Uses

func (o *ApiResourcesOptions) Validate(cmd *cobra.Command) error

type DeleteFlags Uses

type DeleteFlags struct {
    FileNameFlags *genericclioptions.FileNameFlags
    LabelSelector *string
    FieldSelector *string

    All            *bool
    Cascade        *bool
    Force          *bool
    GracePeriod    *int
    IgnoreNotFound *bool
    Now            *bool
    Timeout        *time.Duration
    Wait           *bool
    Output         *string

PrintFlags composes common printer flag structs used for commands requiring deletion logic.

func NewDeleteCommandFlags Uses

func NewDeleteCommandFlags(usage string) *DeleteFlags

NewDeleteCommandFlags provides default flags and values for use with the "delete" command

func NewDeleteFlags Uses

func NewDeleteFlags(usage string) *DeleteFlags

NewDeleteFlags provides default flags and values for use in commands outside of "delete"

func (*DeleteFlags) AddFlags Uses

func (f *DeleteFlags) AddFlags(cmd *cobra.Command)

func (*DeleteFlags) ToOptions Uses

func (f *DeleteFlags) ToOptions(dynamicClient dynamic.Interface, streams genericclioptions.IOStreams) *DeleteOptions

type DeleteOptions Uses

type DeleteOptions struct {

    LabelSelector   string
    FieldSelector   string
    DeleteAll       bool
    IgnoreNotFound  bool
    Cascade         bool
    DeleteNow       bool
    ForceDeletion   bool
    WaitForDeletion bool

    GracePeriod int
    Timeout     time.Duration

    Output string

    DynamicClient dynamic.Interface
    Mapper        meta.RESTMapper
    Result        *resource.Result


func (*DeleteOptions) Complete Uses

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

func (*DeleteOptions) DeleteResult Uses

func (o *DeleteOptions) DeleteResult(r *resource.Result) error

func (*DeleteOptions) PrintObj Uses

func (o *DeleteOptions) PrintObj(info *resource.Info)

deletion printing is special because we do not have an object to print. This mirrors name printer behavior

func (*DeleteOptions) RunDelete Uses

func (o *DeleteOptions) RunDelete() error

func (*DeleteOptions) Validate Uses

func (o *DeleteOptions) Validate(cmd *cobra.Command) error

type DescribeOptions Uses

type DescribeOptions struct {
    CmdParent string
    Selector  string
    Namespace string

    Describer  func(*meta.RESTMapping) (describe.Describer, error)
    NewBuilder func() *resource.Builder

    BuilderArgs []string

    EnforceNamespace bool
    AllNamespaces    bool

    DescriberSettings *describe.DescriberSettings
    FilenameOptions   *resource.FilenameOptions


func (*DescribeOptions) Complete Uses

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

func (*DescribeOptions) DescribeMatchingResources Uses

func (o *DescribeOptions) DescribeMatchingResources(originalError error, resource, prefix string) error

func (*DescribeOptions) Run Uses

func (o *DescribeOptions) Run() error

func (*DescribeOptions) Validate Uses

func (o *DescribeOptions) Validate(args []string) error



Package cmds imports 33 packages (graph). Updated 2019-08-05. Refresh now. Tools for package owners.