hosts

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2021 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 8 more Imports: 6 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