mgmt

package
v0.0.0-...-5fb8a3f Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Overview

Package mgmt implements the node-local management service, a.k.a. metropolis.proto.api.NodeManagement.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogService

type LogService struct {
	LogTree *logtree.LogTree
}

LogService implements NodeManagement.Logs. This is split away from the rest of the Service to allow the debug service to reuse this implementation.

func (*LogService) Logs

type Service

type Service struct {
	// NodeCredentials used to set up gRPC server.
	NodeCredentials *identity.NodeCredentials
	// LogTree from which NodeManagement.Logs will be served.
	LogTree *logtree.LogTree
	// Update service handle for performing updates via the API.
	UpdateService *update.Service

	// Automatically populated on Run.
	LogService
	// contains filtered or unexported fields
}

Service implements metropolis.proto.api.NodeManagement.

func (*Service) Reboot

func (s *Service) Reboot(ctx context.Context, req *apb.RebootRequest) (*apb.RebootResponse, error)

func (*Service) Run

func (s *Service) Run(ctx context.Context) error

Run the Servie as a supervisor runnable.

func (*Service) UpdateNode

func (s *Service) UpdateNode(ctx context.Context, req *apb.UpdateNodeRequest) (*apb.UpdateNodeResponse, error)

Jump to

Keyboard shortcuts

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