service

package
v1.1.17 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Firewalld = "firewalld"
	UFW       = "ufw"
	IPTables  = "iptables"
)

支持的防火墙工具类型

Variables

This section is empty.

Functions

func NewFirewallService

func NewFirewallService() *firewallService

func RunCommand

func RunCommand(command string) (string, error)

RunCommand 执行命令并返回输出

Types

type FirewallToolType

type FirewallToolType string

FirewallToolType 表示不同的防火墙工具类型

Jump to

Keyboard shortcuts

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