cmd

package
v0.2.11 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdSQL

func NewCmdSQL(streams genericclioptions.IOStreams) *cobra.Command

NewCmdSQL provides a cobra command wrapping SQLOptions

Types

type SQLConfig

type SQLConfig struct {
	Aliases     map[string]string       `json:"aliases"`
	TableFields printers.TableFieldsMap `json:"table-fields"`
}

SQLConfig describes configuration overides for SQL queries.

func NewSQLConfig

func NewSQLConfig() *SQLConfig

NewSQLConfig provides an instance of SQLConfig with default values

type SQLOptions

type SQLOptions struct {
	genericclioptions.IOStreams
	// contains filtered or unexported fields
}

SQLOptions provides information required to update the current context on a user's KUBECONFIG

func NewSQLOptions

func NewSQLOptions(streams genericclioptions.IOStreams) *SQLOptions

NewSQLOptions provides an instance of SQLOptions with default values

func (*SQLOptions) Complete

func (o *SQLOptions) Complete(cmd *cobra.Command, args []string) error

Complete sets all information required for updating the current context

func (*SQLOptions) CompleteGet

func (o *SQLOptions) CompleteGet(cmd *cobra.Command, args []string) error

CompleteGet sets all information required for updating the current context for get sub command.

func (*SQLOptions) CompleteJoin

func (o *SQLOptions) CompleteJoin(cmd *cobra.Command, args []string) error

CompleteJoin sets all information required for updating the current context for join sub command.

func (*SQLOptions) Get

func (o *SQLOptions) Get(config *rest.Config) error

Get the resource list.

func (*SQLOptions) Join

func (o *SQLOptions) Join(config *rest.Config) error

Join two resource list.

func (*SQLOptions) Printer

func (o *SQLOptions) Printer(items []unstructured.Unstructured) error

Printer printout a list of items.

func (*SQLOptions) Validate

func (o *SQLOptions) Validate() error

Validate ensures that all required arguments and flag values are provided

func (*SQLOptions) Version

func (o *SQLOptions) Version(config *rest.Config) error

Version prints the plugin version.

Jump to

Keyboard shortcuts

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