config

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UsernameFlagName = "username"
	PasswordFlagName = "password"
)
View Source
const (
	ControllersFlagName         = "controllers"
	AllowInsecureAccessFlagName = "insecure"
	PrintFormatFlagName         = "format"
	TimeoutFlagName             = "timeout"
	RadioFlagName               = "radio"
	SSIDFlagName                = "ssid"
	SortByFlagName              = "sort-by"
	SortOrderFlagName           = "sort-order"
	APNameFlagName              = "ap-name"
	PrintFormatJSON             = "json"
	PrintFormatTable            = "table"
	OrderByAscending            = "asc"
	OrderByDescending           = "desc"
	RadioSlotNumSlot0ID         = 0
	RadioSlotNumSlot1ID         = 1
	RadioSlotNumSlot2ID         = 2
)
View Source
const (
	OverviewHeaderApMac              = "APMac"
	OverviewHeaderApRadioID          = "Radio"
	OverviewHeaderApOperStatus       = "Status"
	OverviewHeaderChannelNumber      = "Channel"
	OverviewHeaderChannelUtilization = "ChannelUtilization"
	OverviewHeaderClientCount        = "ClientCount"
	OverviewHeaderRFTagName          = "RFTagName"
	OverviewHeaderTxPower            = "TxPower"
	ShowClientHeaderBand             = "Band"
	ShowClientHeaderHostname         = "Hostname"
	ShowClientHeaderIP               = "IPAddress"
	ShowClientHeaderMacAddress       = "MACAddress"
	ShowClientHeaderProtocol         = "Protocol"
	ShowClientHeaderRSSI             = "RSSI"
	ShowClientHeaderRxTraffic        = "RxTraffic"
	ShowClientHeaderSNR              = "SNR"
	ShowClientHeaderSSID             = "SSID"
	ShowClientHeaderState            = "State"
	ShowClientHeaderStream           = "Stream"
	ShowClientHeaderThroughput       = "Throughput"
	ShowClientHeaderTxTraffic        = "TxTraffic"
	ShowClientHeaderUsername         = "Username"
	ShowCommonHeaderApName           = "APName"
	ShowCommonHeaderController       = "Controller"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	GenerateCmdConfig GenerateCmdConfig
	ShowCmdConfig     ShowCmdConfig
}

func New

func New() Config

func (*Config) SetGenerateCmdConfig

func (c *Config) SetGenerateCmdConfig(cli *cli.Command)

SetGenerateCmdConfig initializes the configuration

func (*Config) SetShowCmdConfig

func (c *Config) SetShowCmdConfig(cli *cli.Command)

SetShowCmdConfig initializes the configuration

type Controller

type Controller struct {
	Hostname    string
	AccessToken string
}

type GenerateCmdConfig

type GenerateCmdConfig struct {
	Username string
	Password string
}

GenerateCmdConfig holds generate command configuration

type ShowCmdConfig

type ShowCmdConfig struct {
	Controllers         []Controller
	AllowInsecureAccess bool
	PrintFormat         string
	Timeout             int
	APName              string
	Radio               string
	SSID                string
	SortBy              string
	SortOrder           string
}

ShowCmdConfig holds show command configuration

Jump to

Keyboard shortcuts

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