inventory

package
v0.5.7 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: LGPL-2.1 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func NewInventoryManager

func NewInventoryManager(loader *parser.DataLoader, sources ...string) (*Manager, error)

func (*Manager) AddSources added in v0.2.0

func (im *Manager) AddSources(sources ...string) error

func (*Manager) FindGroup

func (im *Manager) FindGroup(name string) (*parser.Group, bool)

func (*Manager) FindHost

func (im *Manager) FindHost(name string) (*parser.Host, bool)

func (*Manager) MatchedGroups

func (im *Manager) MatchedGroups() (map[string]*parser.Group, error)

func (*Manager) MatchedHosts

func (im *Manager) MatchedHosts() (map[string]*parser.Host, error)

Jump to

Keyboard shortcuts

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