Documentation ¶
Index ¶
- Constants
- func CreateDeploymentTaskFailErrMocked(t *testing.T, catID string, ...) *types.CloudApplicationDeploymentTask
- func CreateDeploymentTaskFailJSONMocked(t *testing.T, catID string, ...) *types.CloudApplicationDeploymentTask
- func CreateDeploymentTaskFailStatusMocked(t *testing.T, catID string, ...) *types.CloudApplicationDeploymentTask
- func CreateDeploymentTaskMocked(t *testing.T, catID string, ...) *types.CloudApplicationDeploymentTask
- func CreateTemplateFailErrMocked(t *testing.T, cloudApplicationTemplateIn *types.CloudApplicationTemplate) *types.CloudApplicationTemplate
- func CreateTemplateFailJSONMocked(t *testing.T, cloudApplicationTemplateIn *types.CloudApplicationTemplate) *types.CloudApplicationTemplate
- func CreateTemplateFailStatusMocked(t *testing.T, cloudApplicationTemplateIn *types.CloudApplicationTemplate) *types.CloudApplicationTemplate
- func CreateTemplateMocked(t *testing.T, cloudApplicationTemplateIn *types.CloudApplicationTemplate) *types.CloudApplicationTemplate
- func DeleteDeploymentFailErrMocked(t *testing.T, cloudApplicationDeploymentIn *types.CloudApplicationDeployment)
- func DeleteDeploymentFailJSONMocked(t *testing.T, cloudApplicationDeploymentIn *types.CloudApplicationDeployment) *types.CloudApplicationDeployment
- func DeleteDeploymentFailStatusMocked(t *testing.T, cloudApplicationDeploymentIn *types.CloudApplicationDeployment)
- func DeleteDeploymentMocked(t *testing.T, cloudApplicationDeploymentIn *types.CloudApplicationDeployment)
- func DeleteTemplateFailErrMocked(t *testing.T, cloudApplicationTemplateIn *types.CloudApplicationTemplate)
- func DeleteTemplateFailStatusMocked(t *testing.T, cloudApplicationTemplateIn *types.CloudApplicationTemplate)
- func DeleteTemplateMocked(t *testing.T, cloudApplicationTemplateIn *types.CloudApplicationTemplate)
- func GetDeploymentFailErrMocked(t *testing.T, cloudApplicationDeploymentIn *types.CloudApplicationDeployment) *types.CloudApplicationDeployment
- func GetDeploymentFailJSONMocked(t *testing.T, cloudApplicationDeploymentIn *types.CloudApplicationDeployment) *types.CloudApplicationDeployment
- func GetDeploymentFailStatusMocked(t *testing.T, cloudApplicationDeploymentIn *types.CloudApplicationDeployment) *types.CloudApplicationDeployment
- func GetDeploymentMocked(t *testing.T, cloudApplicationDeploymentIn *types.CloudApplicationDeployment) *types.CloudApplicationDeployment
- func GetDeploymentTaskFailErrMocked(t *testing.T, catID string, ...) *types.CloudApplicationDeploymentTask
- func GetDeploymentTaskFailJSONMocked(t *testing.T, catID string, ...) *types.CloudApplicationDeploymentTask
- func GetDeploymentTaskFailStatusMocked(t *testing.T, catID string, ...) *types.CloudApplicationDeploymentTask
- func GetDeploymentTaskMocked(t *testing.T, catID string, ...) *types.CloudApplicationDeploymentTask
- func GetTemplateFailErrMocked(t *testing.T, cloudApplicationTemplateIn *types.CloudApplicationTemplate) *types.CloudApplicationTemplate
- func GetTemplateFailJSONMocked(t *testing.T, cloudApplicationTemplateIn *types.CloudApplicationTemplate) *types.CloudApplicationTemplate
- func GetTemplateFailStatusMocked(t *testing.T, cloudApplicationTemplateIn *types.CloudApplicationTemplate) *types.CloudApplicationTemplate
- func GetTemplateMocked(t *testing.T, cloudApplicationTemplateIn *types.CloudApplicationTemplate) *types.CloudApplicationTemplate
- func ListDeploymentsFailErrMocked(t *testing.T, ...) []*types.CloudApplicationDeployment
- func ListDeploymentsFailJSONMocked(t *testing.T, ...) []*types.CloudApplicationDeployment
- func ListDeploymentsFailStatusMocked(t *testing.T, ...) []*types.CloudApplicationDeployment
- func ListDeploymentsMocked(t *testing.T, ...) []*types.CloudApplicationDeployment
- func ListTemplatesFailErrMocked(t *testing.T, cloudApplicationTemplatesIn []*types.CloudApplicationTemplate) []*types.CloudApplicationTemplate
- func ListTemplatesFailJSONMocked(t *testing.T, cloudApplicationTemplatesIn []*types.CloudApplicationTemplate) []*types.CloudApplicationTemplate
- func ListTemplatesFailStatusMocked(t *testing.T, cloudApplicationTemplatesIn []*types.CloudApplicationTemplate) []*types.CloudApplicationTemplate
- func ListTemplatesMocked(t *testing.T, cloudApplicationTemplatesIn []*types.CloudApplicationTemplate) []*types.CloudApplicationTemplate
- func ParseMetadataTemplateFailErrMocked(t *testing.T, cloudApplicationTemplateIn *types.CloudApplicationTemplate) *types.CloudApplicationTemplate
- func ParseMetadataTemplateFailJSONMocked(t *testing.T, cloudApplicationTemplateIn *types.CloudApplicationTemplate) *types.CloudApplicationTemplate
- func ParseMetadataTemplateFailStatusMocked(t *testing.T, cloudApplicationTemplateIn *types.CloudApplicationTemplate) *types.CloudApplicationTemplate
- func ParseMetadataTemplateMocked(t *testing.T, cloudApplicationTemplateIn *types.CloudApplicationTemplate) *types.CloudApplicationTemplate
- func UpdateTemplateFailErrMocked(t *testing.T, cbIn *types.CloudApplicationTemplate)
- func UpdateTemplateFailStatusMocked(t *testing.T, cbIn *types.CloudApplicationTemplate)
- func UpdateTemplateMocked(t *testing.T, cbIn *types.CloudApplicationTemplate)
- type CloudApplicationDeploymentService
- func (cads *CloudApplicationDeploymentService) CreateDeploymentTask(catID string, deploymentParams *map[string]interface{}) (deploymentTask *types.CloudApplicationDeploymentTask, err error)
- func (cads *CloudApplicationDeploymentService) DeleteDeployment(deploymentID string) (deployment *types.CloudApplicationDeployment, err error)
- func (cads *CloudApplicationDeploymentService) GetDeployment(deploymentID string) (deployment *types.CloudApplicationDeployment, status int, err error)
- func (cads *CloudApplicationDeploymentService) GetDeploymentTask(catID string, deploymentTaskID string) (deploymentTask *types.CloudApplicationDeploymentTask, err error)
- func (cads *CloudApplicationDeploymentService) ListDeployments() (deployments []*types.CloudApplicationDeployment, err error)
- type CloudApplicationTemplateService
- func (cats *CloudApplicationTemplateService) CreateTemplate(catParams *map[string]interface{}) (template *types.CloudApplicationTemplate, err error)
- func (cats *CloudApplicationTemplateService) DeleteTemplate(templateID string) (err error)
- func (cats *CloudApplicationTemplateService) GetTemplate(templateID string) (template *types.CloudApplicationTemplate, err error)
- func (cats *CloudApplicationTemplateService) ListTemplates() (templates []*types.CloudApplicationTemplate, err error)
- func (cats *CloudApplicationTemplateService) ParseMetadataTemplate(templateID string) (template *types.CloudApplicationTemplate, err error)
- func (cats *CloudApplicationTemplateService) UploadTemplate(sourceFilePath string, targetURL string) error
Constants ¶
const APIPathDeploymentLabels = "/labels"
const APIPathPluginsToscaCat = "/plugins/tosca/cats/%s"
const APIPathPluginsToscaCatDeploymentTask = "/plugins/tosca/cats/%s/deployment_tasks/%s"
const APIPathPluginsToscaCatDeploymentTasks = "/plugins/tosca/cats/%s/deployment_tasks"
const APIPathPluginsToscaCatParseMetadata = "/plugins/tosca/cats/%s/parse_metadata"
const APIPathPluginsToscaCats = "/plugins/tosca/cats"
const APIPathPluginsToscaDeployment = "/plugins/tosca/deployments/%s"
Variables ¶
This section is empty.
Functions ¶
func CreateDeploymentTaskFailErrMocked ¶
func CreateDeploymentTaskFailErrMocked( t *testing.T, catID string, cloudApplicationDeploymentTaskIn *types.CloudApplicationDeploymentTask, ) *types.CloudApplicationDeploymentTask
CreateDeploymentTaskFailErrMocked test mocked function
func CreateDeploymentTaskFailJSONMocked ¶
func CreateDeploymentTaskFailJSONMocked( t *testing.T, catID string, cloudApplicationDeploymentTaskIn *types.CloudApplicationDeploymentTask, ) *types.CloudApplicationDeploymentTask
CreateDeploymentTaskFailJSONMocked test mocked function
func CreateDeploymentTaskFailStatusMocked ¶
func CreateDeploymentTaskFailStatusMocked( t *testing.T, catID string, cloudApplicationDeploymentTaskIn *types.CloudApplicationDeploymentTask, ) *types.CloudApplicationDeploymentTask
CreateDeploymentTaskFailStatusMocked test mocked function
func CreateDeploymentTaskMocked ¶
func CreateDeploymentTaskMocked( t *testing.T, catID string, cloudApplicationDeploymentTaskIn *types.CloudApplicationDeploymentTask, ) *types.CloudApplicationDeploymentTask
CreateDeploymentTaskMocked test mocked function
func CreateTemplateFailErrMocked ¶
func CreateTemplateFailErrMocked( t *testing.T, cloudApplicationTemplateIn *types.CloudApplicationTemplate, ) *types.CloudApplicationTemplate
CreateTemplateFailErrMocked test mocked function
func CreateTemplateFailJSONMocked ¶
func CreateTemplateFailJSONMocked( t *testing.T, cloudApplicationTemplateIn *types.CloudApplicationTemplate, ) *types.CloudApplicationTemplate
CreateTemplateFailJSONMocked test mocked function
func CreateTemplateFailStatusMocked ¶
func CreateTemplateFailStatusMocked( t *testing.T, cloudApplicationTemplateIn *types.CloudApplicationTemplate, ) *types.CloudApplicationTemplate
CreateTemplateFailStatusMocked test mocked function
func CreateTemplateMocked ¶
func CreateTemplateMocked( t *testing.T, cloudApplicationTemplateIn *types.CloudApplicationTemplate, ) *types.CloudApplicationTemplate
CreateTemplateMocked test mocked function
func DeleteDeploymentFailErrMocked ¶
func DeleteDeploymentFailErrMocked(t *testing.T, cloudApplicationDeploymentIn *types.CloudApplicationDeployment)
DeleteDeploymentFailErrMocked test mocked function
func DeleteDeploymentFailJSONMocked ¶
func DeleteDeploymentFailJSONMocked( t *testing.T, cloudApplicationDeploymentIn *types.CloudApplicationDeployment, ) *types.CloudApplicationDeployment
DeleteDeploymentFailJSONMocked test mocked function
func DeleteDeploymentFailStatusMocked ¶
func DeleteDeploymentFailStatusMocked(t *testing.T, cloudApplicationDeploymentIn *types.CloudApplicationDeployment)
DeleteDeploymentFailStatusMocked test mocked function
func DeleteDeploymentMocked ¶
func DeleteDeploymentMocked(t *testing.T, cloudApplicationDeploymentIn *types.CloudApplicationDeployment)
DeleteDeploymentMocked test mocked function
func DeleteTemplateFailErrMocked ¶
func DeleteTemplateFailErrMocked(t *testing.T, cloudApplicationTemplateIn *types.CloudApplicationTemplate)
DeleteTemplateFailErrMocked test mocked function
func DeleteTemplateFailStatusMocked ¶
func DeleteTemplateFailStatusMocked(t *testing.T, cloudApplicationTemplateIn *types.CloudApplicationTemplate)
DeleteTemplateFailStatusMocked test mocked function
func DeleteTemplateMocked ¶
func DeleteTemplateMocked(t *testing.T, cloudApplicationTemplateIn *types.CloudApplicationTemplate)
DeleteTemplateMocked test mocked function
func GetDeploymentFailErrMocked ¶
func GetDeploymentFailErrMocked( t *testing.T, cloudApplicationDeploymentIn *types.CloudApplicationDeployment, ) *types.CloudApplicationDeployment
GetDeploymentFailErrMocked test mocked function
func GetDeploymentFailJSONMocked ¶
func GetDeploymentFailJSONMocked( t *testing.T, cloudApplicationDeploymentIn *types.CloudApplicationDeployment, ) *types.CloudApplicationDeployment
GetDeploymentFailJSONMocked test mocked function
func GetDeploymentFailStatusMocked ¶
func GetDeploymentFailStatusMocked( t *testing.T, cloudApplicationDeploymentIn *types.CloudApplicationDeployment, ) *types.CloudApplicationDeployment
GetDeploymentFailStatusMocked test mocked function
func GetDeploymentMocked ¶
func GetDeploymentMocked( t *testing.T, cloudApplicationDeploymentIn *types.CloudApplicationDeployment, ) *types.CloudApplicationDeployment
GetDeploymentMocked test mocked function
func GetDeploymentTaskFailErrMocked ¶
func GetDeploymentTaskFailErrMocked( t *testing.T, catID string, cloudApplicationDeploymentTaskIn *types.CloudApplicationDeploymentTask, ) *types.CloudApplicationDeploymentTask
GetDeploymentTaskFailErrMocked test mocked function
func GetDeploymentTaskFailJSONMocked ¶
func GetDeploymentTaskFailJSONMocked( t *testing.T, catID string, cloudApplicationDeploymentTaskIn *types.CloudApplicationDeploymentTask, ) *types.CloudApplicationDeploymentTask
GetDeploymentTaskFailJSONMocked test mocked function
func GetDeploymentTaskFailStatusMocked ¶
func GetDeploymentTaskFailStatusMocked( t *testing.T, catID string, cloudApplicationDeploymentTaskIn *types.CloudApplicationDeploymentTask, ) *types.CloudApplicationDeploymentTask
GetDeploymentTaskFailStatusMocked test mocked function
func GetDeploymentTaskMocked ¶
func GetDeploymentTaskMocked( t *testing.T, catID string, cloudApplicationDeploymentTaskIn *types.CloudApplicationDeploymentTask, ) *types.CloudApplicationDeploymentTask
GetDeploymentTaskMocked test mocked function
func GetTemplateFailErrMocked ¶
func GetTemplateFailErrMocked( t *testing.T, cloudApplicationTemplateIn *types.CloudApplicationTemplate, ) *types.CloudApplicationTemplate
GetTemplateFailErrMocked test mocked function
func GetTemplateFailJSONMocked ¶
func GetTemplateFailJSONMocked( t *testing.T, cloudApplicationTemplateIn *types.CloudApplicationTemplate, ) *types.CloudApplicationTemplate
GetTemplateFailJSONMocked test mocked function
func GetTemplateFailStatusMocked ¶
func GetTemplateFailStatusMocked( t *testing.T, cloudApplicationTemplateIn *types.CloudApplicationTemplate, ) *types.CloudApplicationTemplate
GetTemplateFailStatusMocked test mocked function
func GetTemplateMocked ¶
func GetTemplateMocked( t *testing.T, cloudApplicationTemplateIn *types.CloudApplicationTemplate, ) *types.CloudApplicationTemplate
GetTemplateMocked test mocked function
func ListDeploymentsFailErrMocked ¶
func ListDeploymentsFailErrMocked( t *testing.T, cloudApplicationDeploymentsIn []*types.CloudApplicationDeployment, ) []*types.CloudApplicationDeployment
ListDeploymentsFailErrMocked test mocked function
func ListDeploymentsFailJSONMocked ¶
func ListDeploymentsFailJSONMocked( t *testing.T, cloudApplicationDeploymentsIn []*types.CloudApplicationDeployment, ) []*types.CloudApplicationDeployment
ListDeploymentsFailJSONMocked test mocked function
func ListDeploymentsFailStatusMocked ¶
func ListDeploymentsFailStatusMocked( t *testing.T, cloudApplicationDeploymentsIn []*types.CloudApplicationDeployment, ) []*types.CloudApplicationDeployment
ListDeploymentsFailStatusMocked test mocked function
func ListDeploymentsMocked ¶
func ListDeploymentsMocked( t *testing.T, cloudApplicationDeploymentsIn []*types.CloudApplicationDeployment, ) []*types.CloudApplicationDeployment
ListDeploymentsMocked test mocked function
func ListTemplatesFailErrMocked ¶
func ListTemplatesFailErrMocked( t *testing.T, cloudApplicationTemplatesIn []*types.CloudApplicationTemplate, ) []*types.CloudApplicationTemplate
ListTemplatesFailErrMocked test mocked function
func ListTemplatesFailJSONMocked ¶
func ListTemplatesFailJSONMocked( t *testing.T, cloudApplicationTemplatesIn []*types.CloudApplicationTemplate, ) []*types.CloudApplicationTemplate
ListTemplatesFailJSONMocked test mocked function
func ListTemplatesFailStatusMocked ¶
func ListTemplatesFailStatusMocked( t *testing.T, cloudApplicationTemplatesIn []*types.CloudApplicationTemplate, ) []*types.CloudApplicationTemplate
ListTemplatesFailStatusMocked test mocked function
func ListTemplatesMocked ¶
func ListTemplatesMocked( t *testing.T, cloudApplicationTemplatesIn []*types.CloudApplicationTemplate, ) []*types.CloudApplicationTemplate
ListTemplatesMocked test mocked function
func ParseMetadataTemplateFailErrMocked ¶
func ParseMetadataTemplateFailErrMocked( t *testing.T, cloudApplicationTemplateIn *types.CloudApplicationTemplate, ) *types.CloudApplicationTemplate
ParseMetadataTemplateFailErrMocked test mocked function
func ParseMetadataTemplateFailJSONMocked ¶
func ParseMetadataTemplateFailJSONMocked( t *testing.T, cloudApplicationTemplateIn *types.CloudApplicationTemplate, ) *types.CloudApplicationTemplate
ParseMetadataTemplateFailJSONMocked test mocked function
func ParseMetadataTemplateFailStatusMocked ¶
func ParseMetadataTemplateFailStatusMocked( t *testing.T, cloudApplicationTemplateIn *types.CloudApplicationTemplate, ) *types.CloudApplicationTemplate
ParseMetadataTemplateFailStatusMocked test mocked function
func ParseMetadataTemplateMocked ¶
func ParseMetadataTemplateMocked( t *testing.T, cloudApplicationTemplateIn *types.CloudApplicationTemplate, ) *types.CloudApplicationTemplate
ParseMetadataTemplateMocked test mocked function
func UpdateTemplateFailErrMocked ¶
func UpdateTemplateFailErrMocked(t *testing.T, cbIn *types.CloudApplicationTemplate)
UpdateTemplateFailErrMocked test mocked function
func UpdateTemplateFailStatusMocked ¶
func UpdateTemplateFailStatusMocked(t *testing.T, cbIn *types.CloudApplicationTemplate)
UpdateTemplateFailStatusMocked test mocked function
func UpdateTemplateMocked ¶
func UpdateTemplateMocked(t *testing.T, cbIn *types.CloudApplicationTemplate)
UpdateTemplateMocked test mocked function
Types ¶
type CloudApplicationDeploymentService ¶
type CloudApplicationDeploymentService struct {
// contains filtered or unexported fields
}
CloudApplicationDeploymentService manages cloud application deployment operations
func NewCloudApplicationDeploymentService ¶
func NewCloudApplicationDeploymentService( concertoService utils.ConcertoService, ) (*CloudApplicationDeploymentService, error)
NewCloudApplicationDeploymentService returns a Concerto cloud application deployment service
func (*CloudApplicationDeploymentService) CreateDeploymentTask ¶
func (cads *CloudApplicationDeploymentService) CreateDeploymentTask( catID string, deploymentParams *map[string]interface{}, ) (deploymentTask *types.CloudApplicationDeploymentTask, err error)
CreateDeploymentTask creates a cloud application deployment task by a given CAT ID
func (*CloudApplicationDeploymentService) DeleteDeployment ¶
func (cads *CloudApplicationDeploymentService) DeleteDeployment( deploymentID string, ) (deployment *types.CloudApplicationDeployment, err error)
DeleteDeployment deletes a cloud application deployment by its ID
func (*CloudApplicationDeploymentService) GetDeployment ¶
func (cads *CloudApplicationDeploymentService) GetDeployment( deploymentID string, ) (deployment *types.CloudApplicationDeployment, status int, err error)
GetDeployment returns a cloud application deployment by its ID
func (*CloudApplicationDeploymentService) GetDeploymentTask ¶
func (cads *CloudApplicationDeploymentService) GetDeploymentTask( catID string, deploymentTaskID string, ) (deploymentTask *types.CloudApplicationDeploymentTask, err error)
GetDeploymentTask gets a cloud application deployment task by its ID and given CAT ID
func (*CloudApplicationDeploymentService) ListDeployments ¶
func (cads *CloudApplicationDeploymentService) ListDeployments() ( deployments []*types.CloudApplicationDeployment, err error, )
ListDeployments returns the list of cloud application deployments as an array of CloudApplicationDeployment
type CloudApplicationTemplateService ¶
type CloudApplicationTemplateService struct {
// contains filtered or unexported fields
}
CloudApplicationTemplateService manages cloud application template operations
func NewCloudApplicationTemplateService ¶
func NewCloudApplicationTemplateService( concertoService utils.ConcertoService, ) (*CloudApplicationTemplateService, error)
NewCloudApplicationTemplateService returns a Concerto cloud application template service
func (*CloudApplicationTemplateService) CreateTemplate ¶
func (cats *CloudApplicationTemplateService) CreateTemplate( catParams *map[string]interface{}, ) (template *types.CloudApplicationTemplate, err error)
CreateTemplate creates a cloud application template
func (*CloudApplicationTemplateService) DeleteTemplate ¶
func (cats *CloudApplicationTemplateService) DeleteTemplate(templateID string) (err error)
DeleteTemplate deletes a cloud application template by its ID
func (*CloudApplicationTemplateService) GetTemplate ¶
func (cats *CloudApplicationTemplateService) GetTemplate( templateID string, ) (template *types.CloudApplicationTemplate, err error)
GetTemplate returns a cloud application template by its ID
func (*CloudApplicationTemplateService) ListTemplates ¶
func (cats *CloudApplicationTemplateService) ListTemplates() (templates []*types.CloudApplicationTemplate, err error)
ListTemplates returns the list of cloud application templates as an array of CloudApplicationTemplate
func (*CloudApplicationTemplateService) ParseMetadataTemplate ¶
func (cats *CloudApplicationTemplateService) ParseMetadataTemplate( templateID string, ) (template *types.CloudApplicationTemplate, err error)
ParseMetadataTemplate process cloud application template metadata
func (*CloudApplicationTemplateService) UploadTemplate ¶
func (cats *CloudApplicationTemplateService) UploadTemplate(sourceFilePath string, targetURL string) error
UploadTemplate uploads a cloud application template file