Documentation
¶
Index ¶
- Variables
- func AddHosts(ip string, hosts []string, comment string)
- func Execute()
- func ListByCIDRs(cidrs []string)
- func ListByComment(comment string)
- func ListByHostnames(hostnames []string)
- func ListByIPs(ips []string)
- func RemoveByComment(comment string)
- func RemoveHosts(hosts []string)
- func RemoveIPRanges(cidrs []string)
- func ShowHosts()
- func VersionFromBuild() (version string)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // HostsFileReadPath specify host file to read HostsFileReadPath string // HostsFileWritePath specify path to write resulting host file HostsFileWritePath string // Quiet results in no output Quiet bool // DryRun sends output to STDOUT (ignores quiet) DryRun bool // MaxHostsPerLine limits hostnames per line (0=auto, -1=unlimited, >0=explicit) MaxHostsPerLine int )
View Source
var Version = "0.0.0"
Functions ¶
func ListByCIDRs ¶
func ListByCIDRs(cidrs []string)
func ListByComment ¶ added in v1.7.0
func ListByComment(comment string)
func ListByHostnames ¶
func ListByHostnames(hostnames []string)
func RemoveByComment ¶ added in v1.7.0
func RemoveByComment(comment string)
func RemoveHosts ¶
func RemoveHosts(hosts []string)
func RemoveIPRanges ¶
func RemoveIPRanges(cidrs []string)
func VersionFromBuild ¶
func VersionFromBuild() (version string)
VersionFromBuild Version returns the version of txeh binary
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.