Update runtime.go
This commit is contained in:
parent
724e2b5830
commit
f12473f4b1
@ -14,6 +14,10 @@ var (
|
|||||||
type Runtime interface {
|
type Runtime interface {
|
||||||
// Init initializes runtime
|
// Init initializes runtime
|
||||||
Init(...Option) error
|
Init(...Option) error
|
||||||
|
// CreateNamespace creates a new namespace in the runtime
|
||||||
|
CreateNamespace(string) error
|
||||||
|
// DeleteNamespace deletes a namespace in the runtime
|
||||||
|
DeleteNamespace(string) error
|
||||||
// Create registers a service
|
// Create registers a service
|
||||||
Create(*Service, ...CreateOption) error
|
Create(*Service, ...CreateOption) error
|
||||||
// Read returns the service
|
// Read returns the service
|
||||||
@ -28,12 +32,8 @@ type Runtime interface {
|
|||||||
Start() error
|
Start() error
|
||||||
// Stop shuts down the runtime
|
// Stop shuts down the runtime
|
||||||
Stop() error
|
Stop() error
|
||||||
// String describes runtime
|
// String defines the runtime implementation
|
||||||
String() string
|
String() string
|
||||||
// CreateNamespace creates a new namespace in the runtime
|
|
||||||
CreateNamespace(string) error
|
|
||||||
// DeleteNamespace deletes a namespace in the runtime
|
|
||||||
DeleteNamespace(string) error
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Logs returns a log stream
|
// Logs returns a log stream
|
||||||
|
Loading…
Reference in New Issue
Block a user