providers

package
v0.0.0-...-a2f1245 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2015 License: MIT Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Match

func Match(pattern, name string) bool

Match attempts a filepath match then a tag match

func Providers

func Providers() []string

func Register

func Register(provider HostProvider, name string)

Types

type Host

type Host struct {
	Name     string
	Addr     string
	Provider string
	Index    int
	Group    int
}

Host represents a host from a provider

type HostProvider

type HostProvider interface {
	Setup() error
	Query(namespace, query string) ([]Host, error)
}

func Get

func Get(name string, setup bool) (HostProvider, error)

Jump to

Keyboard shortcuts

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