Documentation
¶
Index ¶
- func BuildChainGroup(chainName string, services []*definitions.ServiceDefinition) ([]*definitions.ServiceDefinition, error)
- func BuildServicesGroup(srvName string, cNum int, services ...*definitions.ServiceDefinition) ([]*definitions.ServiceDefinition, error)
- func CatService(do *definitions.Do) error
- func ChainConnectedToAService(chainName string, srv *definitions.ServiceDefinition) (*definitions.ServiceDefinition, error)
- func EditService(do *definitions.Do) error
- func EnsureRunning(do *definitions.Do) error
- func ExportService(do *definitions.Do) error
- func FindServiceDefinitionFile(name string) string
- func ImportService(do *definitions.Do) error
- func InspectService(do *definitions.Do) error
- func InspectServiceByService(srv *definitions.Service, ops *definitions.Operation, field string) error
- func IsServiceExisting(service *definitions.Service, ops *definitions.Operation) bool
- func IsServiceKnown(service *definitions.Service, ops *definitions.Operation) bool
- func IsServiceRunning(service *definitions.Service, ops *definitions.Operation) bool
- func KillService(do *definitions.Do) error
- func KillServiceByService(srvMain *definitions.Service, ops *definitions.Operation, timeout uint) error
- func ListExisting(do *definitions.Do) error
- func ListKnown(do *definitions.Do) error
- func ListRunning(do *definitions.Do) error
- func LogsService(do *definitions.Do) error
- func LogsServiceByService(srv *definitions.Service, ops *definitions.Operation, follow bool, tail string) error
- func NewService(do *definitions.Do) error
- func RenameService(do *definitions.Do) error
- func RmService(do *definitions.Do) error
- func StartGroup(ch chan error, wg *sync.WaitGroup, group []*definitions.ServiceDefinition)
- func StartService(do *definitions.Do) (err error)
- func StartServiceByService(srvMain *definitions.Service, ops *definitions.Operation) error
- func UpdateService(do *definitions.Do) error
- func WriteServiceDefinitionFile(serviceDef *def.ServiceDefinition, fileName string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildChainGroup ¶
func BuildChainGroup(chainName string, services []*definitions.ServiceDefinition) ([]*definitions.ServiceDefinition, error)
Note chainName in this command refers mostly to a chain which has been passed as a flag the command will add to the group a single chain passed into the group as well as individualized chains that each service may individually rely upon.
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 ChainConnectedToAService ¶
func ChainConnectedToAService(chainName string, srv *definitions.ServiceDefinition) (*definitions.ServiceDefinition, error)
func EditService ¶
func EditService(do *definitions.Do) error
func EnsureRunning ¶
func EnsureRunning(do *definitions.Do) error
func ExportService ¶
func ExportService(do *definitions.Do) error
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) error
func KillServiceByService ¶
func KillServiceByService(srvMain *definitions.Service, ops *definitions.Operation, timeout uint) error
func ListExisting ¶
func ListExisting(do *definitions.Do) error
func ListKnown ¶
func ListKnown(do *definitions.Do) error
func ListRunning ¶
func ListRunning(do *definitions.Do) error
func LogsService ¶
func LogsService(do *definitions.Do) error
func LogsServiceByService ¶
func LogsServiceByService(srv *definitions.Service, ops *definitions.Operation, follow bool, tail string) error
func NewService ¶
func NewService(do *definitions.Do) error
func RenameService ¶
func RenameService(do *definitions.Do) error
func RmService ¶
func RmService(do *definitions.Do) error
func StartGroup ¶
func StartGroup(ch chan error, wg *sync.WaitGroup, group []*definitions.ServiceDefinition)
start a group of chains or services. catch errors on a channel so we can stop as soon as something goes wrong TODO: Add ONE Chain
func StartService ¶
func StartService(do *definitions.Do) (err error)
func StartServiceByService ¶
func StartServiceByService(srvMain *definitions.Service, ops *definitions.Operation) 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.
Click to show internal directories.
Click to hide internal directories.