machine

package
v0.92.1 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2026 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Overview

Package machine implements the machine execution runtime.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Host     string
	Port     int
	Username string
	Password string
	HostKey  string
}

type Option

type Option = func(rt *Runtime)

func WithConfig

func WithConfig(config Config) Option

type Runtime

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

func NewRuntime

func NewRuntime(opts ...Option) (*Runtime, error)

func (*Runtime) Close added in v0.92.0

func (r *Runtime) Close() error

func (*Runtime) HealthCheck

func (r *Runtime) HealthCheck(_ context.Context) error

func (*Runtime) Run

func (r *Runtime) Run(ctx context.Context, t *types.Task) error

func (*Runtime) Stop

func (r *Runtime) Stop(_ context.Context, t *types.Task) error

Jump to

Keyboard shortcuts

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