dispatcher

package
v0.15.1 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2022 License: Apache-2.0 Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const APIPathBlueprintScriptCharacterization = "/blueprint/script_characterizations/%s"
View Source
const APIPathBlueprintScriptCharacterizationsByType = "/blueprint/script_characterizations?type=%s"
View Source
const APIPathBlueprintScriptConclusions = "/blueprint/script_conclusions"

Variables

This section is empty.

Functions

func DownloadAttachmentFailErrMocked

func DownloadAttachmentFailErrMocked(t *testing.T, dataIn map[string]string)

DownloadAttachmentFailErrMocked test mocked function

func DownloadAttachmentMocked

func DownloadAttachmentMocked(t *testing.T, dataIn map[string]string)

DownloadAttachmentMocked test mocked function

func GetDispatcherScriptCharacterizationByUUIDFailErrMocked added in v0.10.0

func GetDispatcherScriptCharacterizationByUUIDFailErrMocked(
	t *testing.T,
	scriptCharacterizationUUID string,
	scIn *types.ScriptCharacterization,
) *types.ScriptCharacterization

GetDispatcherScriptCharacterizationByUUIDFailErrMocked test mocked function

func GetDispatcherScriptCharacterizationByUUIDFailJSONMocked added in v0.10.0

func GetDispatcherScriptCharacterizationByUUIDFailJSONMocked(
	t *testing.T,
	scriptCharacterizationUUID string,
	scIn *types.ScriptCharacterization,
) *types.ScriptCharacterization

GetDispatcherScriptCharacterizationByUUIDFailJSONMocked test mocked function

func GetDispatcherScriptCharacterizationByUUIDFailStatusMocked added in v0.10.0

func GetDispatcherScriptCharacterizationByUUIDFailStatusMocked(
	t *testing.T,
	scriptCharacterizationUUID string,
	scIn *types.ScriptCharacterization,
) *types.ScriptCharacterization

GetDispatcherScriptCharacterizationByUUIDFailStatusMocked test mocked function

func GetDispatcherScriptCharacterizationByUUIDMocked added in v0.10.0

func GetDispatcherScriptCharacterizationByUUIDMocked(
	t *testing.T,
	scriptCharacterizationUUID string,
	scIn *types.ScriptCharacterization,
) *types.ScriptCharacterization

GetDispatcherScriptCharacterizationByUUIDMocked test mocked function

func GetDispatcherScriptCharacterizationsByTypeFailErrMocked

func GetDispatcherScriptCharacterizationsByTypeFailErrMocked(
	t *testing.T,
	phase string,
	scIn []*types.ScriptCharacterization,
) []*types.ScriptCharacterization

GetDispatcherScriptCharacterizationsByTypeFailErrMocked test mocked function

func GetDispatcherScriptCharacterizationsByTypeFailJSONMocked

func GetDispatcherScriptCharacterizationsByTypeFailJSONMocked(
	t *testing.T,
	phase string,
	scIn []*types.ScriptCharacterization,
) []*types.ScriptCharacterization

GetDispatcherScriptCharacterizationsByTypeFailJSONMocked test mocked function

func GetDispatcherScriptCharacterizationsByTypeFailStatusMocked

func GetDispatcherScriptCharacterizationsByTypeFailStatusMocked(
	t *testing.T,
	phase string,
	scIn []*types.ScriptCharacterization,
) []*types.ScriptCharacterization

GetDispatcherScriptCharacterizationsByTypeFailStatusMocked test mocked function

func GetDispatcherScriptCharacterizationsByTypeMocked

func GetDispatcherScriptCharacterizationsByTypeMocked(
	t *testing.T,
	phase string,
	scIn []*types.ScriptCharacterization,
) []*types.ScriptCharacterization

GetDispatcherScriptCharacterizationsByTypeMocked test mocked function

func ReportScriptConclusionsFailErrMocked

func ReportScriptConclusionsFailErrMocked(t *testing.T, cbIn *types.ScriptConclusion) *types.ScriptConclusion

ReportScriptConclusionsFailErrMocked test mocked function

func ReportScriptConclusionsFailJSONMocked

func ReportScriptConclusionsFailJSONMocked(t *testing.T, cbIn *types.ScriptConclusion) *types.ScriptConclusion

ReportScriptConclusionsFailJSONMocked test mocked function

func ReportScriptConclusionsFailStatusMocked

func ReportScriptConclusionsFailStatusMocked(t *testing.T, cbIn *types.ScriptConclusion) *types.ScriptConclusion

ReportScriptConclusionsFailStatusMocked test mocked function

func ReportScriptConclusionsMocked

func ReportScriptConclusionsMocked(t *testing.T, scIn *types.ScriptConclusion) *types.ScriptConclusion

ReportScriptConclusionsMocked test mocked function

Types

type DispatcherService

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

DispatcherService manages dispatcher operations

func NewDispatcherService

func NewDispatcherService(concertoService utils.ConcertoService) (*DispatcherService, error)

NewDispatcherService returns a dispatcher service

func (*DispatcherService) DownloadAttachment

func (ds *DispatcherService) DownloadAttachment(
	url string,
	filePath string,
) (realFileName string, status int, err error)

DownloadAttachment gets a file from given url saving file into given file path

func (*DispatcherService) GetDispatcherScriptCharacterizationByUUID added in v0.10.0

func (ds *DispatcherService) GetDispatcherScriptCharacterizationByUUID(
	scriptCharacterizationUUID string,
) (*types.ScriptCharacterization, error)

GetDispatcherScriptCharacterizationByUUID returns script characterizations list for a given UUID

func (*DispatcherService) GetDispatcherScriptCharacterizationsByType

func (ds *DispatcherService) GetDispatcherScriptCharacterizationsByType(
	phase string,
) (scriptCharacterizations []*types.ScriptCharacterization, err error)

GetDispatcherScriptCharacterizationsByType returns script characterizations list for a given phase

func (*DispatcherService) ReportScriptConclusions

func (ds *DispatcherService) ReportScriptConclusions(
	scriptConclusions *map[string]interface{},
) (command *types.ScriptConclusion, status int, err error)

ReportScriptConclusions reports a result

Jump to

Keyboard shortcuts

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