Documentation ¶
Index ¶
- func DownloadAttachmentFailErrMocked(t *testing.T, dataIn map[string]string)
- func DownloadAttachmentMocked(t *testing.T, dataIn map[string]string)
- func GetDispatcherScriptCharacterizationsByTypeFailErrMocked(t *testing.T, phase string, scIn []*types.ScriptCharacterization) []*types.ScriptCharacterization
- func GetDispatcherScriptCharacterizationsByTypeFailJSONMocked(t *testing.T, phase string, scIn []*types.ScriptCharacterization) []*types.ScriptCharacterization
- func GetDispatcherScriptCharacterizationsByTypeFailStatusMocked(t *testing.T, phase string, scIn []*types.ScriptCharacterization) []*types.ScriptCharacterization
- func GetDispatcherScriptCharacterizationsByTypeMocked(t *testing.T, phase string, scIn []*types.ScriptCharacterization) []*types.ScriptCharacterization
- func GetDispatcherScriptCharacterizationsByUUIDFailErrMocked(t *testing.T, scriptCharacterizationUUID string, ...) []*types.ScriptCharacterization
- func GetDispatcherScriptCharacterizationsByUUIDFailJSONMocked(t *testing.T, scriptCharacterizationUUID string, ...) []*types.ScriptCharacterization
- func GetDispatcherScriptCharacterizationsByUUIDFailStatusMocked(t *testing.T, scriptCharacterizationUUID string, ...) []*types.ScriptCharacterization
- func GetDispatcherScriptCharacterizationsByUUIDMocked(t *testing.T, scriptCharacterizationUUID string, ...) []*types.ScriptCharacterization
- func ReportScriptConclusionsFailErrMocked(t *testing.T, cbIn *types.ScriptConclusion) *types.ScriptConclusion
- func ReportScriptConclusionsFailJSONMocked(t *testing.T, cbIn *types.ScriptConclusion) *types.ScriptConclusion
- func ReportScriptConclusionsFailStatusMocked(t *testing.T, cbIn *types.ScriptConclusion) *types.ScriptConclusion
- func ReportScriptConclusionsMocked(t *testing.T, scIn *types.ScriptConclusion) *types.ScriptConclusion
- type DispatcherService
- func (ds *DispatcherService) DownloadAttachment(url string, filePath string) (realFileName string, status int, err error)
- func (ds *DispatcherService) GetDispatcherScriptCharacterizationsByType(phase string) (scriptCharacterizations []*types.ScriptCharacterization, err error)
- func (ds *DispatcherService) GetDispatcherScriptCharacterizationsByUUID(scriptCharacterizationUUID string) (scriptCharacterizations []*types.ScriptCharacterization, err error)
- func (ds *DispatcherService) ReportScriptConclusions(scriptConclusions *map[string]interface{}) (command *types.ScriptConclusion, status int, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DownloadAttachmentFailErrMocked ¶
DownloadAttachmentFailErrMocked test mocked function
func DownloadAttachmentMocked ¶
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