engine

package
v0.0.0-...-617be98 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Binding

type Binding[T int | string] struct {
	// contains filtered or unexported fields
}

type Engine

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

func CreateEngine

func CreateEngine() *Engine

func (*Engine) Attach

func (engine *Engine) Attach()

func (*Engine) CreateCapsule

func (engine *Engine) CreateCapsule(ccr models.CapsuleCreateRequest) (container.CreateResponse, error)

func (*Engine) DeleteCapsule

func (engine *Engine) DeleteCapsule(capsule models.Capsule) error

func (*Engine) Exec

func (engine *Engine) Exec()

func (*Engine) ListCapsules

func (engine *Engine) ListCapsules() ([]models.Capsule, error)

func (*Engine) PullImage

func (engine *Engine) PullImage(imageName string) (<-chan string, <-chan bool, error)

TODO might not be well-handled

func (*Engine) StartCapsule

func (engine *Engine) StartCapsule(id string) error

func (*Engine) StartEvent

func (engine *Engine) StartEvent() (<-chan models.CapsuleEvent, <-chan error)

func (*Engine) StopCapsule

func (engine *Engine) StopCapsule(id string) error

func (*Engine) StopEvent

func (engine *Engine) StopEvent()

type MyDevEnv

type MyDevEnv struct {
	Name    string
	Image   string
	Ports   []Binding[int]
	Volumes []Binding[string]
	IsGUI   bool
}

Jump to

Keyboard shortcuts

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