handler

package
v0.0.0-...-7a62f64 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(cpuSvc service.CPU, hostSvc service.Host, memSvc service.Memory, moboSvc service.Motherboard, netSvc service.Network, strSvc service.Storage, metrics metrics.Writer) campd.CampdServer

Types

type Handler

type Handler struct {
	campd.UnimplementedCampdServer
	// contains filtered or unexported fields
}

func (*Handler) BootTime

func (h *Handler) BootTime(ctx context.Context, in *emptypb.Empty) (*campd.BootTimeOutput, error)

func (*Handler) DescribeBios

func (h *Handler) DescribeBios(ctx context.Context, in *emptypb.Empty) (*campd.DescribeBiosOutput, error)

func (*Handler) DescribeCpu

func (h *Handler) DescribeCpu(ctx context.Context, in *emptypb.Empty) (*campd.DescribeCpuOutput, error)

func (*Handler) DescribeDisk

func (*Handler) DescribeHost

func (h *Handler) DescribeHost(ctx context.Context, req *emptypb.Empty) (*campd.DescribeHostOutput, error)

func (*Handler) DescribeMemory

func (h *Handler) DescribeMemory(ctx context.Context, req *emptypb.Empty) (*campd.DescribeMemoryOutput, error)

func (*Handler) DescribeMotherboard

func (h *Handler) DescribeMotherboard(ctx context.Context, req *emptypb.Empty) (*campd.DescribeMotherboardOutput, error)

func (*Handler) Health

func (h *Handler) Health(ctx context.Context, in *emptypb.Empty) (*campd.HealthOutput, error)

func (*Handler) ListAddresses

func (h *Handler) ListAddresses(ctx context.Context, in *emptypb.Empty) (*campd.ListAddressesOutput, error)

func (*Handler) ListDisks

func (h *Handler) ListDisks(ctx context.Context, in *emptypb.Empty) (*campd.ListDisksOutput, error)

func (*Handler) ListNetworkInterfaces

func (h *Handler) ListNetworkInterfaces(ctx context.Context, in *emptypb.Empty) (*campd.ListNetworkInterfacesOutput, error)

func (*Handler) PowerOff

func (*Handler) Reboot

func (*Handler) Uptime

func (h *Handler) Uptime(ctx context.Context, in *emptypb.Empty) (*campd.UptimeOutput, error)

Jump to

Keyboard shortcuts

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