remove start from runtime
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user