service

package
v0.1.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package service implements the bare metal infra provider GRPC service server.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PowerClientFactory

type PowerClientFactory interface {
	GetClient(powerManagement *specs.PowerManagement) (power.Client, error)
}

PowerClientFactory is the interface for creating power clients.

type ProviderServiceServer

type ProviderServiceServer struct {
	providerpb.UnimplementedProviderServiceServer
	// contains filtered or unexported fields
}

ProviderServiceServer is the bare metal infra provider service server.

func NewProviderServiceServer

func NewProviderServiceServer(powerClientFactory PowerClientFactory, state state.State, logger *zap.Logger) *ProviderServiceServer

NewProviderServiceServer creates a new ProviderServiceServer.

func (*ProviderServiceServer) RebootMachine

func (service *ProviderServiceServer) RebootMachine(ctx context.Context, request *providerpb.RebootMachineRequest) (*providerpb.RebootMachineResponse, error)

RebootMachine reboots a machine.

Jump to

Keyboard shortcuts

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