discover

package
v0.0.0-...-63b02d4 Latest Latest
Warning

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

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

Documentation

Overview

Package discover implements object discovery for daemon

It watches config filesystem to create initial instance config worker when config file is created. Instance config worker is then responsible for watching instance config updates

When is discovers that another remote config is available and no instance config worker is running, it fetches remote instance config to local config directory.

It is responsible for initial object status worker creation.

Index

Constants

This section is empty.

Variables

View Source
var (
	// SubscriptionQueueSizeCfg is size of "discover.cfg" subscription
	SubscriptionQueueSizeCfg = 30000
)
View Source
var (
	// SubscriptionQueueSizeOmon is size of "discover.omon" subscription
	SubscriptionQueueSizeOmon = 16000
)

Functions

This section is empty.

Types

type Manager

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

func NewManager

func NewManager(drainDuration time.Duration) *Manager

NewManager prepares Discover with drainDuration.

func (*Manager) Start

func (t *Manager) Start(ctx context.Context) (err error)

Start function starts file system watcher on config directory then listen for config file creation to create.

func (*Manager) Stop

func (t *Manager) Stop() error

Jump to

Keyboard shortcuts

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