Documentation
¶
Overview ¶
Package local runs services as processes on this machine. Processes are detached into their own process group, so they outlive the rig command that started them; pid and log files live under .rig/<env>/.
Index ¶
- func New(env core.Env, c *spec.Component) (any, error)
- type Options
- type Runtime
- func (r *Runtime) Deploy(ctx context.Context, s *spec.Service, _ core.Release) error
- func (r *Runtime) Discover(ctx context.Context) ([]core.Workload, error)
- func (r *Runtime) Exec(ctx context.Context, s *spec.Service, o core.ExecOptions) error
- func (r *Runtime) Forward(ctx context.Context, t core.Target) (string, error)
- func (r *Runtime) Logs(ctx context.Context, s *spec.Service, o core.LogOptions) (<-chan core.LogLine, error)
- func (r *Runtime) PID(svc string) (int, bool)
- func (r *Runtime) Relaunch(ctx context.Context, s *spec.Service, wrap func([]string) []string) error
- func (r *Runtime) Restart(ctx context.Context, s *spec.Service) error
- func (r *Runtime) Scale(ctx context.Context, s *spec.Service, n int) error
- func (r *Runtime) Start(ctx context.Context, s *spec.Service) error
- func (r *Runtime) Status(ctx context.Context, s *spec.Service) (core.Status, error)
- func (r *Runtime) Stop(ctx context.Context, s *spec.Service) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Runtime ¶
func (*Runtime) Forward ¶
Forward is the port itself, except a service's metrics port when its process does not listen there: local configs often give every service its own metrics port while rig.yaml names one for all, so the process's own port serving /metrics stands in.
func (*Runtime) PID ¶
PID is the process id of a running service, for adapters that attach to it (delve, perf).
Click to show internal directories.
Click to hide internal directories.