Documentation ¶
Index ¶
- Constants
- func DownloadAttachmentFailErrMocked(t *testing.T, dataIn map[string]string)
- func DownloadAttachmentMocked(t *testing.T, dataIn map[string]string)
- func GetDispatcherScriptCharacterizationByUUIDFailErrMocked(t *testing.T, scriptCharacterizationUUID string, ...) *types.ScriptCharacterization
- func GetDispatcherScriptCharacterizationByUUIDFailJSONMocked(t *testing.T, scriptCharacterizationUUID string, ...) *types.ScriptCharacterization
- func GetDispatcherScriptCharacterizationByUUIDFailStatusMocked(t *testing.T, scriptCharacterizationUUID string, ...) *types.ScriptCharacterization
- func GetDispatcherScriptCharacterizationByUUIDMocked(t *testing.T, scriptCharacterizationUUID string, ...) *types.ScriptCharacterization
- 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 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) GetDispatcherScriptCharacterizationByUUID(scriptCharacterizationUUID string) (*types.ScriptCharacterization, error)
- func (ds *DispatcherService) GetDispatcherScriptCharacterizationsByType(phase string) (scriptCharacterizations []*types.ScriptCharacterization, err error)
- func (ds *DispatcherService) ReportScriptConclusions(scriptConclusions *map[string]interface{}) (command *types.ScriptConclusion, status int, err error)
Constants ¶
const APIPathBlueprintScriptCharacterization = "/blueprint/script_characterizations/%s"
const APIPathBlueprintScriptCharacterizationsByType = "/blueprint/script_characterizations?type=%s"
const APIPathBlueprintScriptConclusions = "/blueprint/script_conclusions"
Variables ¶
This section is empty.
Functions ¶
func DownloadAttachmentFailErrMocked ¶
DownloadAttachmentFailErrMocked test mocked function
func DownloadAttachmentMocked ¶
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