grpc

package
v0.0.0-...-0479c09 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_egida_proto protoreflect.FileDescriptor

Functions

func RegisterHardeningScoresServer

func RegisterHardeningScoresServer(s *grpc.Server, srv HardeningScoresServer)

func RegisterMachineInfoServer

func RegisterMachineInfoServer(s *grpc.Server, srv MachineInfoServer)

func RegisterPackagesServer

func RegisterPackagesServer(s *grpc.Server, srv PackagesServer)

func RegisterServicesServer

func RegisterServicesServer(s *grpc.Server, srv ServicesServer)

Types

type HardeningScoresClient

type HardeningScoresClient interface {
	GetLynisScore(ctx context.Context, in *ScoreReq, opts ...grpc.CallOption) (*LynisScore, error)
}

HardeningScoresClient is the client API for HardeningScores service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type HardeningScoresServer

type HardeningScoresServer interface {
	GetLynisScore(context.Context, *ScoreReq) (*LynisScore, error)
}

HardeningScoresServer is the server API for HardeningScores service.

type HasGUI

type HasGUI struct {
	Gui bool `protobuf:"varint,1,opt,name=gui,proto3" json:"gui,omitempty"`
	// contains filtered or unexported fields
}

func (*HasGUI) Descriptor deprecated

func (*HasGUI) Descriptor() ([]byte, []int)

Deprecated: Use HasGUI.ProtoReflect.Descriptor instead.

func (*HasGUI) GetGui

func (x *HasGUI) GetGui() bool

func (*HasGUI) ProtoMessage

func (*HasGUI) ProtoMessage()

func (*HasGUI) ProtoReflect

func (x *HasGUI) ProtoReflect() protoreflect.Message

func (*HasGUI) Reset

func (x *HasGUI) Reset()

func (*HasGUI) String

func (x *HasGUI) String() string

type HasGUIReq

type HasGUIReq struct {
	// contains filtered or unexported fields
}

func (*HasGUIReq) Descriptor deprecated

func (*HasGUIReq) Descriptor() ([]byte, []int)

Deprecated: Use HasGUIReq.ProtoReflect.Descriptor instead.

func (*HasGUIReq) ProtoMessage

func (*HasGUIReq) ProtoMessage()

func (*HasGUIReq) ProtoReflect

func (x *HasGUIReq) ProtoReflect() protoreflect.Message

func (*HasGUIReq) Reset

func (x *HasGUIReq) Reset()

func (*HasGUIReq) String

func (x *HasGUIReq) String() string

type ListOpenPortsReq

type ListOpenPortsReq struct {
	// contains filtered or unexported fields
}

func (*ListOpenPortsReq) Descriptor deprecated

func (*ListOpenPortsReq) Descriptor() ([]byte, []int)

Deprecated: Use ListOpenPortsReq.ProtoReflect.Descriptor instead.

func (*ListOpenPortsReq) ProtoMessage

func (*ListOpenPortsReq) ProtoMessage()

func (*ListOpenPortsReq) ProtoReflect

func (x *ListOpenPortsReq) ProtoReflect() protoreflect.Message

func (*ListOpenPortsReq) Reset

func (x *ListOpenPortsReq) Reset()

func (*ListOpenPortsReq) String

func (x *ListOpenPortsReq) String() string

type ListPackage

type ListPackage struct {
	Packages []*Package `protobuf:"bytes,1,rep,name=packages,proto3" json:"packages,omitempty"`
	// contains filtered or unexported fields
}

func (*ListPackage) Descriptor deprecated

func (*ListPackage) Descriptor() ([]byte, []int)

Deprecated: Use ListPackage.ProtoReflect.Descriptor instead.

func (*ListPackage) GetPackages

func (x *ListPackage) GetPackages() []*Package

func (*ListPackage) ProtoMessage

func (*ListPackage) ProtoMessage()

func (*ListPackage) ProtoReflect

func (x *ListPackage) ProtoReflect() protoreflect.Message

func (*ListPackage) Reset

func (x *ListPackage) Reset()

func (*ListPackage) String

func (x *ListPackage) String() string

type ListPackagesReq

type ListPackagesReq struct {
	// contains filtered or unexported fields
}

func (*ListPackagesReq) Descriptor deprecated

func (*ListPackagesReq) Descriptor() ([]byte, []int)

Deprecated: Use ListPackagesReq.ProtoReflect.Descriptor instead.

func (*ListPackagesReq) ProtoMessage

func (*ListPackagesReq) ProtoMessage()

func (*ListPackagesReq) ProtoReflect

func (x *ListPackagesReq) ProtoReflect() protoreflect.Message

func (*ListPackagesReq) Reset

func (x *ListPackagesReq) Reset()

func (*ListPackagesReq) String

func (x *ListPackagesReq) String() string

type ListPort

type ListPort struct {
	Ports []*Port `protobuf:"bytes,1,rep,name=ports,proto3" json:"ports,omitempty"`
	// contains filtered or unexported fields
}

func (*ListPort) Descriptor deprecated

func (*ListPort) Descriptor() ([]byte, []int)

Deprecated: Use ListPort.ProtoReflect.Descriptor instead.

func (*ListPort) GetPorts

func (x *ListPort) GetPorts() []*Port

func (*ListPort) ProtoMessage

func (*ListPort) ProtoMessage()

func (*ListPort) ProtoReflect

func (x *ListPort) ProtoReflect() protoreflect.Message

func (*ListPort) Reset

func (x *ListPort) Reset()

func (*ListPort) String

func (x *ListPort) String() string

type ListService

type ListService struct {
	Services []*Service `protobuf:"bytes,1,rep,name=services,proto3" json:"services,omitempty"`
	// contains filtered or unexported fields
}

func (*ListService) Descriptor deprecated

func (*ListService) Descriptor() ([]byte, []int)

Deprecated: Use ListService.ProtoReflect.Descriptor instead.

func (*ListService) GetServices

func (x *ListService) GetServices() []*Service

func (*ListService) ProtoMessage

func (*ListService) ProtoMessage()

func (*ListService) ProtoReflect

func (x *ListService) ProtoReflect() protoreflect.Message

func (*ListService) Reset

func (x *ListService) Reset()

func (*ListService) String

func (x *ListService) String() string

type ListServicesReq

type ListServicesReq struct {
	// contains filtered or unexported fields
}

func (*ListServicesReq) Descriptor deprecated

func (*ListServicesReq) Descriptor() ([]byte, []int)

Deprecated: Use ListServicesReq.ProtoReflect.Descriptor instead.

func (*ListServicesReq) ProtoMessage

func (*ListServicesReq) ProtoMessage()

func (*ListServicesReq) ProtoReflect

func (x *ListServicesReq) ProtoReflect() protoreflect.Message

func (*ListServicesReq) Reset

func (x *ListServicesReq) Reset()

func (*ListServicesReq) String

func (x *ListServicesReq) String() string

type LynisScore

type LynisScore struct {
	Score string   `protobuf:"bytes,1,opt,name=score,proto3" json:"score,omitempty"`
	Log   []string `protobuf:"bytes,2,rep,name=log,proto3" json:"log,omitempty"`
	// contains filtered or unexported fields
}

func (*LynisScore) Descriptor deprecated

func (*LynisScore) Descriptor() ([]byte, []int)

Deprecated: Use LynisScore.ProtoReflect.Descriptor instead.

func (*LynisScore) GetLog

func (x *LynisScore) GetLog() []string

func (*LynisScore) GetScore

func (x *LynisScore) GetScore() string

func (*LynisScore) ProtoMessage

func (*LynisScore) ProtoMessage()

func (*LynisScore) ProtoReflect

func (x *LynisScore) ProtoReflect() protoreflect.Message

func (*LynisScore) Reset

func (x *LynisScore) Reset()

func (*LynisScore) String

func (x *LynisScore) String() string

type MachineInfoClient

type MachineInfoClient interface {
	ListOpenPorts(ctx context.Context, in *ListOpenPortsReq, opts ...grpc.CallOption) (*ListPort, error)
	MachineHasGUI(ctx context.Context, in *HasGUIReq, opts ...grpc.CallOption) (*HasGUI, error)
}

MachineInfoClient is the client API for MachineInfo service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type MachineInfoServer

type MachineInfoServer interface {
	ListOpenPorts(context.Context, *ListOpenPortsReq) (*ListPort, error)
	MachineHasGUI(context.Context, *HasGUIReq) (*HasGUI, error)
}

MachineInfoServer is the server API for MachineInfo service.

type Package

type Package struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*Package) Descriptor deprecated

func (*Package) Descriptor() ([]byte, []int)

Deprecated: Use Package.ProtoReflect.Descriptor instead.

func (*Package) GetName

func (x *Package) GetName() string

func (*Package) ProtoMessage

func (*Package) ProtoMessage()

func (*Package) ProtoReflect

func (x *Package) ProtoReflect() protoreflect.Message

func (*Package) Reset

func (x *Package) Reset()

func (*Package) String

func (x *Package) String() string

type PackagesClient

type PackagesClient interface {
	ListAllPackages(ctx context.Context, in *ListPackagesReq, opts ...grpc.CallOption) (*ListPackage, error)
}

PackagesClient is the client API for Packages service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewPackagesClient

func NewPackagesClient(cc grpc.ClientConnInterface) PackagesClient

type PackagesServer

type PackagesServer interface {
	ListAllPackages(context.Context, *ListPackagesReq) (*ListPackage, error)
}

PackagesServer is the server API for Packages service.

type Port

type Port struct {
	Number int64 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"`
	// contains filtered or unexported fields
}

func (*Port) Descriptor deprecated

func (*Port) Descriptor() ([]byte, []int)

Deprecated: Use Port.ProtoReflect.Descriptor instead.

func (*Port) GetNumber

func (x *Port) GetNumber() int64

func (*Port) ProtoMessage

func (*Port) ProtoMessage()

func (*Port) ProtoReflect

func (x *Port) ProtoReflect() protoreflect.Message

func (*Port) Reset

func (x *Port) Reset()

func (*Port) String

func (x *Port) String() string

type ScoreReq

type ScoreReq struct {
	// contains filtered or unexported fields
}

func (*ScoreReq) Descriptor deprecated

func (*ScoreReq) Descriptor() ([]byte, []int)

Deprecated: Use ScoreReq.ProtoReflect.Descriptor instead.

func (*ScoreReq) ProtoMessage

func (*ScoreReq) ProtoMessage()

func (*ScoreReq) ProtoReflect

func (x *ScoreReq) ProtoReflect() protoreflect.Message

func (*ScoreReq) Reset

func (x *ScoreReq) Reset()

func (*ScoreReq) String

func (x *ScoreReq) String() string

type Service

type Service struct {
	Name   string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*Service) Descriptor deprecated

func (*Service) Descriptor() ([]byte, []int)

Deprecated: Use Service.ProtoReflect.Descriptor instead.

func (*Service) GetName

func (x *Service) GetName() string

func (*Service) GetStatus

func (x *Service) GetStatus() string

func (*Service) ProtoMessage

func (*Service) ProtoMessage()

func (*Service) ProtoReflect

func (x *Service) ProtoReflect() protoreflect.Message

func (*Service) Reset

func (x *Service) Reset()

func (*Service) String

func (x *Service) String() string

type ServiceNameReq

type ServiceNameReq struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*ServiceNameReq) Descriptor deprecated

func (*ServiceNameReq) Descriptor() ([]byte, []int)

Deprecated: Use ServiceNameReq.ProtoReflect.Descriptor instead.

func (*ServiceNameReq) GetName

func (x *ServiceNameReq) GetName() string

func (*ServiceNameReq) ProtoMessage

func (*ServiceNameReq) ProtoMessage()

func (*ServiceNameReq) ProtoReflect

func (x *ServiceNameReq) ProtoReflect() protoreflect.Message

func (*ServiceNameReq) Reset

func (x *ServiceNameReq) Reset()

func (*ServiceNameReq) String

func (x *ServiceNameReq) String() string

type ServicesClient

type ServicesClient interface {
	ListAllServices(ctx context.Context, in *ListServicesReq, opts ...grpc.CallOption) (*ListService, error)
	ListRunningServices(ctx context.Context, in *ListServicesReq, opts ...grpc.CallOption) (*ListService, error)
	ListStoppedServices(ctx context.Context, in *ListServicesReq, opts ...grpc.CallOption) (*ListService, error)
	GetService(ctx context.Context, in *ServiceNameReq, opts ...grpc.CallOption) (*Service, error)
}

ServicesClient is the client API for Services service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewServicesClient

func NewServicesClient(cc grpc.ClientConnInterface) ServicesClient

type ServicesServer

type ServicesServer interface {
	ListAllServices(context.Context, *ListServicesReq) (*ListService, error)
	ListRunningServices(context.Context, *ListServicesReq) (*ListService, error)
	ListStoppedServices(context.Context, *ListServicesReq) (*ListService, error)
	GetService(context.Context, *ServiceNameReq) (*Service, error)
}

ServicesServer is the server API for Services service.

type UnimplementedHardeningScoresServer

type UnimplementedHardeningScoresServer struct {
}

UnimplementedHardeningScoresServer can be embedded to have forward compatible implementations.

func (*UnimplementedHardeningScoresServer) GetLynisScore

type UnimplementedMachineInfoServer

type UnimplementedMachineInfoServer struct {
}

UnimplementedMachineInfoServer can be embedded to have forward compatible implementations.

func (*UnimplementedMachineInfoServer) ListOpenPorts

func (*UnimplementedMachineInfoServer) MachineHasGUI

type UnimplementedPackagesServer

type UnimplementedPackagesServer struct {
}

UnimplementedPackagesServer can be embedded to have forward compatible implementations.

func (*UnimplementedPackagesServer) ListAllPackages

type UnimplementedServicesServer

type UnimplementedServicesServer struct {
}

UnimplementedServicesServer can be embedded to have forward compatible implementations.

func (*UnimplementedServicesServer) GetService

func (*UnimplementedServicesServer) ListAllServices

func (*UnimplementedServicesServer) ListRunningServices

func (*UnimplementedServicesServer) ListStoppedServices

Jump to

Keyboard shortcuts

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