vent.menus package

Submodules

vent.menus.add module

class vent.menus.add.AddForm(name=None, parentApp=None, framed=None, help=None, color='FORMDEFAULT', widget_list=None, cycle_widgets=False, *args, **keywords)[source]

Bases: npyscreen.fmActionForm.ActionForm

For for adding a new repo

create()[source]

Create widgets for AddForm

default_repo = 'https://github.com/cyberreboot/vent-plugins'
on_cancel()[source]

When user clicks cancel, will return to MAIN

on_ok()[source]

Add the repository

quit(*args, **kwargs)[source]

Overridden to switch back to MAIN form

vent.menus.add_options module

class vent.menus.add_options.AddOptionsForm(name=None, parentApp=None, framed=None, help=None, color='FORMDEFAULT', widget_list=None, cycle_widgets=False, *args, **keywords)[source]

Bases: npyscreen.fmActionForm.ActionForm

For specifying options when adding a repo

branch_cb = {}
branches = []
build_tc = {}
commit_tc = {}
commits = {}
create()[source]

Update with current branches and commits

error = None
on_cancel()[source]
on_ok()[source]

Take the branch, commit, and build selection and add them as plugins

quit(*args, **kwargs)[source]
repo_values()[source]

Set the appropriate repo dir and get the branches and commits of it

vent.menus.backup module

class vent.menus.backup.BackupForm(*args, **keywords)[source]

Bases: npyscreen.fmActionForm.ActionForm

Form that can be used to select a backup file to restore

create()[source]

Add backup files to select from

on_cancel()[source]

When user clicks cancel, will return to MAIN

on_ok()[source]

Perform restoration on the backup file selected

quit(*args, **kwargs)[source]

vent.menus.choose_tools module

class vent.menus.choose_tools.ChooseToolsForm(name=None, parentApp=None, framed=None, help=None, color='FORMDEFAULT', widget_list=None, cycle_widgets=False, *args, **keywords)[source]

Bases: npyscreen.fmActionForm.ActionForm

For picking which tools to add

create()[source]

Update with current tools for each branch at the version chosen

on_cancel()[source]
on_ok()[source]

Take the tool selections and add them as plugins

quit(*args, **kwargs)[source]
repo_tools(branch)[source]

Set the appropriate repo dir and get the tools available of it

tools_tc = {}

vent.menus.del_instances module

class vent.menus.del_instances.DeleteForm(*args, **keywords)[source]

Bases: npyscreen.fmActionForm.ActionForm

A form for selecting instances to delete and deleting them

change_screens()[source]

Change to the next tool to edit or back to MAIN form

create()[source]

Creates the necessary display for this form

on_cancel()[source]

Exits the form without performing any action

on_ok()[source]

Delete the instances that the user chose to delete

quit(*args, **kargs)[source]

Quit without making any changes to the tool

class vent.menus.del_instances.InstanceSelect(*args, **kargs)[source]

Bases: npyscreen.wgmultiselect.MultiSelect

A widget class for selecting an exact amount of instances to perform actions on

safe_to_exit(*args, **kargs)[source]

Overrided to prevent user from exiting selection until they have selected the right amount of instances

when_value_edited(*args, **kargs)[source]

Overrided to prevent user from selecting too many instances

vent.menus.editor module

class vent.menus.editor.EditorForm(repo='', tool_name='', branch='', version='', next_tool=None, just_downloaded=False, vent_cfg=False, from_registry=False, new_instance=False, *args, **keywords)[source]

Bases: npyscreen.fmActionForm.ActionForm

Form that can be used as a pseudo text editor in npyscreen

change_screens()[source]

Change to the next tool to edit or back to MAIN form

create()[source]

Create multi-line widget for editing

on_cancel()[source]

Don’t save changes made to vent.template

on_ok()[source]

Save changes made to vent.template

static valid_input(val)[source]

Ensure the input the user gave is of a valid format

vent.menus.help module

class vent.menus.help.HelpForm(*args, **keywords)[source]

Bases: npyscreen.fmFormWithMenus.ActionFormWithMenus

Help form for the Vent CLI

change_forms(*args, **keywords)[source]

Checks which form is currently displayed and toggles to the other one

create()[source]

Override method for creating FormBaseNew form

exit(*args, **keywords)[source]
on_cancel()[source]
on_ok()[source]
static switch(page)[source]

vent.menus.inventory module

class vent.menus.inventory.InventoryForm(action=None, logger=None, *args, **keywords)[source]

Bases: npyscreen.fmForm.FormBaseNew

Inventory form for the Vent CLI

create()[source]

Override method for creating FormBaseNew form

quit(*args, **kwargs)[source]

Overridden to switch back to MAIN form

toggle_view(*args, **kwargs)[source]

vent.menus.inventory_forms module

class vent.menus.inventory_forms.BaseInventoryForm(action_dict=None, action_name=None, *args, **keywords)[source]

Bases: vent.menus.inventory.InventoryForm

Base form to inherit from

class vent.menus.inventory_forms.InventoryCoreToolsForm(*args, **keywords)[source]

Bases: vent.menus.inventory_forms.BaseInventoryForm

Inventory Core Tools form for the Vent CLI

class vent.menus.inventory_forms.InventoryToolsForm(*args, **keywords)[source]

Bases: vent.menus.inventory_forms.BaseInventoryForm

Inventory Tools form for the Vent CLI

vent.menus.logs module

class vent.menus.logs.LogsForm(name=None, parentApp=None, framed=None, help=None, color='FORMDEFAULT', widget_list=None, cycle_widgets=False, *args, **keywords)[source]

Bases: npyscreen.fmForm.FormBaseNew

Logs form for the Vent CLI

create()[source]

Override method for creating FormBaseNew form

quit(*args, **kwargs)[source]

Overridden to switch back to MAIN form

vent.menus.main module

class vent.menus.main.MainForm(*args, **keywords)[source]

Bases: npyscreen.fmFormWithMenus.FormBaseNewWithMenus

Main information landing form for the Vent CLI

add_form(form, form_name, form_args)[source]

Add new form and switch to it

static core_tools(action)[source]

Perform actions for core tools

create()[source]

Override method for creating FormBaseNewWithMenu form

static exit(*args, **kwargs)[source]
help_form(*args, **keywords)[source]

Toggles to help

perform_action(action)[source]

Perform actions in the api from the CLI

remove_forms(form_names)[source]

Remove all forms supplied

switch_tutorial(action)[source]

Tutorial forms

system_commands(action)[source]

Perform system commands

static t_status(core)[source]

Get status of tools for either plugins or core

while_waiting()[source]

Update fields periodically if nothing is happening

vent.menus.ntap module

class vent.menus.ntap.ActionNTap(n_action=None, *args, **kwargs)[source]

Bases: npyscreen.fmActionForm.ActionForm

Base class to inherit from.

create()[source]

Programmers should over-ride this in derived classes, creating widgets here

on_cancel()[source]

When user cancels, return to MAIN

on_ok()[source]
quit(*args, **kwargs)[source]

Overriden to switch back to MAIN form

class vent.menus.ntap.CreateNTap(name=None, parentApp=None, framed=None, help=None, color='FORMDEFAULT', widget_list=None, cycle_widgets=False, *args, **keywords)[source]

Bases: npyscreen.fmActionForm.ActionForm

For creating a new network tap container

create()[source]

Programmers should over-ride this in derived classes, creating widgets here

on_cancel()[source]

When user cancels, return to MAIN

on_ok()[source]
quit(*args, **kwargs)[source]

Overriden to switch back to MAIN form

class vent.menus.ntap.DeleteNTap(*args, **kwargs)[source]

Bases: vent.menus.ntap.ActionNTap

Delete inheritance

class vent.menus.ntap.ListNTap(name=None, parentApp=None, framed=None, help=None, color='FORMDEFAULT', widget_list=None, cycle_widgets=False, *args, **keywords)[source]

Bases: npyscreen.fmActionForm.ActionForm

For listing all network tap capture containers

create()[source]

Programmers should over-ride this in derived classes, creating widgets here

on_cancel()[source]

When user cancels, return to MAIN

on_ok()[source]
quit(*args, **kwargs)[source]

Overriden to switch back to MAIN form

class vent.menus.ntap.NICsNTap(name=None, parentApp=None, framed=None, help=None, color='FORMDEFAULT', widget_list=None, cycle_widgets=False, *args, **keywords)[source]

Bases: npyscreen.fmActionForm.ActionForm

For listing all available network interfaces

create()[source]

Programmers should over-ride this in derived classes, creating widgets here

on_cancel()[source]

When user cancels, return to MAIN

on_ok()[source]
quit(*args, **kwargs)[source]

Overriden to switch back to MAIN form

class vent.menus.ntap.StartNTap(*args, **kwargs)[source]

Bases: vent.menus.ntap.ActionNTap

Delete inheritance

class vent.menus.ntap.StopNTap(*args, **kwargs)[source]

Bases: vent.menus.ntap.ActionNTap

Delete inheritance

vent.menus.services module

class vent.menus.services.ServicesForm(*args, **keywords)[source]

Bases: npyscreen.fmForm.FormBaseNew

Services form for the Vent CLI

create()[source]

Override method for creating FormBaseNew form

quit(*args, **kwargs)[source]

Overridden to switch back to MAIN form

vent.menus.tools module

class vent.menus.tools.ToolForm(*args, **keywords)[source]

Bases: npyscreen.fmActionForm.ActionForm

Tools form for the Vent CLI

create(group_view=False)[source]

Update with current tools

on_cancel()[source]

When user clicks cancel, will return to MAIN

on_ok()[source]

Take the tool selections and perform the provided action on them

quit(*args, **kwargs)[source]

Overridden to switch back to MAIN form

toggle_view(*args, **kwargs)[source]

Toggles the view between different groups

vent.menus.tutorial_forms module

class vent.menus.tutorial_forms.TutorialAddingFilesForm(*args, **keywords)[source]

Bases: vent.menus.tutorials.TutorialForm

Tutorial Adding Files form for the Vent CLI

class vent.menus.tutorial_forms.TutorialAddingPluginsForm(*args, **keywords)[source]

Bases: vent.menus.tutorials.TutorialForm

Tutorial Adding Plugins form for the Vent CLI

class vent.menus.tutorial_forms.TutorialBackgroundForm(*args, **keywords)[source]

Bases: vent.menus.tutorials.TutorialForm

Tutorial Background form for the Vent CLI

class vent.menus.tutorial_forms.TutorialBuildingCoresForm(*args, **keywords)[source]

Bases: vent.menus.tutorials.TutorialForm

Tutorial Building Cores form for the Vent CLI

class vent.menus.tutorial_forms.TutorialGettingSetupForm(*args, **keywords)[source]

Bases: vent.menus.tutorials.TutorialForm

Tutorial Getting Setup form for the Vent CLI

class vent.menus.tutorial_forms.TutorialIntroForm(*args, **keywords)[source]

Bases: vent.menus.tutorials.TutorialForm

Tutorial introduction landing form for the Vent CLI

class vent.menus.tutorial_forms.TutorialStartingCoresForm(*args, **keywords)[source]

Bases: vent.menus.tutorials.TutorialForm

Tutorial Starting Cores form for the Vent CLI

class vent.menus.tutorial_forms.TutorialTerminologyForm(*args, **keywords)[source]

Bases: vent.menus.tutorials.TutorialForm

Tutorial terminology form for the Vent CLI

class vent.menus.tutorial_forms.TutorialTroubleshootingForm(*args, **keywords)[source]

Bases: vent.menus.tutorials.TutorialForm

Tutorial troubleshooting form for the Vent CLI

vent.menus.tutorials module

class vent.menus.tutorials.TutorialForm(title='', text='', next_tutorial='', *args, **keywords)[source]

Bases: npyscreen.fmFormWithMenus.ActionFormWithMenus

Tutorial form for the Vent CLI

create()[source]

Overridden to add handlers and content

on_cancel()[source]

When user clicks cancel, will return to MAIN

on_ok()[source]

When user clicks ok, will proceed to next tutorial

quit(*args, **kwargs)[source]

Overridden to switch back to MAIN form

switch(name)[source]

Wrapper that switches to provided form

Module contents