Documentation ¶
Index ¶
- func NewCmdSQL(streams genericclioptions.IOStreams) *cobra.Command
- type SQLConfig
- type SQLOptions
- func (o *SQLOptions) Complete(cmd *cobra.Command, args []string) error
- func (o *SQLOptions) CompleteGet(cmd *cobra.Command, args []string) error
- func (o *SQLOptions) CompleteJoin(cmd *cobra.Command, args []string) error
- func (o *SQLOptions) Get(config *rest.Config) error
- func (o *SQLOptions) Join(config *rest.Config) error
- func (o *SQLOptions) Printer(items []unstructured.Unstructured) error
- func (o *SQLOptions) Validate() error
- func (o *SQLOptions) Version(config *rest.Config) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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) 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