remove start from runtime

This commit is contained in:
Asim Aslam
2020-10-20 10:28:47 +01:00
parent 4a5b91c215
commit ee1c429e37
2 changed files with 4 additions and 3 deletions

View File

@@ -51,11 +51,14 @@ func NewRuntime(opts ...runtime.Option) runtime.Runtime {
// make the logs directory // make the logs directory
os.MkdirAll(LogDir, 0755) os.MkdirAll(LogDir, 0755)
return &localRuntime{ lr := &localRuntime{
options: options, options: options,
start: make(chan *service, 128), start: make(chan *service, 128),
namespaces: make(map[string]map[string]*service), namespaces: make(map[string]map[string]*service),
} }
lr.Start()
return lr
} }
// Init initializes runtime options // Init initializes runtime options

View File

@@ -26,8 +26,6 @@ type Runtime interface {
Delete(Resource, ...DeleteOption) error Delete(Resource, ...DeleteOption) error
// Logs returns the logs for a resource // Logs returns the logs for a resource
Logs(Resource, ...LogsOption) (Logs, error) Logs(Resource, ...LogsOption) (Logs, error)
// Start starts the runtime
Start() error
// Stop shuts down the runtime // Stop shuts down the runtime
Stop() error Stop() error
// String defines the runtime implementation // String defines the runtime implementation