fact

package
v0.0.0-...-116ca14 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FactSource

type FactSource interface {
	Name() string
	Facts() (map[string]interface{}, error)
}

type Store

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

func NewStore

func NewStore() *Store

func (*Store) AddSource

func (fs *Store) AddSource(plugin FactSource, interval time.Duration)

func (*Store) Facts

func (fs *Store) Facts() map[string]interface{}

func (*Store) FullUpdate

func (fs *Store) FullUpdate()

func (*Store) Updates

func (fs *Store) Updates() <-chan map[string]interface{}

func (*Store) Wait

func (fs *Store) Wait()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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