core

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// DefaultEnvVarsPrefix Env config var prefix
	DefaultEnvVarsPrefix = "filesd_provider"

	// ErrProviderNotFound Error occurred when the provider is not found
	ErrProviderNotFound = errors.New("provider not found")
)

Functions

func ListAvailableProviders

func ListAvailableProviders() []string

ListAvailableProviders List provider registered

func Register

func Register(name string, loadFn func() (Provider, error))

Register Register a provider

Types

type Provider

type Provider interface {
	Name() string
	ListTargets() ([]models.Target, error)
}

Provider Interface to fetch Target(s)

func New

func New(name string) (Provider, error)

New Initialize a registered provider

Jump to

Keyboard shortcuts

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