vctags

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2023 License: AGPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const PlugName string = "vctags"

PlugName contains the name of this plugin

Variables

View Source
var (
	ErrorNoVcTagMgr = errors.New("no vSphere tag manager, please create one")
)

Common raised errors

Functions

This section is empty.

Types

type VcTagCache

type VcTagCache struct {
	tls.ClientConfig
	// contains filtered or unexported fields
}

func NewCache

func NewCache(u *url.URL, s bool, t, d time.Duration, l *glg.Glg) (*VcTagCache, error)

NewCache creates a new cache instance for vSphere objects tags

func (*VcTagCache) Get

func (c *VcTagCache) Get(k string) (map[string]string, bool)

Get returns tags from the cache corresponding to the given moid

func (*VcTagCache) Run

func (c *VcTagCache) Run(ctx context.Context, pollInterval time.Duration)

Run executes a permanent loop waiting for context end or cache refresh trigger

func (*VcTagCache) SetCategoryFilter

func (c *VcTagCache) SetCategoryFilter(cats []string)

SetCategoryFilter allows configuring a filter of tag categories to read from vSphere

Jump to

Keyboard shortcuts

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