service

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2023 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bind added in v1.8.1

func Bind(c *gin.Context) apierror.APIErrors

Bind handles the API endpoint /namespaces/:namespace/services/:service/bind (POST) It creates a binding between the specified service and application

func Catalog added in v1.8.1

func Catalog(c *gin.Context) apierror.APIErrors

func CatalogMatch added in v1.8.1

func CatalogMatch(c *gin.Context) apierror.APIErrors

Match handles the API endpoint /catalogservicesmatches/:pattern (GET) It returns a list of all Epinio-controlled catalog services matching the prefix pattern.

func CatalogShow added in v1.8.1

func CatalogShow(c *gin.Context) apierror.APIErrors

func Create added in v1.8.1

func Create(c *gin.Context) apierror.APIErrors

func Delete added in v1.8.1

func Delete(c *gin.Context) apierror.APIErrors

Delete handles the API end point /namespaces/:namespace/services/:service (DELETE) It deletes the named service

func FullIndex added in v1.8.1

func FullIndex(c *gin.Context) apierror.APIErrors

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 List added in v1.8.1

func List(c *gin.Context) apierror.APIErrors

func Match added in v1.8.1

func Match(c *gin.Context) apierror.APIErrors

Match handles the API endpoint /namespace/:namespace/servicesmatches/:pattern (GET) It returns a list of all Epinio-controlled services matching the prefix pattern.

func PortForward added in v1.9.0

func PortForward(c *gin.Context) apierror.APIErrors

func Replace added in v1.10.0

func Replace(c *gin.Context) apierror.APIErrors

Replace handles the API endpoint PUT /namespaces/:namespace/services/:app It replaces the specified service.

func ServiceApps added in v1.8.1

func ServiceApps(c *gin.Context) apierror.APIErrors

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 Show added in v1.8.1

func Show(c *gin.Context) apierror.APIErrors

func Unbind added in v1.8.1

func Unbind(c *gin.Context) apierror.APIErrors

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 UnbindService(
	ctx context.Context, cluster *kubernetes.Cluster, logger logr.Logger,
	namespace, serviceName, appName, userName string,
	serviceConfigurations []v1.Secret,
) apierror.APIErrors

func Update added in v1.10.0

func Update(c *gin.Context) apierror.APIErrors

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.

Jump to

Keyboard shortcuts

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