internal

package
v0.0.0-...-170c358 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDefaultIndexName

func GetDefaultIndexName() string

func IsTypeEnabled

func IsTypeEnabled(configuredTypes []string, currentType string) bool

func NewEvent

func NewEvent() *beat.Event

func Publish

func Publish(publisher stateless.Publisher, baseEvent *beat.Event, opts ...AssetOption)

Publish emits a `beat.Event` to the specified publisher, with the provided parameters

func ToMapstr

func ToMapstr(input map[string]string) mapstr.M

Types

type AssetOption

type AssetOption func(beat.Event) beat.Event

func WithAssetAccountID

func WithAssetAccountID(value string) AssetOption

func WithAssetChildren

func WithAssetChildren(value []string) AssetOption

func WithAssetCloudProvider

func WithAssetCloudProvider(value string) AssetOption

func WithAssetKindAndID

func WithAssetKindAndID(k, id string) AssetOption

func WithAssetMetadata

func WithAssetMetadata(value mapstr.M) AssetOption

func WithAssetName

func WithAssetName(value string) AssetOption

func WithAssetParents

func WithAssetParents(value []string) AssetOption

func WithAssetRegion

func WithAssetRegion(value string) AssetOption

func WithAssetType

func WithAssetType(value string) AssetOption

func WithCloudInstanceId

func WithCloudInstanceId(instanceId string) AssetOption

func WithContainerData

func WithContainerData(name, uid, namespace, state string, startTime *metav1.Time) AssetOption

func WithNodeData

func WithNodeData(name string, startTime *metav1.Time) AssetOption

func WithPodData

func WithPodData(name, uid, namespace string, startTime *metav1.Time) AssetOption

type BaseConfig

type BaseConfig struct {
	Period     time.Duration `config:"period"`
	AssetTypes []string      `config:"asset_types"`
}

Jump to

Keyboard shortcuts

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