smallstack

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2023 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) 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