package core
import "github.com/Microsoft/opengcs/service/gcs/core"
Package core defines the interface representing the core functionality of a GCS-like program.
Index ¶
Types ¶
type Core ¶
type Core interface { CreateContainer(id string, info prot.VMHostedContainerSettings) error ExecProcess(id string, info prot.ProcessParameters, stdioSet *stdio.ConnectionSet) (pid int, err error) SignalContainer(id string, signal oslayer.Signal) error SignalProcess(pid int, options prot.SignalProcessOptions) error GetProperties(id string, query string) (*prot.Properties, error) RunExternalProcess(info prot.ProcessParameters, stdioSet *stdio.ConnectionSet) (pid int, err error) ModifySettings(id string, request prot.ResourceModificationRequestResponse) error ResizeConsole(pid int, height, width uint16) error WaitContainer(id string) (func() int, 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.
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
service/gcs/core/gcs | Package gcs defines the core functionality of the GCS. |
service/gcs/core/mockcore | Package mockcore defines a mock implementation of the Core interface. |
- Version
- v0.3.7
- Published
- Apr 11, 2018
- Platform
- windows/amd64
- Imports
- 3 packages
- Last checked
- 56 seconds ago –
Tools for package owners.