provider

package
v0.0.0-...-ebc2ecf Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HostProvider

type HostProvider interface {
	// Returns a string representation of the provider
	String() string
	// Returns the parsed hosts from the underlying source
	Parse() ([]remote.Host, error)
}

type HostsFileProvider

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

func NewHostsFileProvider

func NewHostsFileProvider(file string) *HostsFileProvider

func SystemHostsFileProvider

func SystemHostsFileProvider() *HostsFileProvider

func (*HostsFileProvider) Parse

func (p *HostsFileProvider) Parse() ([]remote.Host, error)

func (*HostsFileProvider) String

func (p *HostsFileProvider) String() string

type KnownHostsProvider

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

func ConfigKnownHostsProvider

func ConfigKnownHostsProvider(ignoreMalformed bool) *KnownHostsProvider

func NewKnownHostsProvider

func NewKnownHostsProvider(file string, ignoreMalformed bool) *KnownHostsProvider

func SystemKnownHostsProvider

func SystemKnownHostsProvider(ignoreMalformed bool) *KnownHostsProvider

func UserKnownHostsProvider

func UserKnownHostsProvider(ignoreMalformed bool) *KnownHostsProvider

func (*KnownHostsProvider) Parse

func (p *KnownHostsProvider) Parse() ([]remote.Host, error)

func (*KnownHostsProvider) String

func (p *KnownHostsProvider) String() string

type NamedDumpProvider

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

func NewNamedDumpProvider

func NewNamedDumpProvider(file string, processWildcards bool) *NamedDumpProvider

func (*NamedDumpProvider) Parse

func (p *NamedDumpProvider) Parse() ([]remote.Host, error)

func (*NamedDumpProvider) String

func (p *NamedDumpProvider) String() string

type ZoneFileProvider

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

func NewZoneFileProvider

func NewZoneFileProvider(file string) *ZoneFileProvider

func (*ZoneFileProvider) Parse

func (p *ZoneFileProvider) Parse() ([]remote.Host, error)

func (*ZoneFileProvider) String

func (p *ZoneFileProvider) String() string

Jump to

Keyboard shortcuts

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