system

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API interface {
	GetBIOSSerialNumber() (string, error)
	GetService(name string) (*system.ServiceInfo, error)
	StartService(name string) error
	StopService(name string, force bool) error
}

type Server

type Server struct {
	// contains filtered or unexported fields
}

func NewServer

func NewServer(hostAPI API) (*Server, error)

func (*Server) GetBIOSSerialNumber

func (*Server) GetService

func (s *Server) GetService(context context.Context, request *internal.GetServiceRequest, version apiversion.Version) (*internal.GetServiceResponse, error)

func (*Server) StartService

func (s *Server) StartService(context context.Context, request *internal.StartServiceRequest, version apiversion.Version) (*internal.StartServiceResponse, error)

func (*Server) StopService

func (s *Server) StopService(context context.Context, request *internal.StopServiceRequest, version apiversion.Version) (*internal.StopServiceResponse, error)

func (*Server) VersionedAPIs

func (s *Server) VersionedAPIs() []*srvtypes.VersionedAPI

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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