dispatcher

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

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 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 GetDispatcherScriptCharacterizationsByUUIDFailErrMocked

func GetDispatcherScriptCharacterizationsByUUIDFailErrMocked(t *testing.T, scriptCharacterizationUUID string, scIn []*types.ScriptCharacterization) []*types.ScriptCharacterization

GetDispatcherScriptCharacterizationsByUUIDFailErrMocked test mocked function

func GetDispatcherScriptCharacterizationsByUUIDFailJSONMocked

func GetDispatcherScriptCharacterizationsByUUIDFailJSONMocked(t *testing.T, scriptCharacterizationUUID string, scIn []*types.ScriptCharacterization) []*types.ScriptCharacterization

GetDispatcherScriptCharacterizationsByUUIDFailJSONMocked test mocked function

func GetDispatcherScriptCharacterizationsByUUIDFailStatusMocked

func GetDispatcherScriptCharacterizationsByUUIDFailStatusMocked(t *testing.T, scriptCharacterizationUUID string, scIn []*types.ScriptCharacterization) []*types.ScriptCharacterization

GetDispatcherScriptCharacterizationsByUUIDFailStatusMocked test mocked function

func GetDispatcherScriptCharacterizationsByUUIDMocked

func GetDispatcherScriptCharacterizationsByUUIDMocked(t *testing.T, scriptCharacterizationUUID string, scIn []*types.ScriptCharacterization) []*types.ScriptCharacterization

GetDispatcherScriptCharacterizationsByUUIDMocked 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 bootstrapping 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) GetDispatcherScriptCharacterizationsByType

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

GetDispatcherScriptCharacterizationsByType returns script characterizations list for a given phase

func (*DispatcherService) GetDispatcherScriptCharacterizationsByUUID

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

GetDispatcherScriptCharacterizationsByUUID returns script characterizations list for a given UUID

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