Documentation ¶
Index ¶
- func CreateService(client *occlient.Client, serviceName string, serviceType string, ...) error
- func DeleteServiceAndUnlinkComponents(client *occlient.Client, serviceName string, applicationName string) error
- func GetServiceClassAndPlans(client *occlient.Client, serviceName string) (ServiceClass, []ServicePlan, error)
- func GetSvcByType(client *occlient.Client, serviceType string) (*occlient.Service, error)
- func ListCatalog(client *occlient.Client) ([]occlient.Service, error)
- func Search(client *occlient.Client, name string) ([]occlient.Service, error)
- func SvcExists(client *occlient.Client, serviceName, applicationName string) (bool, error)
- type ServiceClass
- type ServiceInfo
- type ServicePlan
- type ServicePlanParameter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateService ¶
func CreateService(client *occlient.Client, serviceName string, serviceType string, servicePlan string, parameters map[string]string, applicationName string) error
CreateService creates new service from serviceCatalog
func DeleteServiceAndUnlinkComponents ¶ added in v0.0.18
func DeleteServiceAndUnlinkComponents(client *occlient.Client, serviceName string, applicationName string) error
DeleteServiceAndUnlinkComponents will delete the service with the provided `name` it also removes links to that service in components of the application
func GetServiceClassAndPlans ¶ added in v0.0.15
func GetServiceClassAndPlans(client *occlient.Client, serviceName string) (ServiceClass, []ServicePlan, error)
GetServiceClassAndPlans returns the service class details with the associated plans serviceName is the name of the service class the first parameter returned is the ServiceClass object the second parameter returned is the array of ServicePlan associated with the service class
func GetSvcByType ¶ added in v0.0.14
GetSvcByType returns the matching (by type) service or nil of there are no matches
func ListCatalog ¶
ListCatalog lists all the available service types
func SvcExists ¶
SvcExists Checks whether a service with the given name exists in the current application or not serviceName is the service name to perform check for The first returned parameter is a bool indicating if a service with the given name already exists or not The second returned parameter is the error that might occurs while execution
Types ¶
type ServiceClass ¶ added in v0.0.15
type ServiceClass struct { Name string Bindable bool ShortDescription string LongDescription string Tags []string VersionsAvailable []string ServiceBrokerName string }
ServiceClass holds the information regarding a service catalog service class
type ServiceInfo ¶
ServiceInfo holds all important information about one service
func List ¶
func List(client *occlient.Client, applicationName string) ([]ServiceInfo, error)
List lists all the deployed services
func ListWithDetailedStatus ¶ added in v0.0.15
func ListWithDetailedStatus(client *occlient.Client, applicationName string) ([]ServiceInfo, error)
ListWithDetailedStatus lists all the deployed services and additionally provides a "smart" status for each one of them The smart status takes into account how Services are used in odo. So when a secret has been created as a result of the created ServiceBinding, we set the appropriate status Same for when the secret has been "linked" into the deploymentconfig
type ServicePlan ¶ added in v0.0.18
type ServicePlan struct { Name string DisplayName string Description string Parameters servicePlanParameters }
ServicePlan holds the information about service catalog plans associated to service classes
func NewServicePlan ¶ added in v0.0.18
func NewServicePlan(result scv1beta1.ClusterServicePlan) (plan ServicePlan, err error)
NewServicePlan creates a new ServicePlan based on the specified ClusterServicePlan
type ServicePlanParameter ¶ added in v0.0.15
type ServicePlanParameter struct { Name string `json:"name"` Title string `json:"title,omitempty"` Description string `json:"description,omitempty"` Default string `json:"default,omitempty"` validation.Validatable `json:",inline,omitempty"` }
ServicePlanParameter holds the information regarding a service catalog plan parameter
func NewServicePlanParameter ¶ added in v0.0.19
func NewServicePlanParameter(name, typeName, defaultValue string, required bool) ServicePlanParameter
NewServicePlanParameter creates a new ServicePlanParameter instance with the specified state