router

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API added in v0.13.0

type API interface {
	UpdateWorkspaceStatus(namespace, uid string) string
}

API provides methods to generate urls for the API

func NewAPIRouter added in v0.13.0

func NewAPIRouter(protocol, fqdn string) (API, error)

NewAPIRouter creates a new api router used to generate urls for the api

func NewRelativeAPIRouter added in v0.13.0

func NewRelativeAPIRouter() (API, error)

NewRelativeAPIRouter creates an api router that does relative routes, with no protocol or fqdn

type Web

type Web interface {
	WorkflowExecution(namespace, uid string) string
}

Web provides methods to generate urls for the web client this can be used to generate urls for workspaces or workflows when they are ready.

func NewRelativeWebRouter added in v0.13.0

func NewRelativeWebRouter() (Web, error)

NewRelativeWebRouter creates a web router that does relative routes, with no protocol or fqdn

func NewWebRouter

func NewWebRouter(protocol, fqdn string) (Web, error)

NewWebRouter creates a new web router used to generate urls for the web client

Jump to

Keyboard shortcuts

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