wizard

package
v0.13.0-beta Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 17, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const APIPathWizardAppDeploy = "/wizard/apps/%s/deploy"
View Source
const APIPathWizardApps = "/wizard/apps"
View Source
const APIPathWizardCloudProvidersByAppLocation = "/wizard/cloud_providers?app_id=%s&location_id=%s"
View Source
const APIPathWizardLocations = "/wizard/locations"
View Source
const APIPathWizardServerPlansByAppLocationCloudProvider = "/wizard/server_plans?app_id=%s&location_id=%s&cloud_provider_id=%s"

Variables

This section is empty.

Functions

func DeployAppFailErrMocked

func DeployAppFailErrMocked(t *testing.T, appIn *types.WizardApp) *types.Server

DeployAppFailErrMocked test mocked function

func DeployAppFailJSONMocked

func DeployAppFailJSONMocked(t *testing.T, appIn *types.WizardApp) *types.Server

DeployAppFailJSONMocked test mocked function

func DeployAppFailStatusMocked

func DeployAppFailStatusMocked(t *testing.T, appIn *types.WizardApp) *types.Server

DeployAppFailStatusMocked test mocked function

func DeployAppMocked

func DeployAppMocked(t *testing.T, appIn *types.WizardApp) *types.Server

DeployAppMocked test mocked function

func ListAppsFailErrMocked added in v0.12.0

func ListAppsFailErrMocked(t *testing.T, appsIn []*types.WizardApp) []*types.WizardApp

ListAppsFailErrMocked test mocked function

func ListAppsFailJSONMocked added in v0.12.0

func ListAppsFailJSONMocked(t *testing.T, appsIn []*types.WizardApp) []*types.WizardApp

ListAppsFailJSONMocked test mocked function

func ListAppsFailStatusMocked added in v0.12.0

func ListAppsFailStatusMocked(t *testing.T, appsIn []*types.WizardApp) []*types.WizardApp

ListAppsFailStatusMocked test mocked function

func ListAppsMocked added in v0.12.0

func ListAppsMocked(t *testing.T, appsIn []*types.WizardApp) []*types.WizardApp

ListAppsMocked test mocked function

func ListLocationsFailErrMocked added in v0.12.0

func ListLocationsFailErrMocked(t *testing.T, locationsIn []*types.Location) []*types.Location

ListLocationsFailErrMocked test mocked function

func ListLocationsFailJSONMocked added in v0.12.0

func ListLocationsFailJSONMocked(t *testing.T, locationsIn []*types.Location) []*types.Location

ListLocationsFailJSONMocked test mocked function

func ListLocationsFailStatusMocked added in v0.12.0

func ListLocationsFailStatusMocked(t *testing.T, locationsIn []*types.Location) []*types.Location

ListLocationsFailStatusMocked test mocked function

func ListLocationsMocked added in v0.12.0

func ListLocationsMocked(t *testing.T, locationsIn []*types.Location) []*types.Location

ListLocationsMocked test mocked function

func ListWizardCloudProvidersFailErrMocked added in v0.12.0

func ListWizardCloudProvidersFailErrMocked(
	t *testing.T,
	cloudProvidersIn []*types.CloudProvider,
	AppID string,
	LocID string,
) []*types.CloudProvider

ListWizardCloudProvidersFailErrMocked test mocked function

func ListWizardCloudProvidersFailJSONMocked added in v0.12.0

func ListWizardCloudProvidersFailJSONMocked(
	t *testing.T,
	cloudProvidersIn []*types.CloudProvider,
	AppID string,
	LocID string,
) []*types.CloudProvider

ListWizardCloudProvidersFailJSONMocked test mocked function

func ListWizardCloudProvidersFailStatusMocked added in v0.12.0

func ListWizardCloudProvidersFailStatusMocked(
	t *testing.T,
	cloudProvidersIn []*types.CloudProvider,
	AppID string,
	LocID string,
) []*types.CloudProvider

ListWizardCloudProvidersFailStatusMocked test mocked function

func ListWizardCloudProvidersMocked added in v0.12.0

func ListWizardCloudProvidersMocked(
	t *testing.T,
	cloudProvidersIn []*types.CloudProvider,
	AppID string,
	LocID string,
) []*types.CloudProvider

ListWizardCloudProvidersMocked test mocked function

func ListWizardServerPlansFailErrMocked added in v0.12.0

func ListWizardServerPlansFailErrMocked(
	t *testing.T,
	serverPlansIn []*types.ServerPlan,
	AppID string,
	LocID string,
	ProviderID string,
) []*types.ServerPlan

ListWizardServerPlansFailErrMocked test mocked function

func ListWizardServerPlansFailJSONMocked added in v0.12.0

func ListWizardServerPlansFailJSONMocked(
	t *testing.T,
	serverPlansIn []*types.ServerPlan,
	AppID string,
	LocID string,
	ProviderID string,
) []*types.ServerPlan

ListWizardServerPlansFailJSONMocked test mocked function

func ListWizardServerPlansFailStatusMocked added in v0.12.0

func ListWizardServerPlansFailStatusMocked(
	t *testing.T,
	serverPlansIn []*types.ServerPlan,
	AppID string,
	LocID string,
	ProviderID string,
) []*types.ServerPlan

ListWizardServerPlansFailStatusMocked test mocked function

func ListWizardServerPlansMocked added in v0.12.0

func ListWizardServerPlansMocked(
	t *testing.T,
	serverPlansIn []*types.ServerPlan,
	AppID string,
	LocID string,
	ProviderID string,
) []*types.ServerPlan

ListWizardServerPlansMocked test mocked function

Types

type AppService

type AppService struct {
	// contains filtered or unexported fields
}

AppService manages app operations

func NewAppService

func NewAppService(concertoService utils.ConcertoService) (*AppService, error)

NewAppService returns a Concerto app service

func (*AppService) DeployApp

func (as *AppService) DeployApp(appID string, appParams *map[string]interface{}) (app *types.Server, err error)

DeployApp deploys a app

func (*AppService) ListApps added in v0.12.0

func (as *AppService) ListApps() (apps []*types.WizardApp, err error)

ListApps returns the list of apps as an array of App

type LocationService

type LocationService struct {
	// contains filtered or unexported fields
}

LocationService manages location operations

func NewLocationService

func NewLocationService(concertoService utils.ConcertoService) (*LocationService, error)

NewLocationService returns a Concerto location service

func (*LocationService) ListLocations added in v0.12.0

func (ls *LocationService) ListLocations() (locations []*types.Location, err error)

ListLocations returns the list of locations as an array of Location

type WizardCloudProviderService added in v0.12.0

type WizardCloudProviderService struct {
	// contains filtered or unexported fields
}

WizardCloudProviderService manages wizard cloud provider operations

func NewWizardCloudProviderService added in v0.12.0

func NewWizardCloudProviderService(concertoService utils.ConcertoService) (*WizardCloudProviderService, error)

NewWizardCloudProviderService returns a Concerto WizardCloudProvider service

func (*WizardCloudProviderService) ListWizardCloudProviders added in v0.12.0

func (wcps *WizardCloudProviderService) ListWizardCloudProviders(
	appID string,
	locationID string,
) (cloudProviders []*types.CloudProvider, err error)

ListWizardCloudProviders returns the list of cloud providers as an array of CloudProvider

type WizardServerPlanService added in v0.12.0

type WizardServerPlanService struct {
	// contains filtered or unexported fields
}

WizardServerPlanService manages wizard server plan operations

func NewWizardServerPlanService added in v0.12.0

func NewWizardServerPlanService(concertoService utils.ConcertoService) (*WizardServerPlanService, error)

NewWizardServerPlanService returns a Concerto serverPlan service

func (*WizardServerPlanService) ListWizardServerPlans added in v0.12.0

func (wsps *WizardServerPlanService) ListWizardServerPlans(
	appID string,
	locationID string,
	cloudProviderID string,
) (serverPlans []*types.ServerPlan, err error)

ListWizardServerPlans returns the list of server plans as an array of ServerPlan

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL