Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterSBOMCollectorServer(s grpc.ServiceRegistrar, srv SBOMCollectorServer)
- type SBOMCollectorClient
- type SBOMCollectorServer
- type SBOMCollector_GetSBOMStreamClient
- type SBOMCollector_GetSBOMStreamServer
- type SBOMMessage
- func (*SBOMMessage) Descriptor() ([]byte, []int)deprecated
- func (x *SBOMMessage) GetData() []byte
- func (x *SBOMMessage) GetID() string
- func (x *SBOMMessage) GetKind() string
- func (*SBOMMessage) ProtoMessage()
- func (x *SBOMMessage) ProtoReflect() protoreflect.Message
- func (x *SBOMMessage) Reset()
- func (x *SBOMMessage) String() string
- type SBOMStreamParams
- type UnimplementedSBOMCollectorServer
- type UnsafeSBOMCollectorServer
Constants ¶
const (
SBOMCollector_GetSBOMStream_FullMethodName = "/datadog.sbom.SBOMCollector/GetSBOMStream"
)
Variables ¶
var File_datadog_sbom_workloadmeta_sbom_proto protoreflect.FileDescriptor
var SBOMCollector_ServiceDesc = grpc.ServiceDesc{ ServiceName: "datadog.sbom.SBOMCollector", HandlerType: (*SBOMCollectorServer)(nil), Methods: []grpc.MethodDesc{}, Streams: []grpc.StreamDesc{ { StreamName: "GetSBOMStream", Handler: _SBOMCollector_GetSBOMStream_Handler, ServerStreams: true, }, }, Metadata: "datadog/sbom/workloadmeta_sbom.proto", }
SBOMCollector_ServiceDesc is the grpc.ServiceDesc for SBOMCollector service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterSBOMCollectorServer ¶
func RegisterSBOMCollectorServer(s grpc.ServiceRegistrar, srv SBOMCollectorServer)
Types ¶
type SBOMCollectorClient ¶
type SBOMCollectorClient interface {
// SBOM
GetSBOMStream(ctx context.Context, in *SBOMStreamParams, opts ...grpc.CallOption) (grpc.ServerStreamingClient[SBOMMessage], error)
}
SBOMCollectorClient is the client API for SBOMCollector 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.
func NewSBOMCollectorClient ¶
func NewSBOMCollectorClient(cc grpc.ClientConnInterface) SBOMCollectorClient
type SBOMCollectorServer ¶
type SBOMCollectorServer interface {
// SBOM
GetSBOMStream(*SBOMStreamParams, grpc.ServerStreamingServer[SBOMMessage]) error
// contains filtered or unexported methods
}
SBOMCollectorServer is the server API for SBOMCollector service. All implementations must embed UnimplementedSBOMCollectorServer for forward compatibility.
type SBOMCollector_GetSBOMStreamClient ¶
type SBOMCollector_GetSBOMStreamClient = grpc.ServerStreamingClient[SBOMMessage]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type SBOMCollector_GetSBOMStreamServer ¶
type SBOMCollector_GetSBOMStreamServer = grpc.ServerStreamingServer[SBOMMessage]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type SBOMMessage ¶
type SBOMMessage struct {
Data []byte `protobuf:"bytes,1,opt,name=Data,proto3" json:"Data,omitempty"`
Kind string `protobuf:"bytes,2,opt,name=Kind,proto3" json:"Kind,omitempty"`
// ID is the ID for this entity, in a format specific to the entity Kind.
ID string `protobuf:"bytes,3,opt,name=ID,proto3" json:"ID,omitempty"`
// contains filtered or unexported fields
}
func (*SBOMMessage) Descriptor
deprecated
func (*SBOMMessage) Descriptor() ([]byte, []int)
Deprecated: Use SBOMMessage.ProtoReflect.Descriptor instead.
func (*SBOMMessage) GetData ¶
func (x *SBOMMessage) GetData() []byte
func (*SBOMMessage) GetID ¶
func (x *SBOMMessage) GetID() string
func (*SBOMMessage) GetKind ¶
func (x *SBOMMessage) GetKind() string
func (*SBOMMessage) ProtoMessage ¶
func (*SBOMMessage) ProtoMessage()
func (*SBOMMessage) ProtoReflect ¶
func (x *SBOMMessage) ProtoReflect() protoreflect.Message
func (*SBOMMessage) Reset ¶
func (x *SBOMMessage) Reset()
func (*SBOMMessage) String ¶
func (x *SBOMMessage) String() string
type SBOMStreamParams ¶
type SBOMStreamParams struct {
// contains filtered or unexported fields
}
func (*SBOMStreamParams) Descriptor
deprecated
func (*SBOMStreamParams) Descriptor() ([]byte, []int)
Deprecated: Use SBOMStreamParams.ProtoReflect.Descriptor instead.
func (*SBOMStreamParams) ProtoMessage ¶
func (*SBOMStreamParams) ProtoMessage()
func (*SBOMStreamParams) ProtoReflect ¶
func (x *SBOMStreamParams) ProtoReflect() protoreflect.Message
func (*SBOMStreamParams) Reset ¶
func (x *SBOMStreamParams) Reset()
func (*SBOMStreamParams) String ¶
func (x *SBOMStreamParams) String() string
type UnimplementedSBOMCollectorServer ¶
type UnimplementedSBOMCollectorServer struct{}
UnimplementedSBOMCollectorServer 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 (UnimplementedSBOMCollectorServer) GetSBOMStream ¶
func (UnimplementedSBOMCollectorServer) GetSBOMStream(*SBOMStreamParams, grpc.ServerStreamingServer[SBOMMessage]) error
type UnsafeSBOMCollectorServer ¶
type UnsafeSBOMCollectorServer interface {
// contains filtered or unexported methods
}
UnsafeSBOMCollectorServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SBOMCollectorServer will result in compilation errors.