util

package
v0.0.0-...-f1bde72 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrIPAddressNotFound = errors.New("ip address for interface not found")
	ErrNoDefaultRoute    = errors.New("no default route found")
)

Functions

func GetDefaultIface

func GetDefaultIface() (string, error)

func GetDomainName

func GetDomainName() (name string, err error)

func GetIP

func GetIP(name string) (string, error)

func IPAndGateway

func IPAndGateway() (string, string, error)

Types

type LocalAgent

type LocalAgent struct {
	v1.AgentClient
	// contains filtered or unexported fields
}

func Agent

func Agent(address string) (*LocalAgent, error)

func (*LocalAgent) Close

func (a *LocalAgent) Close() error

type LocalTerra

type LocalTerra struct {
	tv1.TerraClient
	// contains filtered or unexported fields
}

func Terra

func Terra(address string) (*LocalTerra, error)

func (*LocalTerra) Close

func (l *LocalTerra) Close() error

Jump to

Keyboard shortcuts

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