Documentation ¶
Index ¶
- func Bind(c *gin.Context) apierror.APIErrors
- func Catalog(c *gin.Context) apierror.APIErrors
- func CatalogMatch(c *gin.Context) apierror.APIErrors
- func CatalogShow(c *gin.Context) apierror.APIErrors
- func Create(c *gin.Context) apierror.APIErrors
- func Delete(c *gin.Context) apierror.APIErrors
- func FullIndex(c *gin.Context) apierror.APIErrors
- func GetService(ctx context.Context, cluster *kubernetes.Cluster, logger logr.Logger, ...) (*models.Service, apierror.APIErrors)
- func List(c *gin.Context) apierror.APIErrors
- func Match(c *gin.Context) apierror.APIErrors
- func PortForward(c *gin.Context) apierror.APIErrors
- func Replace(c *gin.Context) apierror.APIErrors
- func ServiceApps(c *gin.Context) apierror.APIErrors
- func Show(c *gin.Context) apierror.APIErrors
- func Unbind(c *gin.Context) apierror.APIErrors
- func UnbindService(ctx context.Context, cluster *kubernetes.Cluster, logger logr.Logger, ...) apierror.APIErrors
- func Update(c *gin.Context) apierror.APIErrors
- func ValidateService(ctx context.Context, cluster *kubernetes.Cluster, logger logr.Logger, ...) apierror.APIErrors
- func WhenFullyDeployed(ctx context.Context, cluster *kubernetes.Cluster, logger logr.Logger, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Bind ¶ added in v1.8.1
Bind handles the API endpoint /namespaces/:namespace/services/:service/bind (POST) It creates a binding between the specified service and application
func CatalogMatch ¶ added in v1.8.1
Match handles the API endpoint /catalogservicesmatches/:pattern (GET) It returns a list of all Epinio-controlled catalog services matching the prefix pattern.
func Delete ¶ added in v1.8.1
Delete handles the API end point /namespaces/:namespace/services/:service (DELETE) It deletes the named service
func GetService ¶ added in v1.1.0
func GetService( ctx context.Context, cluster *kubernetes.Cluster, logger logr.Logger, namespace, serviceName string, ) (*models.Service, apierror.APIErrors)
GetService will find the service with the provided namespace and name
func Match ¶ added in v1.8.1
Match handles the API endpoint /namespace/:namespace/servicesmatches/:pattern (GET) It returns a list of all Epinio-controlled services matching the prefix pattern.
func Replace ¶ added in v1.10.0
Replace handles the API endpoint PUT /namespaces/:namespace/services/:app It replaces the specified service.
func ServiceApps ¶ added in v1.8.1
ServiceApps handles the API endpoint GET /namespaces/:namespace/serviceapps It returns a map from services to the apps they are bound to, in the specified namespace.
func Unbind ¶ added in v1.8.1
Unbind handles the API endpoint /namespaces/:namespace/services/:service/unbind (POST) It removes the binding between the specified service and application
func UnbindService ¶ added in v0.9.0
func Update ¶ added in v1.10.0
Update handles the API endpoint PATCH /namespaces/:namespace/services/:service
func ValidateService ¶ added in v0.9.0
func ValidateService( ctx context.Context, cluster *kubernetes.Cluster, logger logr.Logger, service *models.Service, ) apierror.APIErrors
ValidateService is used by various service endpoints to verify that the service exists, as well as its helm release, before action is taken.
func WhenFullyDeployed ¶ added in v1.10.0
func WhenFullyDeployed(ctx context.Context, cluster *kubernetes.Cluster, logger logr.Logger, namespace, name string) error
WhenFullyDeployed is invoked when the helm chart for a service is deployed and running. At that point the secrets created by the service can be published as Epinio configurations.
Types ¶
This section is empty.