services

package
v0.0.0-...-a1ffb48 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2018 License: MIT Imports: 5 Imported by: 3

Documentation

Overview

Package services provides methods for managing an app's services.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(c *deis.Client, appID string, procfileType string) error

Delete service from app If given service for the app doesn't exists then error returned

func List

func List(c *deis.Client, appID string) (api.Services, error)

List services registered with an app.

func New

func New(c *deis.Client, appID string, procfileType string, pathPattern string) (api.Service, error)

New adds a new service to an app. App should already exists. Service is the way to route some traffic matching given URL pattern to worker different than `web` procfileType - name of the process in Procfile (i.e. <process type> from the `<process type>: <command>`), e.g. `webhooks` for more about Procfile see this https://devcenter.heroku.com/articles/procfile pathPattern - one or several regexp patterns separated by comma, all request matching given regexp are routed to the procfileType workers. E.g. `/webhooks/notify,~ ^/users/[0-9]+/.*/webhooks/notify,/webhooks/rest` procfileType and pathPattern are mandatory and should have valid values.

Types

This section is empty.

Jump to

Keyboard shortcuts

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