Documentation ¶
Index ¶
- Constants
- func AddScriptAttachmentFailErrMocked(t *testing.T, attachmentIn *types.Attachment, scriptID string) *types.Attachment
- func AddScriptAttachmentFailJSONMocked(t *testing.T, attachmentIn *types.Attachment, scriptID string) *types.Attachment
- func AddScriptAttachmentFailStatusMocked(t *testing.T, attachmentIn *types.Attachment, scriptID string) *types.Attachment
- func AddScriptAttachmentMocked(t *testing.T, attachmentIn *types.Attachment, scriptID string) *types.Attachment
- func CompileTemplateFailErrMocked(t *testing.T, templateIn *types.Template) *types.Template
- func CompileTemplateFailJSONMocked(t *testing.T, templateIn *types.Template) *types.Template
- func CompileTemplateFailStatusMocked(t *testing.T, templateIn *types.Template) *types.Template
- func CompileTemplateMocked(t *testing.T, templateIn *types.Template) *types.Template
- func CreateCookbookVersionFailErrMocked(t *testing.T, cbIn *types.CookbookVersion) *types.CookbookVersion
- func CreateCookbookVersionFailJSONMocked(t *testing.T, cbIn *types.CookbookVersion) *types.CookbookVersion
- func CreateCookbookVersionFailStatusMocked(t *testing.T, cbIn *types.CookbookVersion) *types.CookbookVersion
- func CreateCookbookVersionMocked(t *testing.T, cbIn *types.CookbookVersion) *types.CookbookVersion
- 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 DeleteAttachmentFailErrMocked(t *testing.T, attachmentIn *types.Attachment)
- func DeleteAttachmentFailStatusMocked(t *testing.T, attachmentIn *types.Attachment)
- func DeleteAttachmentMocked(t *testing.T, attachmentIn *types.Attachment)
- func DeleteCookbookVersionFailErrMocked(t *testing.T, cbIn *types.CookbookVersion)
- func DeleteCookbookVersionFailStatusMocked(t *testing.T, cbIn *types.CookbookVersion)
- func DeleteCookbookVersionMocked(t *testing.T, cbIn *types.CookbookVersion)
- 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 DownloadAttachmentFailErrMocked(t *testing.T, dataIn map[string]string)
- func DownloadAttachmentMocked(t *testing.T, dataIn map[string]string)
- func DownloadPolicyfileFailErrMocked(t *testing.T, dataIn map[string]string)
- func DownloadPolicyfileMocked(t *testing.T, dataIn map[string]string)
- func GetAttachmentFailErrMocked(t *testing.T, attachmentIn *types.Attachment) *types.Attachment
- func GetAttachmentFailJSONMocked(t *testing.T, attachmentIn *types.Attachment) *types.Attachment
- func GetAttachmentFailStatusMocked(t *testing.T, attachmentIn *types.Attachment) *types.Attachment
- func GetAttachmentMocked(t *testing.T, attachmentIn *types.Attachment) *types.Attachment
- 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 GetCookbookVersionFailErrMocked(t *testing.T, cbIn *types.CookbookVersion) *types.CookbookVersion
- func GetCookbookVersionFailJSONMocked(t *testing.T, cbIn *types.CookbookVersion) *types.CookbookVersion
- func GetCookbookVersionFailStatusMocked(t *testing.T, cbIn *types.CookbookVersion) *types.CookbookVersion
- func GetCookbookVersionMocked(t *testing.T, cbIn *types.CookbookVersion) *types.CookbookVersion
- 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 GetScriptMocked(t *testing.T, script *types.Script) *types.Script
- 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 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 GetTemplateScriptMocked(t *testing.T, dr *types.TemplateScript) *types.TemplateScript
- func ListCookbookVersionsFailErrMocked(t *testing.T, cbsIn []*types.CookbookVersion) []*types.CookbookVersion
- func ListCookbookVersionsFailJSONMocked(t *testing.T, cbsIn []*types.CookbookVersion) []*types.CookbookVersion
- func ListCookbookVersionsFailStatusMocked(t *testing.T, cbsIn []*types.CookbookVersion) []*types.CookbookVersion
- func ListCookbookVersionsMocked(t *testing.T, cbsIn []*types.CookbookVersion) []*types.CookbookVersion
- func ListScriptAttachmentsFailErrMocked(t *testing.T, attachmentsIn []*types.Attachment, scriptID string) []*types.Attachment
- func ListScriptAttachmentsFailJSONMocked(t *testing.T, attachmentsIn []*types.Attachment, scriptID string) []*types.Attachment
- func ListScriptAttachmentsFailStatusMocked(t *testing.T, attachmentsIn []*types.Attachment, scriptID string) []*types.Attachment
- func ListScriptAttachmentsMocked(t *testing.T, attachmentsIn []*types.Attachment, scriptID string) []*types.Attachment
- func ListScriptsFailErrMocked(t *testing.T, scriptsIn []*types.Script) []*types.Script
- func ListScriptsFailJSONMocked(t *testing.T, scriptsIn []*types.Script) []*types.Script
- func ListScriptsFailStatusMocked(t *testing.T, scriptsIn []*types.Script) []*types.Script
- func ListScriptsMocked(t *testing.T, scriptsIn []*types.Script) []*types.Script
- func ListTemplateScriptsFailErrMocked(t *testing.T, templateScriptsIn []*types.TemplateScript, templateID string, ...) []*types.TemplateScript
- func ListTemplateScriptsFailJSONMocked(t *testing.T, templateScriptsIn []*types.TemplateScript, templateID string, ...) []*types.TemplateScript
- func ListTemplateScriptsFailStatusMocked(t *testing.T, templateScriptsIn []*types.TemplateScript, templateID string, ...) []*types.TemplateScript
- func ListTemplateScriptsMocked(t *testing.T, templateScriptsIn []*types.TemplateScript, templateID string, ...) []*types.TemplateScript
- func ListTemplateServersFailErrMocked(t *testing.T, templateServersIn []*types.TemplateServer, templateID string) []*types.TemplateServer
- func ListTemplateServersFailJSONMocked(t *testing.T, templateServersIn []*types.TemplateServer, templateID string) []*types.TemplateServer
- func ListTemplateServersFailStatusMocked(t *testing.T, templateServersIn []*types.TemplateServer, templateID string) []*types.TemplateServer
- func ListTemplateServersMocked(t *testing.T, templateServersIn []*types.TemplateServer, templateID string) []*types.TemplateServer
- func ListTemplatesFailErrMocked(t *testing.T, templatesIn []*types.Template) []*types.Template
- func ListTemplatesFailJSONMocked(t *testing.T, templatesIn []*types.Template) []*types.Template
- func ListTemplatesFailStatusMocked(t *testing.T, templatesIn []*types.Template) []*types.Template
- func ListTemplatesMocked(t *testing.T, templatesIn []*types.Template) []*types.Template
- func ProcessCookbookVersionFailErrMocked(t *testing.T, cbIn *types.CookbookVersion) *types.CookbookVersion
- func ProcessCookbookVersionFailJSONMocked(t *testing.T, cbIn *types.CookbookVersion) *types.CookbookVersion
- func ProcessCookbookVersionFailStatusMocked(t *testing.T, cbIn *types.CookbookVersion) *types.CookbookVersion
- func ProcessCookbookVersionMocked(t *testing.T, cbIn *types.CookbookVersion) *types.CookbookVersion
- 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
- func UploadCookbookVersionFailErrMocked(t *testing.T, cbIn *types.CookbookVersion)
- func UploadCookbookVersionFailStatusMocked(t *testing.T, cbIn *types.CookbookVersion)
- func UploadCookbookVersionMocked(t *testing.T, cbIn *types.CookbookVersion)
- func UploadScriptAttachmentFailErrMocked(t *testing.T, attachmentIn *types.Attachment)
- func UploadScriptAttachmentFailStatusMocked(t *testing.T, attachmentIn *types.Attachment)
- func UploadScriptAttachmentMocked(t *testing.T, attachmentIn *types.Attachment)
- func UploadedScriptAttachmentFailErrMocked(t *testing.T, attachmentIn *types.Attachment) *types.Attachment
- func UploadedScriptAttachmentFailJSONMocked(t *testing.T, attachmentIn *types.Attachment) *types.Attachment
- func UploadedScriptAttachmentFailStatusMocked(t *testing.T, attachmentIn *types.Attachment) *types.Attachment
- func UploadedScriptAttachmentMocked(t *testing.T, attachmentIn *types.Attachment) *types.Attachment
- type AttachmentService
- func (as *AttachmentService) DeleteAttachment(attachmentID string) (err error)
- func (as *AttachmentService) DownloadAttachment(url string, filePath string) (realFileName string, status int, err error)
- func (as *AttachmentService) GetAttachment(attachmentID string) (attachment *types.Attachment, err error)
- 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(bootstrappingAppliedConfigurationParams *map[string]interface{}) (err error)
- func (bs *BootstrappingService) ReportBootstrappingLog(bootstrappingContinuousReportParams *map[string]interface{}) (command *types.BootstrappingContinuousReport, status int, err error)
- type CookbookVersionService
- func (cvs *CookbookVersionService) CreateCookbookVersion(cookbookVersionParams *map[string]interface{}) (cookbookVersion *types.CookbookVersion, err error)
- func (cvs *CookbookVersionService) DeleteCookbookVersion(cookbookVersionID string) (err error)
- func (cvs *CookbookVersionService) GetCookbookVersion(cookbookVersionID string) (cookbookVersion *types.CookbookVersion, err error)
- func (cvs *CookbookVersionService) ListCookbookVersions() (cookbookVersions []*types.CookbookVersion, err error)
- func (cvs *CookbookVersionService) ProcessCookbookVersion(cookbookVersionID string, cookbookVersionParams *map[string]interface{}) (cookbookVersion *types.CookbookVersion, err error)
- func (cvs *CookbookVersionService) UploadCookbookVersion(sourceFilePath string, targetURL string) error
- type ScriptService
- func (sc *ScriptService) AddScriptAttachment(scriptID string, attachmentIn *map[string]interface{}) (script *types.Attachment, err error)
- func (sc *ScriptService) CreateScript(scriptParams *map[string]interface{}) (script *types.Script, err error)
- func (sc *ScriptService) DeleteScript(scriptID string) (err error)
- func (sc *ScriptService) GetScript(scriptID string) (script *types.Script, err error)
- func (sc *ScriptService) ListScriptAttachments(scriptID string) (attachments []*types.Attachment, err error)
- func (sc *ScriptService) ListScripts() (scripts []*types.Script, err error)
- func (sc *ScriptService) UpdateScript(scriptID string, scriptParams *map[string]interface{}) (script *types.Script, err error)
- func (sc *ScriptService) UploadScriptAttachment(sourceFilePath string, targetURL string) error
- func (sc *ScriptService) UploadedScriptAttachment(attachmentID string, attachmentParams *map[string]interface{}) (attachment *types.Attachment, err error)
- type TemplateService
- func (ts *TemplateService) CompileTemplate(templateID string, payload *map[string]interface{}) (template *types.Template, err error)
- func (ts *TemplateService) CreateTemplate(templateParams *map[string]interface{}) (template *types.Template, err error)
- func (ts *TemplateService) CreateTemplateScript(templateID string, templateScriptParams *map[string]interface{}) (templateScript *types.TemplateScript, err error)
- func (ts *TemplateService) DeleteTemplate(templateID string) (err error)
- func (ts *TemplateService) DeleteTemplateScript(templateID string, templateScriptID string) (err error)
- func (ts *TemplateService) GetTemplate(templateID string) (template *types.Template, err error)
- func (ts *TemplateService) GetTemplateScript(templateID string, templateScriptID string) (templateScript *types.TemplateScript, err error)
- func (ts *TemplateService) ListTemplateScripts(templateID string, scriptType string) (templateScript []*types.TemplateScript, err error)
- func (ts *TemplateService) ListTemplateServers(templateID string) (templateServer []*types.TemplateServer, err error)
- func (ts *TemplateService) ListTemplates() (templates []*types.Template, err error)
- func (ts *TemplateService) ReorderTemplateScript(templateID string, templateScriptParams *map[string]interface{}) (templateScript []*types.TemplateScript, err error)
- func (ts *TemplateService) UpdateTemplate(templateID string, templateParams *map[string]interface{}) (template *types.Template, err error)
- func (ts *TemplateService) UpdateTemplateScript(templateID string, templateScriptID string, ...) (templateScript *types.TemplateScript, err error)
Constants ¶
const APIPathBlueprintAppliedConfiguration = "/blueprint/applied_configuration"
const APIPathBlueprintAttachment = "/blueprint/attachments/%s"
const APIPathBlueprintBootstrapLogs = "/blueprint/bootstrap_logs"
const APIPathBlueprintConfiguration = "/blueprint/configuration"
const APIPathBlueprintCookbookVersion = "/blueprint/cookbook_versions/%s"
const APIPathBlueprintCookbookVersionProcess = "/blueprint/cookbook_versions/%s/process"
const APIPathBlueprintCookbookVersions = "/blueprint/cookbook_versions"
const APIPathBlueprintScript = "/blueprint/scripts/%s"
const APIPathBlueprintScriptAttachmentUploaded = "/blueprint/attachments/%s/uploaded"
const APIPathBlueprintScriptAttachments = "/blueprint/scripts/%s/attachments"
const APIPathBlueprintScripts = "/blueprint/scripts"
const APIPathBlueprintTemplate = "/blueprint/templates/%s"
const APIPathBlueprintTemplateCompile = "/blueprint/templates/%s/compile"
const APIPathBlueprintTemplateScript = "/blueprint/templates/%s/scripts/%s"
const APIPathBlueprintTemplateScripts = "/blueprint/templates/%s/scripts"
const APIPathBlueprintTemplateScriptsByType = "/blueprint/templates/%s/scripts?type=%s"
const APIPathBlueprintTemplateScriptsReorder = "/blueprint/templates/%s/scripts/reorder"
const APIPathBlueprintTemplateServers = "/blueprint/templates/%s/servers"
const APIPathBlueprintTemplates = "/blueprint/templates"
Variables ¶
This section is empty.
Functions ¶
func AddScriptAttachmentFailErrMocked ¶ added in v0.9.0
func AddScriptAttachmentFailErrMocked(t *testing.T, attachmentIn *types.Attachment, scriptID string) *types.Attachment
AddScriptAttachmentFailErrMocked test mocked function
func AddScriptAttachmentFailJSONMocked ¶ added in v0.9.0
func AddScriptAttachmentFailJSONMocked( t *testing.T, attachmentIn *types.Attachment, scriptID string, ) *types.Attachment
AddScriptAttachmentFailJSONMocked test mocked function
func AddScriptAttachmentFailStatusMocked ¶ added in v0.9.0
func AddScriptAttachmentFailStatusMocked( t *testing.T, attachmentIn *types.Attachment, scriptID string, ) *types.Attachment
AddScriptAttachmentFailStatusMocked test mocked function
func AddScriptAttachmentMocked ¶ added in v0.9.0
func AddScriptAttachmentMocked(t *testing.T, attachmentIn *types.Attachment, scriptID string) *types.Attachment
AddScriptAttachmentMocked test mocked function
func CompileTemplateFailErrMocked ¶ added in v0.9.0
CompileTemplateFailErrMocked test mocked function
func CompileTemplateFailJSONMocked ¶ added in v0.9.0
CompileTemplateFailJSONMocked test mocked function
func CompileTemplateFailStatusMocked ¶ added in v0.9.0
CompileTemplateFailStatusMocked test mocked function
func CompileTemplateMocked ¶ added in v0.9.0
CompileTemplateMocked test mocked function
func CreateCookbookVersionFailErrMocked ¶ added in v0.9.0
func CreateCookbookVersionFailErrMocked(t *testing.T, cbIn *types.CookbookVersion) *types.CookbookVersion
CreateCookbookVersionFailErrMocked test mocked function
func CreateCookbookVersionFailJSONMocked ¶ added in v0.9.0
func CreateCookbookVersionFailJSONMocked(t *testing.T, cbIn *types.CookbookVersion) *types.CookbookVersion
CreateCookbookVersionFailJSONMocked test mocked function
func CreateCookbookVersionFailStatusMocked ¶ added in v0.9.0
func CreateCookbookVersionFailStatusMocked(t *testing.T, cbIn *types.CookbookVersion) *types.CookbookVersion
CreateCookbookVersionFailStatusMocked test mocked function
func CreateCookbookVersionMocked ¶ added in v0.9.0
func CreateCookbookVersionMocked(t *testing.T, cbIn *types.CookbookVersion) *types.CookbookVersion
CreateCookbookVersionMocked test mocked function
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 DeleteAttachmentFailErrMocked ¶ added in v0.9.0
func DeleteAttachmentFailErrMocked(t *testing.T, attachmentIn *types.Attachment)
DeleteAttachmentFailErrMocked test mocked function
func DeleteAttachmentFailStatusMocked ¶ added in v0.9.0
func DeleteAttachmentFailStatusMocked(t *testing.T, attachmentIn *types.Attachment)
DeleteAttachmentFailStatusMocked test mocked function
func DeleteAttachmentMocked ¶ added in v0.9.0
func DeleteAttachmentMocked(t *testing.T, attachmentIn *types.Attachment)
DeleteAttachmentMocked test mocked function
func DeleteCookbookVersionFailErrMocked ¶ added in v0.9.0
func DeleteCookbookVersionFailErrMocked(t *testing.T, cbIn *types.CookbookVersion)
DeleteCookbookVersionFailErrMocked test mocked function
func DeleteCookbookVersionFailStatusMocked ¶ added in v0.9.0
func DeleteCookbookVersionFailStatusMocked(t *testing.T, cbIn *types.CookbookVersion)
DeleteCookbookVersionFailStatusMocked test mocked function
func DeleteCookbookVersionMocked ¶ added in v0.9.0
func DeleteCookbookVersionMocked(t *testing.T, cbIn *types.CookbookVersion)
DeleteCookbookVersionMocked 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 DownloadAttachmentFailErrMocked ¶ added in v0.9.0
DownloadAttachmentFailErrMocked test mocked function
func DownloadAttachmentMocked ¶ added in v0.9.0
DownloadAttachmentMocked test mocked function
func DownloadPolicyfileFailErrMocked ¶ added in v0.8.0
DownloadPolicyfileFailErrMocked test mocked function
func DownloadPolicyfileMocked ¶ added in v0.8.0
DownloadPolicyfileMocked test mocked function
func GetAttachmentFailErrMocked ¶ added in v0.9.0
func GetAttachmentFailErrMocked(t *testing.T, attachmentIn *types.Attachment) *types.Attachment
GetAttachmentFailErrMocked test mocked function
func GetAttachmentFailJSONMocked ¶ added in v0.9.0
func GetAttachmentFailJSONMocked(t *testing.T, attachmentIn *types.Attachment) *types.Attachment
GetAttachmentFailJSONMocked test mocked function
func GetAttachmentFailStatusMocked ¶ added in v0.9.0
func GetAttachmentFailStatusMocked(t *testing.T, attachmentIn *types.Attachment) *types.Attachment
GetAttachmentFailStatusMocked test mocked function
func GetAttachmentMocked ¶ added in v0.9.0
func GetAttachmentMocked(t *testing.T, attachmentIn *types.Attachment) *types.Attachment
GetAttachmentMocked test mocked function
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 GetCookbookVersionFailErrMocked ¶ added in v0.9.0
func GetCookbookVersionFailErrMocked(t *testing.T, cbIn *types.CookbookVersion) *types.CookbookVersion
GetCookbookVersionFailErrMocked test mocked function
func GetCookbookVersionFailJSONMocked ¶ added in v0.9.0
func GetCookbookVersionFailJSONMocked(t *testing.T, cbIn *types.CookbookVersion) *types.CookbookVersion
GetCookbookVersionFailJSONMocked test mocked function
func GetCookbookVersionFailStatusMocked ¶ added in v0.9.0
func GetCookbookVersionFailStatusMocked(t *testing.T, cbIn *types.CookbookVersion) *types.CookbookVersion
GetCookbookVersionFailStatusMocked test mocked function
func GetCookbookVersionMocked ¶ added in v0.9.0
func GetCookbookVersionMocked(t *testing.T, cbIn *types.CookbookVersion) *types.CookbookVersion
GetCookbookVersionMocked test mocked function
func GetScriptFailErrMocked ¶
GetScriptFailErrMocked test mocked function
func GetScriptFailJSONMocked ¶
GetScriptFailJSONMocked test mocked function
func GetScriptFailStatusMocked ¶
GetScriptFailStatusMocked test mocked function
func GetScriptMocked ¶
GetScriptMocked test mocked function
func GetTemplateFailErrMocked ¶
GetTemplateFailErrMocked test mocked function
func GetTemplateFailJSONMocked ¶
GetTemplateFailJSONMocked test mocked function
func GetTemplateFailStatusMocked ¶
GetTemplateFailStatusMocked 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 GetTemplateScriptMocked ¶
func GetTemplateScriptMocked(t *testing.T, dr *types.TemplateScript) *types.TemplateScript
GetTemplateScriptMocked test mocked function
func ListCookbookVersionsFailErrMocked ¶ added in v0.12.0
func ListCookbookVersionsFailErrMocked(t *testing.T, cbsIn []*types.CookbookVersion) []*types.CookbookVersion
ListCookbookVersionsFailErrMocked test mocked function
func ListCookbookVersionsFailJSONMocked ¶ added in v0.12.0
func ListCookbookVersionsFailJSONMocked(t *testing.T, cbsIn []*types.CookbookVersion) []*types.CookbookVersion
ListCookbookVersionsFailJSONMocked test mocked function
func ListCookbookVersionsFailStatusMocked ¶ added in v0.12.0
func ListCookbookVersionsFailStatusMocked(t *testing.T, cbsIn []*types.CookbookVersion) []*types.CookbookVersion
ListCookbookVersionsFailStatusMocked test mocked function
func ListCookbookVersionsMocked ¶ added in v0.12.0
func ListCookbookVersionsMocked(t *testing.T, cbsIn []*types.CookbookVersion) []*types.CookbookVersion
ListCookbookVersionsMocked test mocked function
func ListScriptAttachmentsFailErrMocked ¶ added in v0.9.0
func ListScriptAttachmentsFailErrMocked( t *testing.T, attachmentsIn []*types.Attachment, scriptID string, ) []*types.Attachment
ListScriptAttachmentsFailErrMocked test mocked function
func ListScriptAttachmentsFailJSONMocked ¶ added in v0.9.0
func ListScriptAttachmentsFailJSONMocked( t *testing.T, attachmentsIn []*types.Attachment, scriptID string, ) []*types.Attachment
ListScriptAttachmentsFailJSONMocked test mocked function
func ListScriptAttachmentsFailStatusMocked ¶ added in v0.9.0
func ListScriptAttachmentsFailStatusMocked( t *testing.T, attachmentsIn []*types.Attachment, scriptID string, ) []*types.Attachment
ListScriptAttachmentsFailStatusMocked test mocked function
func ListScriptAttachmentsMocked ¶ added in v0.9.0
func ListScriptAttachmentsMocked(t *testing.T, attachmentsIn []*types.Attachment, scriptID string) []*types.Attachment
ListScriptAttachmentsMocked test mocked function
func ListScriptsFailErrMocked ¶ added in v0.12.0
ListScriptsFailErrMocked test mocked function
func ListScriptsFailJSONMocked ¶ added in v0.12.0
ListScriptsFailJSONMocked test mocked function
func ListScriptsFailStatusMocked ¶ added in v0.12.0
ListScriptsFailStatusMocked test mocked function
func ListScriptsMocked ¶ added in v0.12.0
ListScriptsMocked test mocked function
func ListTemplateScriptsFailErrMocked ¶ added in v0.12.0
func ListTemplateScriptsFailErrMocked( t *testing.T, templateScriptsIn []*types.TemplateScript, templateID string, scriptType string, ) []*types.TemplateScript
ListTemplateScriptsFailErrMocked test mocked function
func ListTemplateScriptsFailJSONMocked ¶ added in v0.12.0
func ListTemplateScriptsFailJSONMocked( t *testing.T, templateScriptsIn []*types.TemplateScript, templateID string, scriptType string, ) []*types.TemplateScript
ListTemplateScriptsFailJSONMocked test mocked function
func ListTemplateScriptsFailStatusMocked ¶ added in v0.12.0
func ListTemplateScriptsFailStatusMocked( t *testing.T, templateScriptsIn []*types.TemplateScript, templateID string, scriptType string, ) []*types.TemplateScript
ListTemplateScriptsFailStatusMocked test mocked function
func ListTemplateScriptsMocked ¶ added in v0.12.0
func ListTemplateScriptsMocked( t *testing.T, templateScriptsIn []*types.TemplateScript, templateID string, scriptType string, ) []*types.TemplateScript
ListTemplateScriptsMocked test mocked function
func ListTemplateServersFailErrMocked ¶ added in v0.12.0
func ListTemplateServersFailErrMocked( t *testing.T, templateServersIn []*types.TemplateServer, templateID string, ) []*types.TemplateServer
ListTemplateServersFailErrMocked test mocked function
func ListTemplateServersFailJSONMocked ¶ added in v0.12.0
func ListTemplateServersFailJSONMocked( t *testing.T, templateServersIn []*types.TemplateServer, templateID string, ) []*types.TemplateServer
ListTemplateServersFailJSONMocked test mocked function
func ListTemplateServersFailStatusMocked ¶ added in v0.12.0
func ListTemplateServersFailStatusMocked( t *testing.T, templateServersIn []*types.TemplateServer, templateID string, ) []*types.TemplateServer
ListTemplateServersFailStatusMocked test mocked function
func ListTemplateServersMocked ¶ added in v0.12.0
func ListTemplateServersMocked( t *testing.T, templateServersIn []*types.TemplateServer, templateID string, ) []*types.TemplateServer
ListTemplateServersMocked test mocked function
func ListTemplatesFailErrMocked ¶ added in v0.12.0
ListTemplatesFailErrMocked test mocked function
func ListTemplatesFailJSONMocked ¶ added in v0.12.0
ListTemplatesFailJSONMocked test mocked function
func ListTemplatesFailStatusMocked ¶ added in v0.12.0
ListTemplatesFailStatusMocked test mocked function
func ListTemplatesMocked ¶ added in v0.12.0
ListTemplatesMocked test mocked function
func ProcessCookbookVersionFailErrMocked ¶ added in v0.9.0
func ProcessCookbookVersionFailErrMocked(t *testing.T, cbIn *types.CookbookVersion) *types.CookbookVersion
ProcessCookbookVersionFailErrMocked test mocked function
func ProcessCookbookVersionFailJSONMocked ¶ added in v0.9.0
func ProcessCookbookVersionFailJSONMocked(t *testing.T, cbIn *types.CookbookVersion) *types.CookbookVersion
ProcessCookbookVersionFailJSONMocked test mocked function
func ProcessCookbookVersionFailStatusMocked ¶ added in v0.9.0
func ProcessCookbookVersionFailStatusMocked(t *testing.T, cbIn *types.CookbookVersion) *types.CookbookVersion
ProcessCookbookVersionFailStatusMocked test mocked function
func ProcessCookbookVersionMocked ¶ added in v0.9.0
func ProcessCookbookVersionMocked(t *testing.T, cbIn *types.CookbookVersion) *types.CookbookVersion
ProcessCookbookVersionMocked 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
func UploadCookbookVersionFailErrMocked ¶ added in v0.9.0
func UploadCookbookVersionFailErrMocked(t *testing.T, cbIn *types.CookbookVersion)
UploadCookbookVersionFailErrMocked test mocked function
func UploadCookbookVersionFailStatusMocked ¶ added in v0.9.0
func UploadCookbookVersionFailStatusMocked(t *testing.T, cbIn *types.CookbookVersion)
UploadCookbookVersionFailStatusMocked test mocked function
func UploadCookbookVersionMocked ¶ added in v0.9.0
func UploadCookbookVersionMocked(t *testing.T, cbIn *types.CookbookVersion)
UploadCookbookVersionMocked test mocked function
func UploadScriptAttachmentFailErrMocked ¶ added in v0.9.0
func UploadScriptAttachmentFailErrMocked(t *testing.T, attachmentIn *types.Attachment)
UploadScriptAttachmentFailErrMocked test mocked function
func UploadScriptAttachmentFailStatusMocked ¶ added in v0.9.0
func UploadScriptAttachmentFailStatusMocked(t *testing.T, attachmentIn *types.Attachment)
UploadScriptAttachmentFailStatusMocked test mocked function
func UploadScriptAttachmentMocked ¶ added in v0.9.0
func UploadScriptAttachmentMocked(t *testing.T, attachmentIn *types.Attachment)
UploadScriptAttachmentMocked test mocked function
func UploadedScriptAttachmentFailErrMocked ¶ added in v0.9.0
func UploadedScriptAttachmentFailErrMocked(t *testing.T, attachmentIn *types.Attachment) *types.Attachment
UploadedScriptAttachmentFailErrMocked test mocked function
func UploadedScriptAttachmentFailJSONMocked ¶ added in v0.9.0
func UploadedScriptAttachmentFailJSONMocked(t *testing.T, attachmentIn *types.Attachment) *types.Attachment
UploadedScriptAttachmentFailJSONMocked test mocked function
func UploadedScriptAttachmentFailStatusMocked ¶ added in v0.9.0
func UploadedScriptAttachmentFailStatusMocked(t *testing.T, attachmentIn *types.Attachment) *types.Attachment
UploadedScriptAttachmentFailStatusMocked test mocked function
func UploadedScriptAttachmentMocked ¶ added in v0.9.0
func UploadedScriptAttachmentMocked(t *testing.T, attachmentIn *types.Attachment) *types.Attachment
UploadedScriptAttachmentMocked test mocked function
Types ¶
type AttachmentService ¶ added in v0.9.0
type AttachmentService struct {
// contains filtered or unexported fields
}
AttachmentService manages attachment operations
func NewAttachmentService ¶ added in v0.9.0
func NewAttachmentService(concertoService utils.ConcertoService) (*AttachmentService, error)
NewAttachmentService returns a Concerto attachment service
func (*AttachmentService) DeleteAttachment ¶ added in v0.9.0
func (as *AttachmentService) DeleteAttachment(attachmentID string) (err error)
DeleteAttachment deletes a attachment by its ID
func (*AttachmentService) DownloadAttachment ¶ added in v0.9.0
func (as *AttachmentService) DownloadAttachment( url string, filePath string, ) (realFileName string, status int, err error)
DownloadAttachment gets an attachment file from given url saving file into given file path
func (*AttachmentService) GetAttachment ¶ added in v0.9.0
func (as *AttachmentService) GetAttachment(attachmentID string) (attachment *types.Attachment, err error)
GetAttachment returns a attachment by its ID
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( bootstrappingAppliedConfigurationParams *map[string]interface{}, ) (err error)
ReportBootstrappingAppliedConfiguration informs the platform of applied changes
func (*BootstrappingService) ReportBootstrappingLog ¶ added in v0.8.0
func (bs *BootstrappingService) ReportBootstrappingLog( bootstrappingContinuousReportParams *map[string]interface{}, ) (command *types.BootstrappingContinuousReport, status int, err error)
ReportBootstrappingLog reports a policy files application result
type CookbookVersionService ¶ added in v0.9.0
type CookbookVersionService struct {
// contains filtered or unexported fields
}
CookbookVersionService manages cookbook version operations
func NewCookbookVersionService ¶ added in v0.9.0
func NewCookbookVersionService(concertoService utils.ConcertoService) (*CookbookVersionService, error)
NewCookbookVersionService returns a Concerto cookbook version service
func (*CookbookVersionService) CreateCookbookVersion ¶ added in v0.9.0
func (cvs *CookbookVersionService) CreateCookbookVersion( cookbookVersionParams *map[string]interface{}, ) (cookbookVersion *types.CookbookVersion, err error)
CreateCookbookVersion creates a new cookbook version
func (*CookbookVersionService) DeleteCookbookVersion ¶ added in v0.9.0
func (cvs *CookbookVersionService) DeleteCookbookVersion(cookbookVersionID string) (err error)
DeleteCookbookVersion deletes a cookbook version by its ID
func (*CookbookVersionService) GetCookbookVersion ¶ added in v0.9.0
func (cvs *CookbookVersionService) GetCookbookVersion( cookbookVersionID string, ) (cookbookVersion *types.CookbookVersion, err error)
GetCookbookVersion returns a cookbook version by its ID
func (*CookbookVersionService) ListCookbookVersions ¶ added in v0.12.0
func (cvs *CookbookVersionService) ListCookbookVersions() (cookbookVersions []*types.CookbookVersion, err error)
ListCookbookVersions returns the list of cookbook versions as an array of CookbookVersion
func (*CookbookVersionService) ProcessCookbookVersion ¶ added in v0.9.0
func (cvs *CookbookVersionService) ProcessCookbookVersion( cookbookVersionID string, cookbookVersionParams *map[string]interface{}, ) (cookbookVersion *types.CookbookVersion, err error)
ProcessCookbookVersion process a cookbook version by its ID
func (*CookbookVersionService) UploadCookbookVersion ¶ added in v0.9.0
func (cvs *CookbookVersionService) UploadCookbookVersion(sourceFilePath string, targetURL string) error
UploadCookbookVersion uploads a cookbook version file
type ScriptService ¶
type ScriptService struct {
// contains filtered or unexported fields
}
ScriptService manages script operations
func NewScriptService ¶
func NewScriptService(concertoService utils.ConcertoService) (*ScriptService, error)
NewScriptService returns a Concerto script service
func (*ScriptService) AddScriptAttachment ¶ added in v0.9.0
func (sc *ScriptService) AddScriptAttachment( scriptID string, attachmentIn *map[string]interface{}, ) (script *types.Attachment, err error)
AddScriptAttachment adds an attachment to script by its ID
func (*ScriptService) CreateScript ¶
func (sc *ScriptService) CreateScript(scriptParams *map[string]interface{}) (script *types.Script, err error)
CreateScript creates a script
func (*ScriptService) DeleteScript ¶
func (sc *ScriptService) DeleteScript(scriptID string) (err error)
DeleteScript deletes a script by its ID
func (*ScriptService) GetScript ¶
func (sc *ScriptService) GetScript(scriptID string) (script *types.Script, err error)
GetScript returns a script by its ID
func (*ScriptService) ListScriptAttachments ¶ added in v0.9.0
func (sc *ScriptService) ListScriptAttachments(scriptID string) (attachments []*types.Attachment, err error)
ListScriptAttachments returns the list of Attachments for a given script ID
func (*ScriptService) ListScripts ¶ added in v0.12.0
func (sc *ScriptService) ListScripts() (scripts []*types.Script, err error)
ListScripts returns the list of scripts as an array of Scripts
func (*ScriptService) UpdateScript ¶
func (sc *ScriptService) UpdateScript( scriptID string, scriptParams *map[string]interface{}, ) (script *types.Script, err error)
UpdateScript updates a script by its ID
func (*ScriptService) UploadScriptAttachment ¶ added in v0.9.0
func (sc *ScriptService) UploadScriptAttachment(sourceFilePath string, targetURL string) error
UploadScriptAttachment uploads an attachment file
func (*ScriptService) UploadedScriptAttachment ¶ added in v0.9.0
func (sc *ScriptService) UploadedScriptAttachment( attachmentID string, attachmentParams *map[string]interface{}, ) (attachment *types.Attachment, err error)
UploadedScriptAttachment sets "uploaded" status to the attachment by its ID
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) CompileTemplate ¶ added in v0.9.0
func (ts *TemplateService) CompileTemplate( templateID string, payload *map[string]interface{}, ) (template *types.Template, err error)
CompileTemplate requests compile for a given template by its ID
func (*TemplateService) CreateTemplate ¶
func (ts *TemplateService) CreateTemplate( templateParams *map[string]interface{}, ) (template *types.Template, err error)
CreateTemplate creates a template
func (*TemplateService) CreateTemplateScript ¶
func (ts *TemplateService) CreateTemplateScript( templateID string, templateScriptParams *map[string]interface{}, ) (templateScript *types.TemplateScript, err error)
CreateTemplateScript creates a templateScript
func (*TemplateService) DeleteTemplate ¶
func (ts *TemplateService) DeleteTemplate(templateID string) (err error)
DeleteTemplate deletes a template by its ID
func (*TemplateService) DeleteTemplateScript ¶
func (ts *TemplateService) DeleteTemplateScript(templateID string, templateScriptID string) (err error)
DeleteTemplateScript deletes a template record
func (*TemplateService) GetTemplate ¶
func (ts *TemplateService) GetTemplate(templateID string) (template *types.Template, err error)
GetTemplate returns a template by its ID
func (*TemplateService) GetTemplateScript ¶
func (ts *TemplateService) GetTemplateScript( templateID string, templateScriptID string, ) (templateScript *types.TemplateScript, err error)
GetTemplateScript returns a templateScript
func (*TemplateService) ListTemplateScripts ¶ added in v0.12.0
func (ts *TemplateService) ListTemplateScripts( templateID string, scriptType string, ) (templateScript []*types.TemplateScript, err error)
ListTemplateScripts returns a list of templateScript by template ID
func (*TemplateService) ListTemplateServers ¶ added in v0.12.0
func (ts *TemplateService) ListTemplateServers(templateID string) (templateServer []*types.TemplateServer, err error)
ListTemplateServers returns a list of templateServers by template ID
func (*TemplateService) ListTemplates ¶ added in v0.12.0
func (ts *TemplateService) ListTemplates() (templates []*types.Template, err error)
ListTemplates returns the list of templates as an array of Template
func (*TemplateService) ReorderTemplateScript ¶
func (ts *TemplateService) ReorderTemplateScript( templateID string, templateScriptParams *map[string]interface{}, ) (templateScript []*types.TemplateScript, err error)
ReorderTemplateScript returns a list of templateScript
func (*TemplateService) UpdateTemplate ¶
func (ts *TemplateService) UpdateTemplate( templateID string, templateParams *map[string]interface{}, ) (template *types.Template, err error)
UpdateTemplate updates a template by its ID
func (*TemplateService) UpdateTemplateScript ¶
func (ts *TemplateService) UpdateTemplateScript( templateID string, templateScriptID string, templateScriptParams *map[string]interface{}, ) (templateScript *types.TemplateScript, err error)
UpdateTemplateScript updates a templateScript