server

package
v1.4.8 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2023 License: MPL-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	machine.UnimplementedMachineServiceServer
	// contains filtered or unexported fields
}

Server implements machine.MachineService, network.NetworkService, and storage.StorageService.

func New

func New(c runtime.Controller, logger *log.Logger, cfgCh chan<- []byte) *Server

New initializes and returns a `Server`.

func (*Server) ApplyConfiguration

ApplyConfiguration implements machine.MachineService.

func (*Server) GenerateClientConfiguration

GenerateClientConfiguration implements the machine.MachineServer interface.

func (*Server) GenerateConfiguration

GenerateConfiguration implements the machine.MachineServer interface.

func (*Server) Register

func (s *Server) Register(obj *grpc.Server)

Register implements the factory.Registrator interface.

func (*Server) Reset added in v1.4.0

func (s *Server) Reset(ctx context.Context, in *machine.ResetRequest) (reply *machine.ResetResponse, err error)

Reset resets the node.

func (*Server) Upgrade

func (s *Server) Upgrade(ctx context.Context, in *machine.UpgradeRequest) (reply *machine.UpgradeResponse, err error)

Upgrade initiates an upgrade.

func (*Server) Version

func (s *Server) Version(ctx context.Context, in *emptypb.Empty) (*machine.VersionResponse, error)

Version implements the machine.MachineServer interface.

Jump to

Keyboard shortcuts

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