Documentation ¶
Index ¶
- func CreateScriptFailErrMocked(t *testing.T, scriptIn *types.Script) *types.Script
- func CreateScriptFailJSONMocked(t *testing.T, scriptIn *types.Script) *types.Script
- func CreateScriptFailStatusMocked(t *testing.T, scriptIn *types.Script) *types.Script
- func CreateScriptMocked(t *testing.T, scriptIn *types.Script) *types.Script
- func CreateTemplateFailErrMocked(t *testing.T, templateIn *types.Template) *types.Template
- func CreateTemplateFailJSONMocked(t *testing.T, templateIn *types.Template) *types.Template
- func CreateTemplateFailStatusMocked(t *testing.T, templateIn *types.Template) *types.Template
- func CreateTemplateMocked(t *testing.T, templateIn *types.Template) *types.Template
- func CreateTemplateScriptFailErrMocked(t *testing.T, dr *types.TemplateScript) *types.TemplateScript
- func CreateTemplateScriptFailJSONMocked(t *testing.T, dr *types.TemplateScript) *types.TemplateScript
- func CreateTemplateScriptFailStatusMocked(t *testing.T, dr *types.TemplateScript) *types.TemplateScript
- func CreateTemplateScriptMocked(t *testing.T, dr *types.TemplateScript) *types.TemplateScript
- func DeleteScriptFailErrMocked(t *testing.T, scriptIn *types.Script)
- func DeleteScriptFailStatusMocked(t *testing.T, scriptIn *types.Script)
- func DeleteScriptMocked(t *testing.T, scriptIn *types.Script)
- func DeleteTemplateFailErrMocked(t *testing.T, templateIn *types.Template)
- func DeleteTemplateFailStatusMocked(t *testing.T, templateIn *types.Template)
- func DeleteTemplateMocked(t *testing.T, templateIn *types.Template)
- func DeleteTemplateScriptFailErrMocked(t *testing.T, dr *types.TemplateScript)
- func DeleteTemplateScriptFailStatusMocked(t *testing.T, dr *types.TemplateScript)
- func DeleteTemplateScriptMocked(t *testing.T, dr *types.TemplateScript)
- func DownloadPolicyfileFailErrMocked(t *testing.T, dataIn map[string]string)
- func DownloadPolicyfileMocked(t *testing.T, dataIn map[string]string)
- func GetBootstrappingConfigurationFailErrMocked(t *testing.T, bcConfIn *types.BootstrappingConfiguration) *types.BootstrappingConfiguration
- func GetBootstrappingConfigurationFailJSONMocked(t *testing.T, bcConfIn *types.BootstrappingConfiguration) *types.BootstrappingConfiguration
- func GetBootstrappingConfigurationFailStatusMocked(t *testing.T, bcConfIn *types.BootstrappingConfiguration) *types.BootstrappingConfiguration
- func GetBootstrappingConfigurationMocked(t *testing.T, bcConfIn *types.BootstrappingConfiguration) *types.BootstrappingConfiguration
- func GetScriptFailErrMocked(t *testing.T, script *types.Script) *types.Script
- func GetScriptFailJSONMocked(t *testing.T, script *types.Script) *types.Script
- func GetScriptFailStatusMocked(t *testing.T, script *types.Script) *types.Script
- func GetScriptListFailErrMocked(t *testing.T, scriptsIn *[]types.Script) *[]types.Script
- func GetScriptListFailJSONMocked(t *testing.T, scriptsIn *[]types.Script) *[]types.Script
- func GetScriptListFailStatusMocked(t *testing.T, scriptsIn *[]types.Script) *[]types.Script
- func GetScriptListMocked(t *testing.T, scriptsIn *[]types.Script) *[]types.Script
- func GetScriptMocked(t *testing.T, script *types.Script) *types.Script
- func GetServiceFailErrMocked(t *testing.T, service *types.Service) *types.Service
- func GetServiceFailJSONMocked(t *testing.T, service *types.Service) *types.Service
- func GetServiceFailStatusMocked(t *testing.T, service *types.Service) *types.Service
- func GetServiceListFailErrMocked(t *testing.T, servicesIn *[]types.Service) *[]types.Service
- func GetServiceListFailJSONMocked(t *testing.T, servicesIn *[]types.Service) *[]types.Service
- func GetServiceListFailStatusMocked(t *testing.T, servicesIn *[]types.Service) *[]types.Service
- func GetServiceListMocked(t *testing.T, servicesIn *[]types.Service) *[]types.Service
- func GetServiceMocked(t *testing.T, service *types.Service) *types.Service
- func GetTemplateFailErrMocked(t *testing.T, template *types.Template) *types.Template
- func GetTemplateFailJSONMocked(t *testing.T, template *types.Template) *types.Template
- func GetTemplateFailStatusMocked(t *testing.T, template *types.Template) *types.Template
- func GetTemplateListFailErrMocked(t *testing.T, templatesIn *[]types.Template) *[]types.Template
- func GetTemplateListFailJSONMocked(t *testing.T, templatesIn *[]types.Template) *[]types.Template
- func GetTemplateListFailStatusMocked(t *testing.T, templatesIn *[]types.Template) *[]types.Template
- func GetTemplateListMocked(t *testing.T, templatesIn *[]types.Template) *[]types.Template
- func GetTemplateMocked(t *testing.T, template *types.Template) *types.Template
- func GetTemplateScriptFailErrMocked(t *testing.T, dr *types.TemplateScript) *types.TemplateScript
- func GetTemplateScriptFailJSONMocked(t *testing.T, dr *types.TemplateScript) *types.TemplateScript
- func GetTemplateScriptFailStatusMocked(t *testing.T, dr *types.TemplateScript) *types.TemplateScript
- func GetTemplateScriptListFailErrMocked(t *testing.T, templateScriptsIn *[]types.TemplateScript, templateID string, ...) *[]types.TemplateScript
- func GetTemplateScriptListFailJSONMocked(t *testing.T, templateScriptsIn *[]types.TemplateScript, templateID string, ...) *[]types.TemplateScript
- func GetTemplateScriptListFailStatusMocked(t *testing.T, templateScriptsIn *[]types.TemplateScript, templateID string, ...) *[]types.TemplateScript
- func GetTemplateScriptListMocked(t *testing.T, templateScriptsIn *[]types.TemplateScript, templateID string, ...) *[]types.TemplateScript
- func GetTemplateScriptMocked(t *testing.T, dr *types.TemplateScript) *types.TemplateScript
- func GetTemplateServerListFailErrMocked(t *testing.T, templateServersIn *[]types.TemplateServer, templateID string) *[]types.TemplateServer
- func GetTemplateServerListFailJSONMocked(t *testing.T, templateServersIn *[]types.TemplateServer, templateID string) *[]types.TemplateServer
- func GetTemplateServerListFailStatusMocked(t *testing.T, templateServersIn *[]types.TemplateServer, templateID string) *[]types.TemplateServer
- func GetTemplateServerListMocked(t *testing.T, templateServersIn *[]types.TemplateServer, templateID string) *[]types.TemplateServer
- func ReorderTemplateScriptFailErrMocked(t *testing.T, tsOut *[]types.TemplateScript, templateID string, ...) *[]types.TemplateScript
- func ReorderTemplateScriptFailJSONMocked(t *testing.T, tsOut *[]types.TemplateScript, templateID string, ...) *[]types.TemplateScript
- func ReorderTemplateScriptFailStatusMocked(t *testing.T, tsOut *[]types.TemplateScript, templateID string, ...) *[]types.TemplateScript
- func ReorderTemplateScriptMocked(t *testing.T, tsOut *[]types.TemplateScript, templateID string, ...) *[]types.TemplateScript
- func ReportBootstrappingAppliedConfigurationFailErrMocked(t *testing.T, commandIn *types.BootstrappingConfiguration)
- func ReportBootstrappingAppliedConfigurationFailJSONMocked(t *testing.T, commandIn *types.BootstrappingConfiguration)
- func ReportBootstrappingAppliedConfigurationFailStatusMocked(t *testing.T, commandIn *types.BootstrappingConfiguration)
- func ReportBootstrappingAppliedConfigurationMocked(t *testing.T, commandIn *types.BootstrappingConfiguration)
- func ReportBootstrappingLogFailErrMocked(t *testing.T, commandIn *types.BootstrappingContinuousReport) *types.BootstrappingContinuousReport
- func ReportBootstrappingLogFailJSONMocked(t *testing.T, commandIn *types.BootstrappingContinuousReport) *types.BootstrappingContinuousReport
- func ReportBootstrappingLogFailStatusMocked(t *testing.T, commandIn *types.BootstrappingContinuousReport) *types.BootstrappingContinuousReport
- func ReportBootstrappingLogMocked(t *testing.T, commandIn *types.BootstrappingContinuousReport) *types.BootstrappingContinuousReport
- func UpdateScriptFailErrMocked(t *testing.T, scriptIn *types.Script) *types.Script
- func UpdateScriptFailJSONMocked(t *testing.T, scriptIn *types.Script) *types.Script
- func UpdateScriptFailStatusMocked(t *testing.T, scriptIn *types.Script) *types.Script
- func UpdateScriptMocked(t *testing.T, scriptIn *types.Script) *types.Script
- func UpdateTemplateFailErrMocked(t *testing.T, templateIn *types.Template) *types.Template
- func UpdateTemplateFailJSONMocked(t *testing.T, templateIn *types.Template) *types.Template
- func UpdateTemplateFailStatusMocked(t *testing.T, templateIn *types.Template) *types.Template
- func UpdateTemplateMocked(t *testing.T, templateIn *types.Template) *types.Template
- func UpdateTemplateScriptFailErrMocked(t *testing.T, dr *types.TemplateScript) *types.TemplateScript
- func UpdateTemplateScriptFailJSONMocked(t *testing.T, dr *types.TemplateScript) *types.TemplateScript
- func UpdateTemplateScriptFailStatusMocked(t *testing.T, dr *types.TemplateScript) *types.TemplateScript
- func UpdateTemplateScriptMocked(t *testing.T, dr *types.TemplateScript) *types.TemplateScript
- type BootstrappingService
- func (bs *BootstrappingService) DownloadPolicyfile(url string, filePath string) (realFileName string, status int, err error)
- func (bs *BootstrappingService) GetBootstrappingConfiguration() (bootstrappingConfigurations *types.BootstrappingConfiguration, status int, ...)
- func (bs *BootstrappingService) ReportBootstrappingAppliedConfiguration(BootstrappingAppliedConfigurationVector *map[string]interface{}) (err error)
- func (bs *BootstrappingService) ReportBootstrappingLog(BootstrappingContinuousReportVector *map[string]interface{}) (command *types.BootstrappingContinuousReport, status int, err error)
- type ScriptService
- func (sc *ScriptService) CreateScript(scriptVector *map[string]interface{}) (script *types.Script, err error)
- func (sc *ScriptService) DeleteScript(ID string) (err error)
- func (sc *ScriptService) GetScript(ID string) (script *types.Script, err error)
- func (sc *ScriptService) GetScriptList() (scripts []types.Script, err error)
- func (sc *ScriptService) UpdateScript(scriptVector *map[string]interface{}, ID string) (script *types.Script, err error)
- type ServicesService
- type TemplateService
- func (tp *TemplateService) CreateTemplate(templateVector *map[string]interface{}) (template *types.Template, err error)
- func (tp *TemplateService) CreateTemplateScript(templateScriptVector *map[string]interface{}, templateID string) (templateScript *types.TemplateScript, err error)
- func (tp *TemplateService) DeleteTemplate(ID string) (err error)
- func (tp *TemplateService) DeleteTemplateScript(templateID string, ID string) (err error)
- func (tp *TemplateService) GetTemplate(ID string) (template *types.Template, err error)
- func (tp *TemplateService) GetTemplateList() (templates []types.Template, err error)
- func (tp *TemplateService) GetTemplateScript(templateID string, ID string) (templateScript *types.TemplateScript, err error)
- func (tp *TemplateService) GetTemplateScriptList(templateID string, scriptType string) (templateScript *[]types.TemplateScript, err error)
- func (tp *TemplateService) GetTemplateServerList(templateID string) (templateServer *[]types.TemplateServer, err error)
- func (tp *TemplateService) ReorderTemplateScript(templateScriptVector *map[string]interface{}, templateID string) (templateScript *[]types.TemplateScript, err error)
- func (tp *TemplateService) UpdateTemplate(templateVector *map[string]interface{}, ID string) (template *types.Template, err error)
- func (tp *TemplateService) UpdateTemplateScript(templateScriptVector *map[string]interface{}, templateID string, ID string) (templateScript *types.TemplateScript, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateScriptFailErrMocked ¶
CreateScriptFailErrMocked test mocked function
func CreateScriptFailJSONMocked ¶
CreateScriptFailJSONMocked test mocked function
func CreateScriptFailStatusMocked ¶
CreateScriptFailStatusMocked test mocked function
func CreateScriptMocked ¶
CreateScriptMocked test mocked function
func CreateTemplateFailErrMocked ¶
CreateTemplateFailErrMocked test mocked function
func CreateTemplateFailJSONMocked ¶
CreateTemplateFailJSONMocked test mocked function
func CreateTemplateFailStatusMocked ¶
CreateTemplateFailStatusMocked test mocked function
func CreateTemplateMocked ¶
CreateTemplateMocked test mocked function
func CreateTemplateScriptFailErrMocked ¶
func CreateTemplateScriptFailErrMocked(t *testing.T, dr *types.TemplateScript) *types.TemplateScript
CreateTemplateScriptFailErrMocked test mocked function
func CreateTemplateScriptFailJSONMocked ¶
func CreateTemplateScriptFailJSONMocked(t *testing.T, dr *types.TemplateScript) *types.TemplateScript
CreateTemplateScriptFailJSONMocked test mocked function
func CreateTemplateScriptFailStatusMocked ¶
func CreateTemplateScriptFailStatusMocked(t *testing.T, dr *types.TemplateScript) *types.TemplateScript
CreateTemplateScriptFailStatusMocked test mocked function
func CreateTemplateScriptMocked ¶
func CreateTemplateScriptMocked(t *testing.T, dr *types.TemplateScript) *types.TemplateScript
CreateTemplateScriptMocked test mocked function
func DeleteScriptFailErrMocked ¶
DeleteScriptFailErrMocked test mocked function
func DeleteScriptFailStatusMocked ¶
DeleteScriptFailStatusMocked test mocked function
func DeleteScriptMocked ¶
DeleteScriptMocked test mocked function
func DeleteTemplateFailErrMocked ¶
DeleteTemplateFailErrMocked test mocked function
func DeleteTemplateFailStatusMocked ¶
DeleteTemplateFailStatusMocked test mocked function
func DeleteTemplateMocked ¶
DeleteTemplateMocked test mocked function
func DeleteTemplateScriptFailErrMocked ¶
func DeleteTemplateScriptFailErrMocked(t *testing.T, dr *types.TemplateScript)
DeleteTemplateScriptFailErrMocked test mocked function
func DeleteTemplateScriptFailStatusMocked ¶
func DeleteTemplateScriptFailStatusMocked(t *testing.T, dr *types.TemplateScript)
DeleteTemplateScriptFailStatusMocked test mocked function
func DeleteTemplateScriptMocked ¶
func DeleteTemplateScriptMocked(t *testing.T, dr *types.TemplateScript)
DeleteTemplateScriptMocked test mocked function
func DownloadPolicyfileFailErrMocked ¶ added in v0.8.0
DownloadPolicyfileFailErrMocked
func DownloadPolicyfileMocked ¶ added in v0.8.0
DownloadPolicyfileMocked
func GetBootstrappingConfigurationFailErrMocked ¶ added in v0.8.0
func GetBootstrappingConfigurationFailErrMocked(t *testing.T, bcConfIn *types.BootstrappingConfiguration) *types.BootstrappingConfiguration
GetBootstrappingConfigurationFailErrMocked test mocked function
func GetBootstrappingConfigurationFailJSONMocked ¶ added in v0.8.0
func GetBootstrappingConfigurationFailJSONMocked(t *testing.T, bcConfIn *types.BootstrappingConfiguration) *types.BootstrappingConfiguration
GetBootstrappingConfigurationFailJSONMocked test mocked function
func GetBootstrappingConfigurationFailStatusMocked ¶ added in v0.8.0
func GetBootstrappingConfigurationFailStatusMocked(t *testing.T, bcConfIn *types.BootstrappingConfiguration) *types.BootstrappingConfiguration
GetBootstrappingConfigurationFailStatusMocked test mocked function
func GetBootstrappingConfigurationMocked ¶ added in v0.8.0
func GetBootstrappingConfigurationMocked(t *testing.T, bcConfIn *types.BootstrappingConfiguration) *types.BootstrappingConfiguration
GetBootstrappingConfigurationMocked test mocked function
func GetScriptFailErrMocked ¶
GetScriptFailErrMocked test mocked function
func GetScriptFailJSONMocked ¶
GetScriptFailJSONMocked test mocked function
func GetScriptFailStatusMocked ¶
GetScriptFailStatusMocked test mocked function
func GetScriptListFailErrMocked ¶
GetScriptListFailErrMocked test mocked function
func GetScriptListFailJSONMocked ¶
GetScriptListFailJSONMocked test mocked function
func GetScriptListFailStatusMocked ¶
GetScriptListFailStatusMocked test mocked function
func GetScriptListMocked ¶
GetScriptListMocked test mocked function
func GetScriptMocked ¶
GetScriptMocked test mocked function
func GetServiceFailErrMocked ¶
GetServiceFailErrMocked test mocked function
func GetServiceFailJSONMocked ¶
GetServiceFailJSONMocked test mocked function
func GetServiceFailStatusMocked ¶
GetServiceFailStatusMocked test mocked function
func GetServiceListFailErrMocked ¶
GetServiceListFailErrMocked test mocked function
func GetServiceListFailJSONMocked ¶
GetServiceListFailJSONMocked test mocked function
func GetServiceListFailStatusMocked ¶
GetServiceListFailStatusMocked test mocked function
func GetServiceListMocked ¶
GetServiceListMocked test mocked function
func GetServiceMocked ¶
GetServiceMocked test mocked function
func GetTemplateFailErrMocked ¶
GetTemplateFailErrMocked test mocked function
func GetTemplateFailJSONMocked ¶
GetTemplateFailJSONMocked test mocked function
func GetTemplateFailStatusMocked ¶
GetTemplateFailStatusMocked test mocked function
func GetTemplateListFailErrMocked ¶
GetTemplateListFailErrMocked test mocked function
func GetTemplateListFailJSONMocked ¶
GetTemplateListFailJSONMocked test mocked function
func GetTemplateListFailStatusMocked ¶
GetTemplateListFailStatusMocked test mocked function
func GetTemplateListMocked ¶
GetTemplateListMocked test mocked function
func GetTemplateMocked ¶
GetTemplateMocked test mocked function
func GetTemplateScriptFailErrMocked ¶
func GetTemplateScriptFailErrMocked(t *testing.T, dr *types.TemplateScript) *types.TemplateScript
GetTemplateScriptFailErrMocked test mocked function
func GetTemplateScriptFailJSONMocked ¶
func GetTemplateScriptFailJSONMocked(t *testing.T, dr *types.TemplateScript) *types.TemplateScript
GetTemplateScriptFailJSONMocked test mocked function
func GetTemplateScriptFailStatusMocked ¶
func GetTemplateScriptFailStatusMocked(t *testing.T, dr *types.TemplateScript) *types.TemplateScript
GetTemplateScriptFailStatusMocked test mocked function
func GetTemplateScriptListFailErrMocked ¶
func GetTemplateScriptListFailErrMocked(t *testing.T, templateScriptsIn *[]types.TemplateScript, templateID string, scriptType string) *[]types.TemplateScript
GetTemplateScriptListFailErrMocked test mocked function
func GetTemplateScriptListFailJSONMocked ¶
func GetTemplateScriptListFailJSONMocked(t *testing.T, templateScriptsIn *[]types.TemplateScript, templateID string, scriptType string) *[]types.TemplateScript
GetTemplateScriptListFailJSONMocked test mocked function
func GetTemplateScriptListFailStatusMocked ¶
func GetTemplateScriptListFailStatusMocked(t *testing.T, templateScriptsIn *[]types.TemplateScript, templateID string, scriptType string) *[]types.TemplateScript
GetTemplateScriptListFailStatusMocked test mocked function
func GetTemplateScriptListMocked ¶
func GetTemplateScriptListMocked(t *testing.T, templateScriptsIn *[]types.TemplateScript, templateID string, scriptType string) *[]types.TemplateScript
GetTemplateScriptListMocked test mocked function
func GetTemplateScriptMocked ¶
func GetTemplateScriptMocked(t *testing.T, dr *types.TemplateScript) *types.TemplateScript
GetTemplateScriptMocked test mocked function
func GetTemplateServerListFailErrMocked ¶
func GetTemplateServerListFailErrMocked(t *testing.T, templateServersIn *[]types.TemplateServer, templateID string) *[]types.TemplateServer
GetTemplateServerListFailErrMocked test mocked function
func GetTemplateServerListFailJSONMocked ¶
func GetTemplateServerListFailJSONMocked(t *testing.T, templateServersIn *[]types.TemplateServer, templateID string) *[]types.TemplateServer
GetTemplateServerListFailJSONMocked test mocked function
func GetTemplateServerListFailStatusMocked ¶
func GetTemplateServerListFailStatusMocked(t *testing.T, templateServersIn *[]types.TemplateServer, templateID string) *[]types.TemplateServer
GetTemplateServerListFailStatusMocked test mocked function
func GetTemplateServerListMocked ¶
func GetTemplateServerListMocked(t *testing.T, templateServersIn *[]types.TemplateServer, templateID string) *[]types.TemplateServer
GetTemplateServerListMocked test mocked function
func ReorderTemplateScriptFailErrMocked ¶
func ReorderTemplateScriptFailErrMocked(t *testing.T, tsOut *[]types.TemplateScript, templateID string, reorder []string) *[]types.TemplateScript
ReorderTemplateScriptFailErrMocked test mocked function
func ReorderTemplateScriptFailJSONMocked ¶
func ReorderTemplateScriptFailJSONMocked(t *testing.T, tsOut *[]types.TemplateScript, templateID string, reorder []string) *[]types.TemplateScript
ReorderTemplateScriptFailJSONMocked test mocked function
func ReorderTemplateScriptFailStatusMocked ¶
func ReorderTemplateScriptFailStatusMocked(t *testing.T, tsOut *[]types.TemplateScript, templateID string, reorder []string) *[]types.TemplateScript
ReorderTemplateScriptFailStatusMocked test mocked function
func ReorderTemplateScriptMocked ¶
func ReorderTemplateScriptMocked(t *testing.T, tsOut *[]types.TemplateScript, templateID string, reorder []string) *[]types.TemplateScript
ReorderTemplateScriptMocked test mocked function
func ReportBootstrappingAppliedConfigurationFailErrMocked ¶ added in v0.8.0
func ReportBootstrappingAppliedConfigurationFailErrMocked(t *testing.T, commandIn *types.BootstrappingConfiguration)
ReportBootstrappingAppliedConfigurationFailErrMocked test mocked function
func ReportBootstrappingAppliedConfigurationFailJSONMocked ¶ added in v0.8.0
func ReportBootstrappingAppliedConfigurationFailJSONMocked(t *testing.T, commandIn *types.BootstrappingConfiguration)
ReportBootstrappingAppliedConfigurationFailJSONMocked test mocked function
func ReportBootstrappingAppliedConfigurationFailStatusMocked ¶ added in v0.8.0
func ReportBootstrappingAppliedConfigurationFailStatusMocked(t *testing.T, commandIn *types.BootstrappingConfiguration)
ReportBootstrappingAppliedConfigurationFailStatusMocked test mocked function
func ReportBootstrappingAppliedConfigurationMocked ¶ added in v0.8.0
func ReportBootstrappingAppliedConfigurationMocked(t *testing.T, commandIn *types.BootstrappingConfiguration)
ReportBootstrappingAppliedConfigurationMocked test mocked function
func ReportBootstrappingLogFailErrMocked ¶ added in v0.8.0
func ReportBootstrappingLogFailErrMocked(t *testing.T, commandIn *types.BootstrappingContinuousReport) *types.BootstrappingContinuousReport
ReportBootstrappingLogFailErrMocked test mocked function
func ReportBootstrappingLogFailJSONMocked ¶ added in v0.8.0
func ReportBootstrappingLogFailJSONMocked(t *testing.T, commandIn *types.BootstrappingContinuousReport) *types.BootstrappingContinuousReport
ReportBootstrappingLogFailJSONMocked test mocked function
func ReportBootstrappingLogFailStatusMocked ¶ added in v0.8.0
func ReportBootstrappingLogFailStatusMocked(t *testing.T, commandIn *types.BootstrappingContinuousReport) *types.BootstrappingContinuousReport
ReportBootstrappingLogFailStatusMocked test mocked function
func ReportBootstrappingLogMocked ¶ added in v0.8.0
func ReportBootstrappingLogMocked(t *testing.T, commandIn *types.BootstrappingContinuousReport) *types.BootstrappingContinuousReport
ReportBootstrappingLogMocked test mocked function
func UpdateScriptFailErrMocked ¶
UpdateScriptFailErrMocked test mocked function
func UpdateScriptFailJSONMocked ¶
UpdateScriptFailJSONMocked test mocked function
func UpdateScriptFailStatusMocked ¶
UpdateScriptFailStatusMocked test mocked function
func UpdateScriptMocked ¶
UpdateScriptMocked test mocked function
func UpdateTemplateFailErrMocked ¶
UpdateTemplateFailErrMocked test mocked function
func UpdateTemplateFailJSONMocked ¶
UpdateTemplateFailJSONMocked test mocked function
func UpdateTemplateFailStatusMocked ¶
UpdateTemplateFailStatusMocked test mocked function
func UpdateTemplateMocked ¶
UpdateTemplateMocked test mocked function
func UpdateTemplateScriptFailErrMocked ¶
func UpdateTemplateScriptFailErrMocked(t *testing.T, dr *types.TemplateScript) *types.TemplateScript
UpdateTemplateScriptFailErrMocked test mocked function
func UpdateTemplateScriptFailJSONMocked ¶
func UpdateTemplateScriptFailJSONMocked(t *testing.T, dr *types.TemplateScript) *types.TemplateScript
UpdateTemplateScriptFailJSONMocked test mocked function
func UpdateTemplateScriptFailStatusMocked ¶
func UpdateTemplateScriptFailStatusMocked(t *testing.T, dr *types.TemplateScript) *types.TemplateScript
UpdateTemplateScriptFailStatusMocked test mocked function
func UpdateTemplateScriptMocked ¶
func UpdateTemplateScriptMocked(t *testing.T, dr *types.TemplateScript) *types.TemplateScript
UpdateTemplateScriptMocked test mocked function
Types ¶
type BootstrappingService ¶ added in v0.8.0
type BootstrappingService struct {
// contains filtered or unexported fields
}
BootstrappingService manages bootstrapping operations
func NewBootstrappingService ¶ added in v0.8.0
func NewBootstrappingService(concertoService utils.ConcertoService) (*BootstrappingService, error)
NewBootstrappingService returns a bootstrapping service
func (*BootstrappingService) DownloadPolicyfile ¶ added in v0.8.0
func (bs *BootstrappingService) DownloadPolicyfile(url string, filePath string) (realFileName string, status int, err error)
DownloadPolicyfile gets a file from given url saving file into given file path
func (*BootstrappingService) GetBootstrappingConfiguration ¶ added in v0.8.0
func (bs *BootstrappingService) GetBootstrappingConfiguration() (bootstrappingConfigurations *types.BootstrappingConfiguration, status int, err error)
GetBootstrappingConfiguration returns the list of policy files as a JSON response with the desired configuration changes
func (*BootstrappingService) ReportBootstrappingAppliedConfiguration ¶ added in v0.8.0
func (bs *BootstrappingService) ReportBootstrappingAppliedConfiguration(BootstrappingAppliedConfigurationVector *map[string]interface{}) (err error)
ReportBootstrappingAppliedConfiguration
func (*BootstrappingService) ReportBootstrappingLog ¶ added in v0.8.0
func (bs *BootstrappingService) ReportBootstrappingLog(BootstrappingContinuousReportVector *map[string]interface{}) (command *types.BootstrappingContinuousReport, status int, err error)
ReportBootstrappingLog reports a policy files application result
type ScriptService ¶
type ScriptService struct {
// contains filtered or unexported fields
}
ScriptService manages scripts operations
func NewScriptService ¶
func NewScriptService(concertoService utils.ConcertoService) (*ScriptService, error)
NewScriptService returns a Concerto script service
func (*ScriptService) CreateScript ¶
func (sc *ScriptService) CreateScript(scriptVector *map[string]interface{}) (script *types.Script, err error)
CreateScript creates a script
func (*ScriptService) DeleteScript ¶
func (sc *ScriptService) DeleteScript(ID string) (err error)
DeleteScript deletes a script by its ID
func (*ScriptService) GetScript ¶
func (sc *ScriptService) GetScript(ID string) (script *types.Script, err error)
GetScript returns a script by its ID
func (*ScriptService) GetScriptList ¶
func (sc *ScriptService) GetScriptList() (scripts []types.Script, err error)
GetScriptsList returns the list of scripts as an array of Scripts
func (*ScriptService) UpdateScript ¶
func (sc *ScriptService) UpdateScript(scriptVector *map[string]interface{}, ID string) (script *types.Script, err error)
UpdateScript updates a script by its ID
type ServicesService ¶
type ServicesService struct {
// contains filtered or unexported fields
}
ServicesService manages service operations
func NewServicesService ¶
func NewServicesService(concertoService utils.ConcertoService) (*ServicesService, error)
NewServicesService returns a Concerto service service
func (*ServicesService) GetService ¶
func (ss *ServicesService) GetService(ID string) (service *types.Service, err error)
GetService returns a service by its ID
func (*ServicesService) GetServiceList ¶
func (ss *ServicesService) GetServiceList() (services []types.Service, err error)
GetServiceList returns the list of services as an array of Service
type TemplateService ¶
type TemplateService struct {
// contains filtered or unexported fields
}
TemplateService manages template operations
func NewTemplateService ¶
func NewTemplateService(concertoService utils.ConcertoService) (*TemplateService, error)
NewTemplateService returns a Concerto template service
func (*TemplateService) CreateTemplate ¶
func (tp *TemplateService) CreateTemplate(templateVector *map[string]interface{}) (template *types.Template, err error)
CreateTemplate creates a template
func (*TemplateService) CreateTemplateScript ¶
func (tp *TemplateService) CreateTemplateScript(templateScriptVector *map[string]interface{}, templateID string) (templateScript *types.TemplateScript, err error)
CreateTemplateScript returns a list of templateScript
func (*TemplateService) DeleteTemplate ¶
func (tp *TemplateService) DeleteTemplate(ID string) (err error)
DeleteTemplate deletes a template by its ID
func (*TemplateService) DeleteTemplateScript ¶
func (tp *TemplateService) DeleteTemplateScript(templateID string, ID string) (err error)
DeleteTemplateScript deletes a template record
func (*TemplateService) GetTemplate ¶
func (tp *TemplateService) GetTemplate(ID string) (template *types.Template, err error)
GetTemplate returns a template by its ID
func (*TemplateService) GetTemplateList ¶
func (tp *TemplateService) GetTemplateList() (templates []types.Template, err error)
GetTemplateList returns the list of templates as an array of Template
func (*TemplateService) GetTemplateScript ¶
func (tp *TemplateService) GetTemplateScript(templateID string, ID string) (templateScript *types.TemplateScript, err error)
GetTemplateScript returns a templateScript
func (*TemplateService) GetTemplateScriptList ¶
func (tp *TemplateService) GetTemplateScriptList(templateID string, scriptType string) (templateScript *[]types.TemplateScript, err error)
GetTemplateScriptList returns a list of templateScript by template ID
func (*TemplateService) GetTemplateServerList ¶
func (tp *TemplateService) GetTemplateServerList(templateID string) (templateServer *[]types.TemplateServer, err error)
GetTemplateServerList returns a list of templateServers by template ID
func (*TemplateService) ReorderTemplateScript ¶
func (tp *TemplateService) ReorderTemplateScript(templateScriptVector *map[string]interface{}, templateID string) (templateScript *[]types.TemplateScript, err error)
ReorderTemplateScript returns a list of templateScript
func (*TemplateService) UpdateTemplate ¶
func (tp *TemplateService) UpdateTemplate(templateVector *map[string]interface{}, ID string) (template *types.Template, err error)
UpdateTemplate updates a template by its ID
func (*TemplateService) UpdateTemplateScript ¶
func (tp *TemplateService) UpdateTemplateScript(templateScriptVector *map[string]interface{}, templateID string, ID string) (templateScript *types.TemplateScript, err error)
UpdateTemplateScript returns a list of templateScript