utilities

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	EmptyString = []string{}
)

Functions

func GetJobIDByContext

func GetJobIDByContext(jobs []byte, context string) (string, datastructures.JobsAnnotations, error)

TODO takes annotation and return the jobID, annotationObject, err

func GetTargetFromDesignator

func GetTargetFromDesignator(designator *identifiers.PortalDesignator) string

func InitReporter

func InitReporter(customerGUID, reporterName, actionName, wlid, eventReceiverUrl string, httpClient httputils.IHttpClient, designator *identifiers.PortalDesignator, errChan chan<- error) *datastructures.BaseReport

func ProcessAnnotations

func ProcessAnnotations(reporter datastructures.IReporter, jobAnnotations interface{}, hasAnnotations bool) error

func SendImmutableReport

func SendImmutableReport(target, reporter, actionID, action, status string, jobID *string, err error)

SendImmutableReport incase you want to send it all and just manage jobID, actionID yourself (no locking downtimes)

Types

This section is empty.

Jump to

Keyboard shortcuts

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