Documentation
¶
Index ¶
- Variables
- type Component
- func (c *Component) Close() error
- func (c *Component) Detach() error
- func (c *Component) IsRunning() bool
- func (c *Component) PID() (int, error)
- func (c *Component) RPCState() *rpc.State
- func (c *Component) SetRestartMode(v bool)
- func (c *Component) Start(ctx context.Context, config *Config) error
- func (c *Component) StartOrReconnect(ctx context.Context, config *Config) error
- func (c *Component) Stop(ctx context.Context) error
- type Config
- type ServiceConfig
Constants ¶
This section is empty.
Variables ¶
var LoadServiceConfig = server.LoadServiceConfig
LoadServiceConfig re-exports server.LoadServiceConfig for use by the runner
var SaveServiceConfig = server.SaveServiceConfig
SaveServiceConfig re-exports server.SaveServiceConfig for use by the runner
Functions ¶
This section is empty.
Types ¶
type Component ¶
type Component struct {
// contains filtered or unexported fields
}
Component manages an lsvd-server as an outboard process
func NewComponent ¶
NewComponent creates a new LSVD component
func (*Component) Close ¶
Close implements io.Closer for use in closers list. If restart mode is set, it detaches from the process instead of stopping it.
func (*Component) Detach ¶
Detach disconnects from lsvd-server without stopping it. The process keeps running and can be reconnected later.
func (*Component) SetRestartMode ¶
SetRestartMode sets whether the component should detach (preserve process) instead of stopping when Close() is called.
func (*Component) StartOrReconnect ¶
StartOrReconnect tries to reconnect to an existing lsvd-server, falling back to start.
type Config ¶
type Config struct {
// Base directory for LSVD data (volumes, state file)
DataPath string
// Directory for outboard process files (config, FIFOs)
// e.g., /var/lib/miren/outboard/lsvd-server
OutboardPath string
// Entity server RPC address (e.g., localhost:9000)
EntityServerAddr string
// Node ID for filtering entities
NodeId string
// Optional: additional environment variables
Env []string
}
Config defines the configuration for running lsvd-server
type ServiceConfig ¶
type ServiceConfig = server.ServiceConfig
ServiceConfig re-exports server.ServiceConfig for use by the runner
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
lsvd-server
command
Command lsvd-server is a separate process that manages LSVD volumes and mounts.
|
Command lsvd-server is a separate process that manages LSVD volumes and mounts. |