Support service types in runtime

This commit is contained in:
Asim Aslam
2019-11-29 11:35:00 +00:00
parent 114bc1e18b
commit c3ed83dfba
12 changed files with 171 additions and 164 deletions

View File

@@ -17,7 +17,7 @@ type Runtime interface {
// Create registers a service
Create(*Service, ...CreateOption) error
// Read returns the service
Read(string, ...ReadOption) ([]*Service, error)
Read(...ReadOption) ([]*Service, error)
// Update the service in place
Update(*Service) error
// Remove a service
@@ -84,10 +84,6 @@ type Service struct {
Version string
// url location of source
Source string
// Path to store source
Path string
// Exec command
Exec []string
// Metadata stores metadata
Metadata map[string]string
}