This commit is contained in:
Asim Aslam 2020-04-12 23:41:21 +01:00
parent a056bdce7c
commit 1bb6967a38

View File

@ -17,8 +17,6 @@ var (
// Runtime is a service runtime manager // Runtime is a service runtime manager
type Runtime interface { type Runtime interface {
// String describes runtime
String() string
// Init initializes runtime // Init initializes runtime
Init(...Option) error Init(...Option) error
// Create registers a service // Create registers a service
@ -31,12 +29,14 @@ type Runtime interface {
Delete(*Service) error Delete(*Service) error
// List the managed services // List the managed services
List() ([]*Service, error) List() ([]*Service, error)
// Logs returns the logs for a service
Logs(*Service, ...LogsOption) (LogStream, error)
// Start starts the runtime // Start starts the runtime
Start() error Start() error
// Stop shuts down the runtime // Stop shuts down the runtime
Stop() error Stop() error
// Logs // String describes runtime
Logs(*Service, ...LogsOption) (LogStream, error) String() string
} }
// Stream returns a log stream // Stream returns a log stream