Documentation ¶
Overview ¶
Package options defines options which user can input
Index ¶
- type FlagsOptions
- func (b *FlagsOptions) WithAllNodes() *FlagsOptions
- func (b *FlagsOptions) WithBackend(required bool) *FlagsOptions
- func (b *FlagsOptions) WithDeleteAll() *FlagsOptions
- func (b *FlagsOptions) WithFilename(required bool) *FlagsOptions
- func (b *FlagsOptions) WithInputFileType() *FlagsOptions
- func (b *FlagsOptions) WithLogDir() *FlagsOptions
- func (b *FlagsOptions) WithMaxThreads() *FlagsOptions
- func (b *FlagsOptions) WithNameSpace(required bool) *FlagsOptions
- func (b *FlagsOptions) WithNodeName() *FlagsOptions
- func (b *FlagsOptions) WithNotValidateName() *FlagsOptions
- func (b *FlagsOptions) WithOutPutFormat() *FlagsOptions
- func (b *FlagsOptions) WithParent(parentCmd *cobra.Command)
- func (b *FlagsOptions) WithPassword(required bool) *FlagsOptions
- func (b *FlagsOptions) WithProvisioner() *FlagsOptions
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