catalog

package
v0.0.0-...-a3be206 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2024 License: Apache-2.0 Imports: 15 Imported by: 27

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 ...

func New

New ...

type ResourceCatalogPaginatedResourcesHandler

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

func NewResourceCatalogPaginatedResources

func NewResourceCatalogPaginatedResources(resource interface{}, baseURL string) ResourceCatalogPaginatedResourcesHandler

func (ResourceCatalogPaginatedResourcesHandler) Resources

func (pr ResourceCatalogPaginatedResourcesHandler) Resources(bytes []byte, curPath string) ([]interface{}, string, error)

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)
}

Jump to

Keyboard shortcuts

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