smallstack

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 14 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SlaveTrader

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

func NewSlaveTrader

func NewSlaveTrader(createRequest hyper_proto.CreateVmRequest,
	logger log.DebugLogger) (*SlaveTrader, error)

func NewSlaveTraderWithOptions added in v0.3.3

func NewSlaveTraderWithOptions(options SlaveTraderOptions,
	logger log.DebugLogger) (*SlaveTrader, error)

func (*SlaveTrader) Close

func (trader *SlaveTrader) Close() error

func (*SlaveTrader) CreateSlave

func (trader *SlaveTrader) CreateSlave() (slavedriver.SlaveInfo, error)

func (*SlaveTrader) CreateSlaveWithAcknowledger added in v0.3.4

func (trader *SlaveTrader) CreateSlaveWithAcknowledger(
	acknowledgeChannel <-chan chan<- error) (slavedriver.SlaveInfo, error)

func (*SlaveTrader) DestroySlave

func (trader *SlaveTrader) DestroySlave(identifier string) error

type SlaveTraderOptions added in v0.3.3

type SlaveTraderOptions struct {
	CreateRequest     hyper_proto.CreateVmRequest
	CreateTimeout     time.Duration // Default: 5 minutes.
	DestroyTimeout    time.Duration // Default: 1 minute.
	HypervisorAddress string        // Default: local Hypervisor.
}

Jump to

Keyboard shortcuts

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