services

package
v0.11.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2015 License: GPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrServiceNotRunning = errors.New("The requested service is not running, start it with `eris services start [serviceName]`")
)

Functions

func BuildChainGroup

func BuildChainGroup(chainName string, services []*definitions.ServiceDefinition) (servicesAndChains []*definitions.ServiceDefinition, err error)

BuildChainGroup adds the chain specified in each service definition to the service group. If chainName is not empty, it will overwrite chains specified in the defs. Service defs which don't specify a chain or $chain won't connect to a chain. NOTE: chains have to be started before services that depend on them.

func BuildServicesGroup

func BuildServicesGroup(srvName string, cNum int, services ...*definitions.ServiceDefinition) ([]*definitions.ServiceDefinition, error)

TODO: test this recursion and service deps generally

func CatService

func CatService(do *definitions.Do) error

func ConnectChainToService added in v0.10.2

func ConnectChainToService(chainFlag, chainNameAndOpts string, srv *definitions.ServiceDefinition) (*definitions.ServiceDefinition, error)

func EditService

func EditService(do *definitions.Do) error

func EnsureRunning

func EnsureRunning(do *definitions.Do) error

checks that a service is running. if not, tells user to start it

func ExecService added in v0.10.2

func ExecService(do *definitions.Do) error

func ExportService

func ExportService(do *definitions.Do) error

func FindServiceDefinitionFile

func FindServiceDefinitionFile(name string) string

func ImportService

func ImportService(do *definitions.Do) error

func InspectService

func InspectService(do *definitions.Do) error

func InspectServiceByService

func InspectServiceByService(srv *definitions.Service, ops *definitions.Operation, field string) error

func IsServiceExisting

func IsServiceExisting(service *definitions.Service, ops *definitions.Operation) bool

func IsServiceKnown

func IsServiceKnown(service *definitions.Service, ops *definitions.Operation) bool

func IsServiceRunning

func IsServiceRunning(service *definitions.Service, ops *definitions.Operation) bool

func KillService

func KillService(do *definitions.Do) (err error)

func LogsService

func LogsService(do *definitions.Do) error

func NewService

func NewService(do *definitions.Do) error

func PortsService added in v0.10.2

func PortsService(do *definitions.Do) error

func RenameService

func RenameService(do *definitions.Do) error

func RmService

func RmService(do *definitions.Do) error

func StartGroup

func StartGroup(group []*definitions.ServiceDefinition) error

start a group of chains or services. catch errors on a channel so we can stop as soon as something goes wrong

func StartService

func StartService(do *definitions.Do) (err error)

func UpdateService

func UpdateService(do *definitions.Do) error

func WriteServiceDefinitionFile

func WriteServiceDefinitionFile(serviceDef *def.ServiceDefinition, fileName string) error

if given empty string for fileName will use Service Definition Name

Types

This section is empty.

Jump to

Keyboard shortcuts

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