Documentation ¶
Index ¶
- Variables
- func RegisterHardeningScoresServer(s *grpc.Server, srv HardeningScoresServer)
- func RegisterMachineInfoServer(s *grpc.Server, srv MachineInfoServer)
- func RegisterPackagesServer(s *grpc.Server, srv PackagesServer)
- func RegisterServicesServer(s *grpc.Server, srv ServicesServer)
- type HardeningScoresClient
- type HardeningScoresServer
- type HasGUI
- type HasGUIReq
- type ListOpenPortsReq
- type ListPackage
- type ListPackagesReq
- type ListPort
- type ListService
- type ListServicesReq
- type LynisScore
- type MachineInfoClient
- type MachineInfoServer
- type Package
- type PackagesClient
- type PackagesServer
- type Port
- type ScoreReq
- type Service
- type ServiceNameReq
- type ServicesClient
- type ServicesServer
- type UnimplementedHardeningScoresServer
- type UnimplementedMachineInfoServer
- type UnimplementedPackagesServer
- type UnimplementedServicesServer
- func (*UnimplementedServicesServer) GetService(context.Context, *ServiceNameReq) (*Service, error)
- func (*UnimplementedServicesServer) ListAllServices(context.Context, *ListServicesReq) (*ListService, error)
- func (*UnimplementedServicesServer) ListRunningServices(context.Context, *ListServicesReq) (*ListService, error)
- func (*UnimplementedServicesServer) ListStoppedServices(context.Context, *ListServicesReq) (*ListService, error)
Constants ¶
This section is empty.
Variables ¶
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.
func NewHardeningScoresClient ¶
func NewHardeningScoresClient(cc grpc.ClientConnInterface) HardeningScoresClient
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) ProtoMessage ¶
func (*HasGUI) ProtoMessage()
func (*HasGUI) ProtoReflect ¶
func (x *HasGUI) ProtoReflect() protoreflect.Message
type HasGUIReq ¶
type HasGUIReq struct {
// contains filtered or unexported fields
}
func (*HasGUIReq) Descriptor
deprecated
func (*HasGUIReq) ProtoMessage ¶
func (*HasGUIReq) ProtoMessage()
func (*HasGUIReq) ProtoReflect ¶
func (x *HasGUIReq) ProtoReflect() protoreflect.Message
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) ProtoMessage ¶
func (*ListPort) ProtoMessage()
func (*ListPort) ProtoReflect ¶
func (x *ListPort) ProtoReflect() protoreflect.Message
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.
func NewMachineInfoClient ¶
func NewMachineInfoClient(cc grpc.ClientConnInterface) MachineInfoClient
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) ProtoMessage ¶
func (*Package) ProtoMessage()
func (*Package) ProtoReflect ¶
func (x *Package) ProtoReflect() protoreflect.Message
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) ProtoMessage ¶
func (*Port) ProtoMessage()
func (*Port) ProtoReflect ¶
func (x *Port) ProtoReflect() protoreflect.Message
type ScoreReq ¶
type ScoreReq struct {
// contains filtered or unexported fields
}
func (*ScoreReq) Descriptor
deprecated
func (*ScoreReq) ProtoMessage ¶
func (*ScoreReq) ProtoMessage()
func (*ScoreReq) ProtoReflect ¶
func (x *ScoreReq) ProtoReflect() protoreflect.Message
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) ProtoMessage ¶
func (*Service) ProtoMessage()
func (*Service) ProtoReflect ¶
func (x *Service) ProtoReflect() protoreflect.Message
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 ¶
func (*UnimplementedHardeningScoresServer) GetLynisScore(context.Context, *ScoreReq) (*LynisScore, error)
type UnimplementedMachineInfoServer ¶
type UnimplementedMachineInfoServer struct { }
UnimplementedMachineInfoServer can be embedded to have forward compatible implementations.
func (*UnimplementedMachineInfoServer) ListOpenPorts ¶
func (*UnimplementedMachineInfoServer) ListOpenPorts(context.Context, *ListOpenPortsReq) (*ListPort, error)
func (*UnimplementedMachineInfoServer) MachineHasGUI ¶
type UnimplementedPackagesServer ¶
type UnimplementedPackagesServer struct { }
UnimplementedPackagesServer can be embedded to have forward compatible implementations.
func (*UnimplementedPackagesServer) ListAllPackages ¶
func (*UnimplementedPackagesServer) ListAllPackages(context.Context, *ListPackagesReq) (*ListPackage, error)
type UnimplementedServicesServer ¶
type UnimplementedServicesServer struct { }
UnimplementedServicesServer can be embedded to have forward compatible implementations.
func (*UnimplementedServicesServer) GetService ¶
func (*UnimplementedServicesServer) GetService(context.Context, *ServiceNameReq) (*Service, error)
func (*UnimplementedServicesServer) ListAllServices ¶
func (*UnimplementedServicesServer) ListAllServices(context.Context, *ListServicesReq) (*ListService, error)
func (*UnimplementedServicesServer) ListRunningServices ¶
func (*UnimplementedServicesServer) ListRunningServices(context.Context, *ListServicesReq) (*ListService, error)
func (*UnimplementedServicesServer) ListStoppedServices ¶
func (*UnimplementedServicesServer) ListStoppedServices(context.Context, *ListServicesReq) (*ListService, error)