cache

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Copyright 2020 New Relic Corporation. All rights reserved. SPDX-License-Identifier: Apache-2.0

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache interface {
	GetDefinitions(cfgName string) []integration.Definition
	ListConfigNames() []string
	ApplyConfig(cfgDefinitions *ConfigDefinitions) []integration.Definition
	TakeConfig(cfgName string) *ConfigDefinitions
}

Cache stores integrations definitions grouped by a Config Name.

func CreateCache

func CreateCache() Cache

CreateCache initialize and return an empty cache

type ConfigDefinitions

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

func (*ConfigDefinitions) Add

func (cfgDefinition *ConfigDefinitions) Add(def integration.Definition) bool

Jump to

Keyboard shortcuts

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