runtime

package
v1.8.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2024 License: MPL-2.0 Imports: 24 Imported by: 0

Documentation

Overview

Package runtime starts COSI state and runtime.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewState

func NewState(path string, logger *zap.Logger) (state.State, io.Closer, error)

NewState creates State.

Types

type Runtime

type Runtime struct {
	// contains filtered or unexported fields
}

Runtime handles COSI state setup and lifecycle.

func NewRuntime

func NewRuntime(ctx context.Context, logger *zap.Logger, machineIndex int, globalState state.State,
	kubernetes *kubefactory.Kubernetes, logSink *logging.ZapCore,
) (*Runtime, error)

NewRuntime creates new runtime.

func (*Runtime) Run

func (r *Runtime) Run(ctx context.Context) error

Run starts COSI runtime.

func (*Runtime) State

func (r *Runtime) State() state.State

State returns COSI state.

Directories

Path Synopsis
Package resources contains all COSI related resource code.
Package resources contains all COSI related resource code.
emu
Package emu contains emulator specific resources.
Package emu contains emulator specific resources.
talos
Package talos contains Talos specific resources.
Package talos contains Talos specific resources.

Jump to

Keyboard shortcuts

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