core

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2020 License: MIT Imports: 3 Imported by: 3

Documentation

Overview

Package core defines the interface representing the core functionality of a GCS-like program.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Core

type Core interface {
	CreateContainer(id string, info prot.VMHostedContainerSettings) error
	ExecProcess(id string, info prot.ProcessParameters, conSettings stdio.ConnectionSettings) (pid int, execInitErrorDone chan<- struct{}, err error)
	SignalContainer(id string, signal syscall.Signal) error
	SignalProcess(pid int, options prot.SignalProcessOptions) error
	GetProperties(id string, query string) (*prot.Properties, error)
	RunExternalProcess(info prot.ProcessParameters, conSettings stdio.ConnectionSettings) (pid int, err error)
	ModifySettings(id string, request *prot.ResourceModificationRequestResponse) error
	ResizeConsole(pid int, height, width uint16) error
	WaitContainer(id string) (func() prot.NotificationType, error)
	WaitProcess(pid int) (<-chan int, chan<- bool, error)
}

Core is the interface defining the core functionality of the GCS-like program. For a real implementation, this may include creating and configuring containers. However, it is also easily mocked out for testing.

Directories

Path Synopsis
Package gcs defines the core functionality of the GCS.
Package gcs defines the core functionality of the GCS.
Package mockcore defines a mock implementation of the Core interface.
Package mockcore defines a mock implementation of the Core interface.

Jump to

Keyboard shortcuts

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