host

package
v1.43.3 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: MIT Imports: 29 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DNS

func DNS() []string

func FollowLog added in v1.40.0

func FollowLog(name string) error

FollowLog attempts to follow the logs from systemd-journald. It passes 3 additional flags to journalctl:

-f --follow      Follow the journal
--no-pager       Do not pipe output into a pager
--no-tail        Show all lines, even in follow mode

func InitType added in v1.4.0

func InitType() string

InitType returns the type of the host service init.

func Model added in v1.43.0

func Model() string

func Name

func Name() (string, error)

func NewService added in v1.4.0

func NewService(c service.Config) (service.Service, error)

func ReadLog added in v1.2.11

func ReadLog(name string) ([]byte, error)

func ResetDNS

func ResetDNS() error

func SetDNS

func SetDNS(dns string) error

Types

type Logger added in v1.4.0

type Logger interface {
	Debug(v ...interface{})
	Debugf(format string, a ...interface{})
	Info(v ...interface{})
	Infof(format string, a ...interface{})
	Warning(v ...interface{})
	Warningf(format string, a ...interface{})
	Error(v ...interface{})
	Errorf(format string, a ...interface{})
}

func NewConsoleLogger added in v1.4.5

func NewConsoleLogger(name string) Logger

func NewLogger added in v1.4.0

func NewLogger(name string) (Logger, error)

Jump to

Keyboard shortcuts

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