rest

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2020 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(url string, apiToken string, id string)

func DeleteDynatraceObject

func DeleteDynatraceObject(config config.Config, environment environment.Environment) error

func GetExistingValuesFromEndpoint

func GetExistingValuesFromEndpoint(configType string, url string, apiToken string) (isDashboard bool, values []api.Value, err error)

func GetObjectIdIfAlreadyExists

func GetObjectIdIfAlreadyExists(configType string, url string, objectName string, apiToken string) (isDashboard bool, existingId string, err error)

func UploadExtension

func UploadExtension(apiPath string, extensionName string, extensionJson string, apiToken string) (api.DynatraceEntity, error)

func UpsertDynatraceObject

func UpsertDynatraceObject(apiPath string, objectName string, configType string, configJson string, apiToken string) (api.DynatraceEntity, error)

func Wait

func Wait(description string, maxPollCount int, condition func() bool) error

Types

type Response

type Response struct {
	StatusCode int
	Body       []byte
}

func Get

func Get(url string, apiToken string) Response

func Post

func Post(url string, data string, apiToken string) Response

func PostMultiPartFile

func PostMultiPartFile(url string, data *bytes.Buffer, contentType string, apiToken string) Response

func Put

func Put(url string, data string, apiToken string) Response

Jump to

Keyboard shortcuts

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