v1

package
v0.0.3-alpha Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	FindingsService_GetFindings_FullMethodName    = "/findings_service.v1.FindingsService/GetFindings"
	FindingsService_UpdateFindings_FullMethodName = "/findings_service.v1.FindingsService/UpdateFindings"
	FindingsService_CreateFindings_FullMethodName = "/findings_service.v1.FindingsService/CreateFindings"
)

Variables

View Source
var File_findings_service_v1_findings_service_proto protoreflect.FileDescriptor
View Source
var FindingsService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "findings_service.v1.FindingsService",
	HandlerType: (*FindingsServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetFindings",
			Handler:    _FindingsService_GetFindings_Handler,
		},
		{
			MethodName: "UpdateFindings",
			Handler:    _FindingsService_UpdateFindings_Handler,
		},
		{
			MethodName: "CreateFindings",
			Handler:    _FindingsService_CreateFindings_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "findings_service/v1/findings_service.proto",
}

FindingsService_ServiceDesc is the grpc.ServiceDesc for FindingsService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterFindingsServiceServer

func RegisterFindingsServiceServer(s grpc.ServiceRegistrar, srv FindingsServiceServer)

Types

type CreateFindingsRequest

type CreateFindingsRequest struct {

	// id is the uuid associated with a group of findings.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// findings is an array of vulnerability findings.
	Findings []*v1.VulnerabilityFinding `protobuf:"bytes,2,rep,name=findings,proto3" json:"findings,omitempty"`
	// contains filtered or unexported fields
}

CreateFindingsRequest is the request used to create findings.

func (*CreateFindingsRequest) Descriptor deprecated

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

Deprecated: Use CreateFindingsRequest.ProtoReflect.Descriptor instead.

func (*CreateFindingsRequest) GetFindings

func (x *CreateFindingsRequest) GetFindings() []*v1.VulnerabilityFinding

func (*CreateFindingsRequest) GetId

func (x *CreateFindingsRequest) GetId() string

func (*CreateFindingsRequest) ProtoMessage

func (*CreateFindingsRequest) ProtoMessage()

func (*CreateFindingsRequest) ProtoReflect

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

func (*CreateFindingsRequest) Reset

func (x *CreateFindingsRequest) Reset()

func (*CreateFindingsRequest) String

func (x *CreateFindingsRequest) String() string

type CreateFindingsResponse

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

CreateFindingsResponse is the response used to create findings.

func (*CreateFindingsResponse) Descriptor deprecated

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

Deprecated: Use CreateFindingsResponse.ProtoReflect.Descriptor instead.

func (*CreateFindingsResponse) ProtoMessage

func (*CreateFindingsResponse) ProtoMessage()

func (*CreateFindingsResponse) ProtoReflect

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

func (*CreateFindingsResponse) Reset

func (x *CreateFindingsResponse) Reset()

func (*CreateFindingsResponse) String

func (x *CreateFindingsResponse) String() string

type Finding

type Finding struct {
	Id      uint64                   `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Details *v1.VulnerabilityFinding `protobuf:"bytes,2,opt,name=details,proto3" json:"details,omitempty"`
	// contains filtered or unexported fields
}

Finding represents a finding.

func (*Finding) Descriptor deprecated

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

Deprecated: Use Finding.ProtoReflect.Descriptor instead.

func (*Finding) GetDetails

func (x *Finding) GetDetails() *v1.VulnerabilityFinding

func (*Finding) GetId

func (x *Finding) GetId() uint64

func (*Finding) ProtoMessage

func (*Finding) ProtoMessage()

func (*Finding) ProtoReflect

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

func (*Finding) Reset

func (x *Finding) Reset()

func (*Finding) String

func (x *Finding) String() string

type FindingsServiceClient

type FindingsServiceClient interface {
	// GetFindings returns a list of findings associated with the passed id.
	GetFindings(ctx context.Context, in *GetFindingsRequest, opts ...grpc.CallOption) (*GetFindingsResponse, error)
	// UpdateFindings updates the passed findings by id.
	UpdateFindings(ctx context.Context, in *UpdateFindingsRequest, opts ...grpc.CallOption) (*UpdateFindingsResponse, error)
	// CreateFindings creates the passed findings by id.
	CreateFindings(ctx context.Context, in *CreateFindingsRequest, opts ...grpc.CallOption) (*CreateFindingsResponse, error)
}

FindingsServiceClient is the client API for FindingsService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

FindingService is a service that can be implemented to interact with a findings backend.

type FindingsServiceServer

type FindingsServiceServer interface {
	// GetFindings returns a list of findings associated with the passed id.
	GetFindings(context.Context, *GetFindingsRequest) (*GetFindingsResponse, error)
	// UpdateFindings updates the passed findings by id.
	UpdateFindings(context.Context, *UpdateFindingsRequest) (*UpdateFindingsResponse, error)
	// CreateFindings creates the passed findings by id.
	CreateFindings(context.Context, *CreateFindingsRequest) (*CreateFindingsResponse, error)
	// contains filtered or unexported methods
}

FindingsServiceServer is the server API for FindingsService service. All implementations must embed UnimplementedFindingsServiceServer for forward compatibility.

FindingService is a service that can be implemented to interact with a findings backend.

type GetFindingsRequest

type GetFindingsRequest struct {

	// id is the uuid associated with a group of findings.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

GetFindingsRequest is the request used to get findings.

func (*GetFindingsRequest) Descriptor deprecated

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

Deprecated: Use GetFindingsRequest.ProtoReflect.Descriptor instead.

func (*GetFindingsRequest) GetId

func (x *GetFindingsRequest) GetId() string

func (*GetFindingsRequest) ProtoMessage

func (*GetFindingsRequest) ProtoMessage()

func (*GetFindingsRequest) ProtoReflect

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

func (*GetFindingsRequest) Reset

func (x *GetFindingsRequest) Reset()

func (*GetFindingsRequest) String

func (x *GetFindingsRequest) String() string

type GetFindingsResponse

type GetFindingsResponse struct {

	// findings is an array of vulnerability findings.
	Findings []*Finding `protobuf:"bytes,1,rep,name=findings,proto3" json:"findings,omitempty"`
	// contains filtered or unexported fields
}

GetFindingsResponse is the response used to get findings.

func (*GetFindingsResponse) Descriptor deprecated

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

Deprecated: Use GetFindingsResponse.ProtoReflect.Descriptor instead.

func (*GetFindingsResponse) GetFindings

func (x *GetFindingsResponse) GetFindings() []*Finding

func (*GetFindingsResponse) ProtoMessage

func (*GetFindingsResponse) ProtoMessage()

func (*GetFindingsResponse) ProtoReflect

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

func (*GetFindingsResponse) Reset

func (x *GetFindingsResponse) Reset()

func (*GetFindingsResponse) String

func (x *GetFindingsResponse) String() string

type UnimplementedFindingsServiceServer

type UnimplementedFindingsServiceServer struct{}

UnimplementedFindingsServiceServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedFindingsServiceServer) CreateFindings

func (UnimplementedFindingsServiceServer) GetFindings

func (UnimplementedFindingsServiceServer) UpdateFindings

type UnsafeFindingsServiceServer

type UnsafeFindingsServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeFindingsServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to FindingsServiceServer will result in compilation errors.

type UpdateFindingsRequest

type UpdateFindingsRequest struct {

	// id is the uuid associated with a group of findings.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// findings is an array of vulnerability findings.
	Findings []*Finding `protobuf:"bytes,2,rep,name=findings,proto3" json:"findings,omitempty"`
	// contains filtered or unexported fields
}

UpdateFindingsRequest is the request used to update findings.

func (*UpdateFindingsRequest) Descriptor deprecated

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

Deprecated: Use UpdateFindingsRequest.ProtoReflect.Descriptor instead.

func (*UpdateFindingsRequest) GetFindings

func (x *UpdateFindingsRequest) GetFindings() []*Finding

func (*UpdateFindingsRequest) GetId

func (x *UpdateFindingsRequest) GetId() string

func (*UpdateFindingsRequest) ProtoMessage

func (*UpdateFindingsRequest) ProtoMessage()

func (*UpdateFindingsRequest) ProtoReflect

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

func (*UpdateFindingsRequest) Reset

func (x *UpdateFindingsRequest) Reset()

func (*UpdateFindingsRequest) String

func (x *UpdateFindingsRequest) String() string

type UpdateFindingsResponse

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

UpdateFindingsResponse is the response used to update findings.

func (*UpdateFindingsResponse) Descriptor deprecated

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

Deprecated: Use UpdateFindingsResponse.ProtoReflect.Descriptor instead.

func (*UpdateFindingsResponse) ProtoMessage

func (*UpdateFindingsResponse) ProtoMessage()

func (*UpdateFindingsResponse) ProtoReflect

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

func (*UpdateFindingsResponse) Reset

func (x *UpdateFindingsResponse) Reset()

func (*UpdateFindingsResponse) String

func (x *UpdateFindingsResponse) String() string

Jump to

Keyboard shortcuts

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