Documentation
¶
Overview ¶
Package runc implements container runtime based on OpenContainers libcontainer package.
Index ¶
- type Option
- type Runtime
- func (r *Runtime) DeleteExec(ctx context.Context, id string) error
- func (r *Runtime) Exec(ctx context.Context, id string, esZipPath string, port int) error
- func (r *Runtime) ExecNamespace(ctx context.Context, id string, eszipDir string, servicePort, controlPort int) error
- func (r *Runtime) ExecStatus(ctx context.Context, id string) (edgefunc.Status, error)
- func (r *Runtime) ListExecs(ctx context.Context) ([]edgefunc.Status, error)
- func (r *Runtime) Network() *network.Network
- func (r *Runtime) Resolver(next plugin.Handler) plugin.Handler
- func (r *Runtime) Run(ctx context.Context) error
- func (r *Runtime) StopExec(ctx context.Context, id string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Runtime ¶
type Runtime struct {
// contains filtered or unexported fields
}
Runtime is the runc-based edge function runtime. It implements both edgefunc.Runtime for backward compatibility and provides additional methods for the new controller-based approach.
func NewRuntime ¶
NewRuntime returns a new edgefunc.Runtime implementation based on runc.
func (*Runtime) DeleteExec ¶
DeleteExec implements edgefunc.Runtime.DeleteExec.
func (*Runtime) Exec ¶
Exec implements edgefunc.Runtime.Exec. This creates a single-function container with one eszip file.
func (*Runtime) ExecNamespace ¶
func (r *Runtime) ExecNamespace(ctx context.Context, id string, eszipDir string, servicePort, controlPort int) error
ExecNamespace creates a namespace-based container that can host multiple functions. The container runs edge-runtime in server mode without --main-service, exposing both a service port (for requests) and a control port (for the /_internal/* API). Functions are loaded dynamically via the control API.
func (*Runtime) ExecStatus ¶
ExecStatus implements edgefunc.Runtime.ExecStatus.
func (*Runtime) Network ¶
Network returns the network manager for this runtime. This is used by the EdgeController to get container IP addresses.