source

package
v0.0.1-alpha.7 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuiltInSources

func BuiltInSources(ctx context.Context) []v1.Source

func WithBus

func WithBus(b *bus.Bus) option

func WithPlugins

func WithPlugins(s *plugin.SourcePluginSystem) option

Types

type Manager

type Manager struct {
	Sources []v1.Source
	// contains filtered or unexported fields
}

func New

func New(ctx context.Context, opts ...option) *Manager

func (*Manager) Fetch

func (m *Manager) Fetch(ctx context.Context)

Fetch goes to all sources and fetchs the instance list from them and then publishes all those instances on the bus

func (*Manager) Start

func (m *Manager) Start(ctx context.Context)

Start is used to start the processing of the manager

func (*Manager) Stop

func (m *Manager) Stop(ctx context.Context)

Stop is used to graceful shut down the manager and by extension all the sources

Jump to

Keyboard shortcuts

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