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.
Click to show internal directories.
Click to hide internal directories.