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 ServerInterface ¶
type ServerInterface interface {
GetBIOSSerialNumber(context.Context, *GetBIOSSerialNumberRequest, apiversion.Version) (*GetBIOSSerialNumberResponse, error)
GetService(context.Context, *GetServiceRequest, apiversion.Version) (*GetServiceResponse, error)
StartService(context.Context, *StartServiceRequest, apiversion.Version) (*StartServiceResponse, error)
StopService(context.Context, *StopServiceRequest, apiversion.Version) (*StopServiceResponse, error)
}
All the functions this group's server needs to define.
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 StopServiceRequest ¶
type StopServiceResponse ¶
type StopServiceResponse struct {
}
type VersionedAPI ¶
Click to show internal directories.
Click to hide internal directories.