dispatcher

package
v0.12.0-rc Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2020 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 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