Documentation ¶
Index ¶
Constants ¶
View Source
const ErrCodeAPICreation = "APICreationError"
ErrCodeAPICreation ...
View Source
const ErrCodeServiceDeploymentNotFound = "ServiceDeploymentNotFound"
View Source
const ErrCodeServiceDoesnotExist = "ServiceDoesnotExist"
View Source
const ErrCodeServicePlanDoesnotExist = "ServicePlanDoesnotExist"
ErrCodeServiceDoesnotExist ...
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ResourceCatalogAPI ¶
type ResourceCatalogAPI interface {
ResourceCatalog() ResourceCatalogRepository
}
ResourceCatalogAPI is the resource client ...
type ResourceCatalogPaginatedResourcesHandler ¶
type ResourceCatalogPaginatedResourcesHandler struct {
// contains filtered or unexported fields
}
func NewResourceCatalogPaginatedResources ¶
func NewResourceCatalogPaginatedResources(resource interface{}, baseURL string) ResourceCatalogPaginatedResourcesHandler
type ResourceCatalogRepository ¶
type ResourceCatalogRepository interface { Get(serviceID string, indepth bool) (models.Service, error) FindByName(name string, indepth bool) ([]models.Service, error) ListServices(cb func(service models.Service) bool) error ListServicePlans(cb func(servicePlan models.ServicePlan) bool, service models.Service) error GetServiceID(serviceName string) (string, error) GetServicePlanID(service models.Service, planName string) (string, error) GetServiceName(serviceID string) (string, error) GetServicePlanName(servicePlanID string) (string, error) ListDeployments(servicePlanID string) ([]models.ServiceDeployment, error) GetServicePlan(servicePlanID string) (models.ServicePlan, error) ListDeploymentAliases(servicePlanID string) ([]models.ServiceDeploymentAlias, error) GetDeploymentAlias(servicePlanID string, instanceTarget string, regionID string) (*models.ServiceDeploymentAlias, error) GetServices() ([]models.Service, error) GetServicePlans(service models.Service) ([]models.ServicePlan, error) }
Click to show internal directories.
Click to hide internal directories.