services

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func All

func All() ([]*service.Service, error)

All returns all deployed services.

func Delete

func Delete(hash string) error

Delete deletes a service from the database based on the hash.

func Get

func Get(hash string) (service service.Service, err error)

Get returns a service based on the hash.

func Save

func Save(service *service.Service) (hash string, err error)

Save stores a service in the database and returns a hash or an error.

Types

type NotFound

type NotFound struct {
	Hash string
}

NotFound represents a service not found error.

func (NotFound) Error

func (e NotFound) Error() string

Jump to

Keyboard shortcuts

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