options

package
v4.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package options defines options which user can input

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FlagsOptions

type FlagsOptions struct {
	// contains filtered or unexported fields
}

FlagsOptions is used for processing flags which user input

func NewFlagsOptions

func NewFlagsOptions(cmd *cobra.Command) *FlagsOptions

NewFlagsOptions Construct a FlagsOptions instance that requires a cmd as a parameter

func (*FlagsOptions) WithAllNodes

func (b *FlagsOptions) WithAllNodes() *FlagsOptions

WithAllNodes This function will add isAllNodes

func (*FlagsOptions) WithBackend

func (b *FlagsOptions) WithBackend(required bool) *FlagsOptions

WithBackend This function will add a backend flag If required is true, filename flag must be set

func (*FlagsOptions) WithDeleteAll

func (b *FlagsOptions) WithDeleteAll() *FlagsOptions

WithDeleteAll this function will add a deleted all options

func (*FlagsOptions) WithFilename

func (b *FlagsOptions) WithFilename(required bool) *FlagsOptions

WithFilename This function will add a filename flag If required is true, filename flag must be set

func (*FlagsOptions) WithInputFileType

func (b *FlagsOptions) WithInputFileType() *FlagsOptions

WithInputFileType This function will add filetype

func (*FlagsOptions) WithLogDir

func (b *FlagsOptions) WithLogDir() *FlagsOptions

WithLogDir This function will add log-dir

func (*FlagsOptions) WithMaxThreads

func (b *FlagsOptions) WithMaxThreads() *FlagsOptions

WithMaxThreads This function will add max node threads num

func (*FlagsOptions) WithNameSpace

func (b *FlagsOptions) WithNameSpace(required bool) *FlagsOptions

WithNameSpace This function will add a namespace flag If required is true, namespace flag must be set

func (*FlagsOptions) WithNodeName

func (b *FlagsOptions) WithNodeName() *FlagsOptions

WithNodeName This function will add nodeName

func (*FlagsOptions) WithNotValidateName

func (b *FlagsOptions) WithNotValidateName() *FlagsOptions

WithNotValidateName This function will add notValidateName

func (*FlagsOptions) WithOutPutFormat

func (b *FlagsOptions) WithOutPutFormat() *FlagsOptions

WithOutPutFormat this function will add an output format flag

func (*FlagsOptions) WithParent

func (b *FlagsOptions) WithParent(parentCmd *cobra.Command)

WithParent This function will add a parent command

func (*FlagsOptions) WithPassword

func (b *FlagsOptions) WithPassword(required bool) *FlagsOptions

WithPassword this function will add a change password options

func (*FlagsOptions) WithProvisioner

func (b *FlagsOptions) WithProvisioner() *FlagsOptions

WithProvisioner This function will add provisioner

Jump to

Keyboard shortcuts

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