services

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 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() (services []*service.Service, err error)

All returns all deployed services

func Delete

func Delete(hash string) (err error)

Delete a service based on its hash

func Get

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

Get a service based on it's hash

func Save

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

Save a service in the database and return the hash or the error if something wrong happened

Types

type NotFound added in v1.0.0

type NotFound struct {
	Hash string
}

NotFound represents a service not found error

func (NotFound) Error added in v1.0.0

func (e NotFound) Error() string

Jump to

Keyboard shortcuts

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