cmd

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2022 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

Types

type AllConnection added in v1.1.0

type AllConnection struct {
	DownloadTotal int           `json:"downloadTotal"`
	UploadTotal   int           `json:"uploadTotal"`
	Connections   []Connections `json:"connections"`
}

type CfwConfig added in v1.0.0

type CfwConfig struct {
	MixedPort          int    `yaml:"mixed-port"`
	AllowLan           bool   `yaml:"allow-lan"`
	ExternalController string `yaml:"external-controller"`
	Secret             string `yaml:"secret"`
	LogLevel           string `yaml:"log-level"`
}

type CfwList added in v1.0.0

type CfwList struct {
	Files []CfwListFile `yaml:"files"`
	Index int           `yaml:"index"`
}

type CfwListFile added in v1.0.0

type CfwListFile struct {
	URL      string          `yaml:"url"`
	Time     string          `yaml:"time"`
	Name     string          `yaml:"name"`
	Selected []CfwListSelect `yaml:"selected"`
	Mode     string          `yaml:"mode"`
}

type CfwListSelect added in v1.0.0

type CfwListSelect struct {
	Name string `yaml:"name"`
	Now  string `yaml:"now"`
}

type CfwProfile added in v1.0.0

type CfwProfile struct {
	RuleProviders map[string]CfwRuleProvider `yaml:"rule-providers"`
}

type CfwRuleProvider added in v1.0.0

type CfwRuleProvider struct {
	Type     string `yaml:"type"`
	Behavior string `yaml:"behavior"`
	Path     string `yaml:"path"`
}

type Connections added in v1.1.0

type Connections struct {
	ID          string    `json:"id"`
	Metadata    Metadata  `json:"metadata"`
	Upload      int       `json:"upload"`
	Download    int       `json:"download"`
	Start       time.Time `json:"start"`
	Chains      []string  `json:"chains"`
	Rule        string    `json:"rule"`
	RulePayload string    `json:"rulePayload"`
}

type Metadata added in v1.1.0

type Metadata struct {
	Network         string `json:"network"`
	Type            string `json:"type"`
	SourceIP        string `json:"sourceIP"`
	DestinationIP   string `json:"destinationIP"`
	SourcePort      string `json:"sourcePort"`
	DestinationPort string `json:"destinationPort"`
	Host            string `json:"host"`
	DNSMode         string `json:"dnsMode"`
}

Jump to

Keyboard shortcuts

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