hosts

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2021 License: LGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hostser

type Hostser interface {
	Data() ([]byte, error)
	Set(ip string) error
}

Hostser for hosts

type LocalHosts

type LocalHosts struct {
	Host string
	File string
}

LocalHosts for local hosts

func (*LocalHosts) Set

func (h *LocalHosts) Set(ip string) error

Set sets hosts

type RemoteHosts

type RemoteHosts struct {
	Host string
	SSH  ssh.Interface
}

RemoteHosts for remote hosts

func (*RemoteHosts) Data

func (h *RemoteHosts) Data() ([]byte, error)

Data return hosts data

func (*RemoteHosts) Set

func (h *RemoteHosts) Set(ip string) error

Set sets hosts

Jump to

Keyboard shortcuts

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