menu

package
v0.0.0-...-23b4524 Latest Latest
Warning

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

Go to latest
Published: May 16, 2018 License: GPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFolder

func GetFolder() string

GetFolder gets the path to a user supplied folder, used for exporting a number of files to (for instance, report .xml files, .nessus scan results, etc).

func GetInput

func GetInput(msg string) string

GetInput gets a user-supplied string using the supplied parameter msg as a prompting message.

func GetRepo

func GetRepo(c *cli.Context) (string, error)

GetRepo fetches a list of all the repositories in the system and displays them as a choose list for batch importing various objects which require a user-selected repository.

func GetSelection

func GetSelection(def ...string) string

GetSelection gets a user-supplied selection used for traversing menus with the supplied default parameter used if no input is given.

func GetWriter

func GetWriter(c *cli.Context) *csv.Writer

GetWriter gets a csv.Writer for a CSV file specified by the user, used for determining where to write exported records to.

Types

type Export

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

Export menu

func (Export) Process

func (x Export) Process(c *cli.Context, selection string)

Process the selection chosen from the Export menu

func (Export) Start

func (x Export) Start(c *cli.Context)

Start the interactive Export menu

func (Export) String

func (x Export) String() string

type Import

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

Import menu

func (*Import) Process

func (i *Import) Process(c *cli.Context, selection string)

Process the selection made from the Import menu

func (*Import) Start

func (i *Import) Start(c *cli.Context)

Start the interactive Import menu

func (Import) String

func (i Import) String() string

type Main

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

Main menu

func (Main) Process

func (m Main) Process(c *cli.Context, selection string)

Process the selection made from the Main menu

func (Main) Start

func (m Main) Start(c *cli.Context)

Start the interactive Main menu

func (Main) String

func (m Main) String() string

type Report

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

Report menu

func (Report) Process

func (r Report) Process(c *cli.Context, selection string)

Process the selection chosen from the Report menu

func (Report) Start

func (r Report) Start(c *cli.Context)

Start the interactive Report menu

func (Report) String

func (r Report) String() string

type Scans

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

Scans menu

func (Scans) Process

func (r Scans) Process(c *cli.Context, selection string)

Process the selection chosen from the Report menu

func (Scans) Start

func (r Scans) Start(c *cli.Context)

Start the interactive Results menu

func (Scans) String

func (r Scans) String() string

Jump to

Keyboard shortcuts

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