machine

package
v0.19.7 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

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
}

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) 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