package
1.2.6
Repository: https://github.com/redhat-developer/ocdev.git
Documentation: pkg.go.dev

# Functions

CreateOperatorService creates new service (actually a Deployment) from OperatorHub.
CreateService creates new service from serviceCatalog.
DeleteOperatorService deletes an Operator backed service TODO: make it unlink the service from component as a part of https://github.com/openshift/odo/issues/3563.
DeleteServiceAndUnlinkComponents will delete the service with the provided `name` it also removes links to that service in components of the application.
DeleteServiceBindingRequest deletes a service binding request (when user does odo unlink).
GetAlmExample fetches the ALM example from an Operator's definition.
No description provided by the author
GetCSV checks if the CR provided by the user in the YAML file exists in the namesapce It returns a CR (string representation) and CSV (Operator) upon successfully able to find them, an error otherwise.
No description provided by the author
GetGVKRFromCR returns values for group, version, kind and resource for a given Custom Resource (CR).
GetGVRFromCR parses and returns the values for group, version and resource for a given Custom Resource (CR).
No description provided by the author
GetInstancesOfCustomResources returns active instances of given Custom Resource (service in odo lingo) in the active namespace of the cluster.
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.
IsValidOperatorServiceName checks if the provided name follows <service-type>/<service-name> format.
List lists all the deployed services.
ListOperatorServices lists all operator backed services.
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.
NewServicePlan creates a new ServicePlan based on the specified ClusterServicePlan.
NewServicePlanParameter creates a new ServicePlanParameter instance with the specified state.
OperatorSvcExists checks whether an Operator backed service with given name exists or not.
SplitServiceKindName splits the service name provided for deletion by the user.
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.

# Structs

No description provided by the author
ServiceInfo holds all important information about one service.
ServiceClass holds the information regarding a service catalog service class.
No description provided by the author
ServicePlan holds the information about service catalog plans associated to service classes.
ServicePlanParameter holds the information regarding a service catalog plan parameter.
ServiceSpec ...
ServiceStatus ...