jsoncreator

package
v1.8.9 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JSONCreator

type JSONCreator interface {
	CreateJSONConfig(
		fs afero.Fs,
		client rest.DynatraceClient,
		api api.Api,
		entityId string,
		path string,
	) (filter bool, err error)
}

JSONCreator interface allows to mock the methods for unit testing

type JsonCreatorImp

type JsonCreatorImp struct{}

JSONCreatorImp object

func NewJSONCreator

func NewJSONCreator() *JsonCreatorImp

NewJSONCreator creates a new instance of the jsonCreator

func (*JsonCreatorImp) CreateJSONConfig

func (d *JsonCreatorImp) CreateJSONConfig(fs afero.Fs, client rest.DynatraceClient, api api.Api, entityId string,
	jsonFilePath string) (filter bool, err error)

CreateJSONConfig creates a json file using the specified path and API data

Jump to

Keyboard shortcuts

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