vmcompute

package
v0.0.0-...-2393a11 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HcsCloseComputeSystem

func HcsCloseComputeSystem(ctx gcontext.Context, computeSystem HcsSystem) (hr error)

func HcsCloseProcess

func HcsCloseProcess(ctx gcontext.Context, process HcsProcess) (hr error)

func HcsCreateProcess

func HcsCreateProcess(ctx gcontext.Context, computeSystem HcsSystem, processParameters string) (processInformation HcsProcessInformation, process HcsProcess, result string, hr error)

func HcsEnumerateComputeSystems

func HcsEnumerateComputeSystems(ctx gcontext.Context, query string) (computeSystems, result string, hr error)

func HcsGetComputeSystemProperties

func HcsGetComputeSystemProperties(ctx gcontext.Context, computeSystem HcsSystem, propertyQuery string) (properties, result string, hr error)

func HcsGetProcessProperties

func HcsGetProcessProperties(ctx gcontext.Context, process HcsProcess) (processProperties, result string, hr error)

func HcsGetServiceProperties

func HcsGetServiceProperties(ctx gcontext.Context, propertyQuery string) (properties, result string, hr error)

func HcsModifyComputeSystem

func HcsModifyComputeSystem(ctx gcontext.Context, computeSystem HcsSystem, configuration string) (result string, hr error)

func HcsModifyProcess

func HcsModifyProcess(ctx gcontext.Context, process HcsProcess, settings string) (result string, hr error)

func HcsModifyServiceSettings

func HcsModifyServiceSettings(ctx gcontext.Context, settings string) (result string, hr error)

func HcsPauseComputeSystem

func HcsPauseComputeSystem(ctx gcontext.Context, computeSystem HcsSystem, options string) (result string, hr error)

func HcsResumeComputeSystem

func HcsResumeComputeSystem(ctx gcontext.Context, computeSystem HcsSystem, options string) (result string, hr error)

func HcsShutdownComputeSystem

func HcsShutdownComputeSystem(ctx gcontext.Context, computeSystem HcsSystem, options string) (result string, hr error)

func HcsSignalProcess

func HcsSignalProcess(ctx gcontext.Context, process HcsProcess, options string) (result string, hr error)

func HcsStartComputeSystem

func HcsStartComputeSystem(ctx gcontext.Context, computeSystem HcsSystem, options string) (result string, hr error)

func HcsTerminateComputeSystem

func HcsTerminateComputeSystem(ctx gcontext.Context, computeSystem HcsSystem, options string) (result string, hr error)

func HcsTerminateProcess

func HcsTerminateProcess(ctx gcontext.Context, process HcsProcess) (result string, hr error)

func HcsUnregisterComputeSystemCallback

func HcsUnregisterComputeSystemCallback(ctx gcontext.Context, callbackHandle HcsCallback) (hr error)

func HcsUnregisterProcessCallback

func HcsUnregisterProcessCallback(ctx gcontext.Context, callbackHandle HcsCallback) (hr error)

Types

type HcsCallback

type HcsCallback syscall.Handle

HcsCallback is the handle associated with the function to call when events occur.

func HcsRegisterComputeSystemCallback

func HcsRegisterComputeSystemCallback(ctx gcontext.Context, computeSystem HcsSystem, callback uintptr, context uintptr) (callbackHandle HcsCallback, hr error)

func HcsRegisterProcessCallback

func HcsRegisterProcessCallback(ctx gcontext.Context, process HcsProcess, callback uintptr, context uintptr) (callbackHandle HcsCallback, hr error)

type HcsProcess

type HcsProcess syscall.Handle

HcsProcess is the handle associated with a created process in a compute system.

func HcsOpenProcess

func HcsOpenProcess(ctx gcontext.Context, computeSystem HcsSystem, pid uint32) (process HcsProcess, result string, hr error)

type HcsProcessInformation

type HcsProcessInformation struct {
	// ProcessId is the pid of the created process.
	ProcessId uint32

	// StdInput is the handle associated with the stdin of the process.
	StdInput syscall.Handle
	// StdOutput is the handle associated with the stdout of the process.
	StdOutput syscall.Handle
	// StdError is the handle associated with the stderr of the process.
	StdError syscall.Handle
	// contains filtered or unexported fields
}

HcsProcessInformation is the structure used when creating or getting process info.

func HcsGetProcessInfo

func HcsGetProcessInfo(ctx gcontext.Context, process HcsProcess) (processInformation HcsProcessInformation, result string, hr error)

type HcsSystem

type HcsSystem syscall.Handle

HcsSystem is the handle associated with a created compute system.

func HcsCreateComputeSystem

func HcsCreateComputeSystem(ctx gcontext.Context, id string, configuration string, identity syscall.Handle) (computeSystem HcsSystem, result string, hr error)

func HcsOpenComputeSystem

func HcsOpenComputeSystem(ctx gcontext.Context, id string) (computeSystem HcsSystem, result string, hr error)

Jump to

Keyboard shortcuts

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