Add Update/List endpoints to runtime
This commit is contained in:
@@ -7,6 +7,10 @@ type Runtime interface {
|
||||
Create(*Service, ...CreateOption) error
|
||||
// Remove a service
|
||||
Delete(*Service) error
|
||||
// Update the service in place
|
||||
Update(*Service) error
|
||||
// List the managed services
|
||||
List() ([]*Service, error)
|
||||
// starts the runtime
|
||||
Start() error
|
||||
// Shutdown the runtime
|
||||
@@ -36,6 +40,14 @@ func Delete(s *Service) error {
|
||||
return DefaultRuntime.Delete(s)
|
||||
}
|
||||
|
||||
func Update(s *Service) error {
|
||||
return DefaultRuntime.Update(s)
|
||||
}
|
||||
|
||||
func List() ([]*Service, error) {
|
||||
return DefaultRuntime.List()
|
||||
}
|
||||
|
||||
func Start() error {
|
||||
return DefaultRuntime.Start()
|
||||
}
|
||||
|
Reference in New Issue
Block a user