Documentation
¶
Overview ¶
Package fms encapsulates all the various parts of the Field Managent System, its associated configuration logic, and the APIs that talk to other systems.
Index ¶
Constants ¶
const ( // AutomationUser is created on remote systems to allow the // FMS to manage them programattically. AutomationUser = "gizmo-fms" // ViewOnlyUser is created on remote systems to enable // debugging and generally make it possible to get into // systems. ViewOnlyUser = "gizmo-ro" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // Teams contains the information needed to generate // configuration for all teams. Teams map[int]*Team // Fields contains a list of fields that are configured and // managed by the system. Fields map[int]*Field // FMSMac is the mac address of the FMS itself so that it can // have a pinned address FMSMac string AutoUser string AutoPass string ViewUser string ViewPass string // This is the actual "admin" user in RouterOS. Generally // nobody should be logged in as this, but its here anyway so // its a known value. AdminPass string InfrastructureVisible bool InfrastructureSSID string InfrastructurePSK string }
Config contains all the data that's necessary to setup the FMS and manage the network behind it.
func WizardChangeChannels ¶ added in v0.1.4
WizardChangeChannels is used to reconfigure the channels each field is assigned to. This function duplicates some of the config in the field configuration step, but this is to avoid any possibility of creating or destroying a field.
func WizardChangeRoster ¶ added in v0.1.0
WizardChangeRoster is used to change the roster in an FMS Config that already exists. Teams will be loaded then reconciled. Existing teams can have name updated, but wireless parameters will not be changed.
func WizardSurvey ¶
WizardSurvey runs a step by step config workflow to gather all the information required to generate the software configuration for the FMS.
type ConfigureStep ¶ added in v0.1.0
type ConfigureStep func() error
A ConfigureStep performa various changes to the system to configure it.
type SetupTool ¶ added in v0.1.0
type SetupTool struct {
// contains filtered or unexported fields
}
SetupTool does a lot of setup things for the FMS that are not something normal users would need to run.
func NewSetupTool ¶ added in v0.1.0
func NewSetupTool(l hclog.Logger) *SetupTool
NewSetupTool sets up a logger for the setup tool.
func (*SetupTool) Configure ¶ added in v0.1.0
Configure calls all the configure steps to configure the FMS workstation.