vm

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Copyright (c) Ultraviolet SPDX-License-Identifier: Apache-2.0

Copyright (c) Ultraviolet SPDX-License-Identifier: Apache-2.0

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrFailedToSendMessage = errors.New("failed to send message to channel")
	ErrPanicRecovered      = errors.New("panic recovered: channel may be closed")
)

Functions

This section is empty.

Types

type Provider

type Provider func(config interface{}, logsChan chan *manager.ClientStreamMessage, computationId string) VM

type Stderr

type Stderr struct {
	LogsChan      chan *manager.ClientStreamMessage
	ComputationId string
}

func (*Stderr) Write

func (s *Stderr) Write(p []byte) (n int, err error)

Write implements io.Writer.

type Stdout

type Stdout struct {
	LogsChan      chan *manager.ClientStreamMessage
	ComputationId string
}

func (*Stdout) Write

func (s *Stdout) Write(p []byte) (n int, err error)

Write implements io.Writer.

type VM

type VM interface {
	Start() error
	Stop() error
	SendAgentConfig(ac agent.Computation) error
}

VM represents a virtual machine.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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