impl

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SERVICE_STATUS_UNKNOWN          = 0
	SERVICE_STATUS_STOPPED          = 1
	SERVICE_STATUS_START_PENDING    = 2
	SERVICE_STATUS_STOP_PENDING     = 3
	SERVICE_STATUS_RUNNING          = 4
	SERVICE_STATUS_CONTINUE_PENDING = 5
	SERVICE_STATUS_PAUSE_PENDING    = 6
	SERVICE_STATUS_PAUSED           = 7
)
View Source
const (
	START_TYPE_BOOT      = 0
	START_TYPE_SYSTEM    = 1
	START_TYPE_AUTOMATIC = 2
	START_TYPE_MANUAL    = 3
	START_TYPE_DISABLED  = 4
)

Variables

This section is empty.

Functions

This section is empty.

Types

type GetBIOSSerialNumberRequest

type GetBIOSSerialNumberRequest struct {
}

type GetBIOSSerialNumberResponse

type GetBIOSSerialNumberResponse struct {
	SerialNumber string
}

type GetServiceRequest

type GetServiceRequest struct {
	// Service name (as listed in System\CCS\Services keys)
	Name string
}

type GetServiceResponse

type GetServiceResponse struct {
	// Service display name
	DisplayName string

	// Service start type.
	// Used to control whether a service will start on boot, and if so on which
	// boot phase.
	StartType Startype

	// Service status, e.g. stopped, running, paused
	Status ServiceStatus
}

type ServiceStatus

type ServiceStatus uint32

type StartServiceRequest

type StartServiceRequest struct {
	// Service name (as listed in System\CCS\Services keys)
	Name string
}

type StartServiceResponse

type StartServiceResponse struct {
}

type Startype

type Startype uint32

type StopServiceRequest

type StopServiceRequest struct {
	// Service name (as listed in System\CCS\Services keys)
	Name string

	// Forces stopping of services that has dependent services
	Force bool
}

type StopServiceResponse

type StopServiceResponse struct {
}

type VersionedAPI

type VersionedAPI interface {
	Register(grpcServer *grpc.Server)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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