runtime

package
v0.0.0-...-9dc1917 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 17, 2025 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

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 manages the execution of insid, handling configuration, signal processing, and the lifecycle of node instances.

func New

func New(ctx context.Context, args []string, defaultConfigFile string) (*Runtime, error)

New creates a new Runtime instance. It initializes the application context, sets up signal handling, parses command-line flags, and loads the cluster configuration.

func (*Runtime) GetClientForToken

func (r *Runtime) GetClientForToken(token string) (*client.Client, error)

func (*Runtime) GetHomeDir

func (r *Runtime) GetHomeDir() string

func (*Runtime) GetPublicMux

func (r *Runtime) GetPublicMux() *http.ServeMux

func (*Runtime) GetRootApiKey

func (r *Runtime) GetRootApiKey() string

func (*Runtime) Run

func (r *Runtime) Run() error

Run executes the runtime based on the parsed flags, either running as a single node or as a host managing multiple nodes.

func (*Runtime) Stop

func (r *Runtime) Stop()

Stop gracefully shuts down the runtime by canceling its context.

func (*Runtime) Wait

func (r *Runtime) Wait()

Wait for the runtime to complete its operations. This is typically when the application context is canceled.

func (*Runtime) WithExtension

func (r *Runtime) WithExtension(rp core.Extension) *Runtime

func (*Runtime) WithExtensions

func (r *Runtime) WithExtensions(rps ...core.Extension) *Runtime

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL