provider

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterProvider

func RegisterProvider(t string, initFn InitFn)

Types

type Entity

type Entity struct {
	ID   string
	Tags map[string]interface{}
}

type InitFn

type InitFn func(*interop.Interop, *viper.Viper) (Provider, error)

type Provider

type Provider interface {
	GetEntities(
		config map[string]interface{},
		tags []string,
		lastUpdate *time.Time,
	) ([]Entity, error)
}

func GetProvider

func GetProvider(i *interop.Interop) (Provider, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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