set

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package set used to set specific features on objects.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdDB

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

NewCmdDB returns new initialized instance of 'db' sub command.

func NewCmdSet

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

NewCmdSet returns an initialized Command instance for 'set' sub command.

Types

type DBOptions

type DBOptions struct {
	Database string

	genericclioptions.IOStreams
	// contains filtered or unexported fields
}

DBOptions is an options struct to support 'db' sub command.

func NewDBOptions

func NewDBOptions(ioStreams genericclioptions.IOStreams) *DBOptions

NewDBOptions returns an initialized DBOptions instance.

func (*DBOptions) Complete

func (o *DBOptions) Complete() error

Complete completes all the required options.

func (*DBOptions) Run

func (o *DBOptions) Run() error

Run executes a db sub command using the specified options.

func (*DBOptions) Validate

func (o *DBOptions) Validate() error

Validate makes sure there is no discrepency in command options.

Jump to

Keyboard shortcuts

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