router

package
v0.0.0-...-43d1ab5 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRouter

func NewRouter(b Backend) router.Router

NewRouter creates a new Stacks Router.

Types

type Backend

type Backend interface {
	CreateStack(types.StackSpec) (types.StackCreateResponse, error)
	GetStack(id string) (types.Stack, error)
	ListStacks() ([]types.Stack, error)
	UpdateStack(id string, spec types.StackSpec, version uint64) error
	DeleteStack(id string) error
}

Backend abstracts the Stacks API.

Jump to

Keyboard shortcuts

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