linuxstatus

package module
v0.5.5 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2024 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Overview

This creates a simple hello world window

This creates a simple hello world window

figures out if your hostname is valid then checks if your DNS is setup correctly

This creates a simple hello world window

This creates a simple hello world window

Index

Constants

This section is empty.

Variables

View Source
var CHANGE *log.LogFlag
View Source
var INFO *log.LogFlag
View Source
var PROC *log.LogFlag
View Source
var SPEW *log.LogFlag
View Source
var STATUS *log.LogFlag
View Source
var WARN *log.LogFlag

Functions

func CheckSuperuser

func CheckSuperuser() bool

func DumpPublicDNSZone

func DumpPublicDNSZone(zone string)

You need permission to do a zone transfer. Otherwise: dig +noall +answer +multiline lab.wit.com any dig +all +multiline fire.lab.wit.com # gives the zonefile header (ttl vals)

func Escalate

func Escalate()

func GetProcessNameByPort

func GetProcessNameByPort(port int) string

func IsIPv6

func IsIPv6(address string) bool

func IsReal

func IsReal(ip *net.IP) bool

Types

type IFtype

type IFtype struct {
	// contains filtered or unexported fields
}

type IPtype

type IPtype struct {
	LinkLocal bool
	// contains filtered or unexported fields
}

func (*IPtype) IsReal

func (t *IPtype) IsReal() bool

type LinuxStatus

type LinuxStatus struct {
	IPv4 *gadgets.OneLiner
	IPv6 *gadgets.OneLiner

	Interfaces *gui.Node
	// contains filtered or unexported fields
}

func New

func New() *LinuxStatus

func (*LinuxStatus) Changed

func (ls *LinuxStatus) Changed() bool

reports externally if something has changed since the last time it was asked about it

func (*LinuxStatus) Draw

func (ls *LinuxStatus) Draw()

func (*LinuxStatus) Draw2

func (ls *LinuxStatus) Draw2()

func (*LinuxStatus) GetDomainName

func (ls *LinuxStatus) GetDomainName() string

func (*LinuxStatus) GetHostShort

func (ls *LinuxStatus) GetHostShort() string

func (*LinuxStatus) GetHostname

func (ls *LinuxStatus) GetHostname() string

func (*LinuxStatus) GetIPv4

func (ls *LinuxStatus) GetIPv4() []string

func (*LinuxStatus) GetIPv6

func (ls *LinuxStatus) GetIPv6() []string

func (*LinuxStatus) GetNameservers

func (ls *LinuxStatus) GetNameservers() []string

func (*LinuxStatus) Hide

func (ls *LinuxStatus) Hide()

func (*LinuxStatus) InitWindow

func (ls *LinuxStatus) InitWindow()

func (*LinuxStatus) Initialized

func (ls *LinuxStatus) Initialized() bool

func (*LinuxStatus) Make

func (ls *LinuxStatus) Make()

func (*LinuxStatus) Ready

func (ls *LinuxStatus) Ready() bool

func (*LinuxStatus) SetParent

func (ls *LinuxStatus) SetParent(p *gui.Node)

func (*LinuxStatus) SetSpeedActual

func (ls *LinuxStatus) SetSpeedActual(s string)

func (*LinuxStatus) Show

func (ls *LinuxStatus) Show()

func (*LinuxStatus) Toggle

func (ls *LinuxStatus) Toggle()

func (*LinuxStatus) Update

func (ls *LinuxStatus) Update()

func (*LinuxStatus) ValidHostname

func (ls *LinuxStatus) ValidHostname() bool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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