hosttags

package
v0.0.0-...-c3a032c Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package hosttags provides access to host tags

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Tags

type Tags struct {
	System              []string `json:"system"`
	GoogleCloudPlatform []string `json:"google cloud platform,omitempty"`
}

Tags contains the detected host tags

func Get

func Get(ctx context.Context, cached bool, conf config.Reader) *Tags

Get the host tags, optionally looking in the cache There are two levels of caching: - First one controlled by `cached` boolean, used for performances (cache all tags) - Second one per provider, to avoid missing host tags for 30 minutes when a component fails (for instance, Cluster Agent). This second layer is always on.

Jump to

Keyboard shortcuts

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