routes

package
v0.0.0-...-99bda55 Latest Latest
Warning

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

Go to latest
Published: May 24, 2024 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AttachGateway

func AttachGateway(c *drycc.Client, appID string, name string, port int, gateway string) error

AttachGateway route attach a gateway.

func Delete

func Delete(c *drycc.Client, appID string, name string) error

Delete Delete a route from an app.

func DetachGateway

func DetachGateway(c *drycc.Client, appID string, name string, port int, gateway string) error

DetachGateway route attach a gateway.

func GetRule

func GetRule(c *drycc.Client, appID string, name string) (string, error)

GetRoute get info rule of a route from an app.

func List

func List(c *drycc.Client, appID string, results int) (api.Routes, int, error)

List routes registered with an app.

func New

func New(c *drycc.Client, appID string, name string, procType string, kind string, port int) error

New adds a route to an app.

func SetRule

func SetRule(c *drycc.Client, appID string, name string, rules string) error

SetRule set rule of a route.

Types

This section is empty.

Jump to

Keyboard shortcuts

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