Documentation
¶
Index ¶
- Variables
- type Edge
- func (*Edge) Descriptor() ([]byte, []int)deprecated
- func (x *Edge) GetFrom() string
- func (x *Edge) GetProperties() []*Property
- func (x *Edge) GetTo() []string
- func (x *Edge) GetType() string
- func (*Edge) ProtoMessage()
- func (x *Edge) ProtoReflect() protoreflect.Message
- func (x *Edge) Reset()
- func (x *Edge) String() string
- type Graph
- func (*Graph) Descriptor() ([]byte, []int)deprecated
- func (x *Graph) GetGraph() []*Edge
- func (x *Graph) GetId() string
- func (x *Graph) GetMetadata() []*Property
- func (x *Graph) GetNodes() []*Node
- func (*Graph) ProtoMessage()
- func (x *Graph) ProtoReflect() protoreflect.Message
- func (x *Graph) Reset()
- func (x *Graph) String() string
- type Node
- type Node_NodeType
- func (Node_NodeType) Descriptor() protoreflect.EnumDescriptor
- func (x Node_NodeType) Enum() *Node_NodeType
- func (Node_NodeType) EnumDescriptor() ([]byte, []int)deprecated
- func (x Node_NodeType) Number() protoreflect.EnumNumber
- func (x Node_NodeType) String() string
- func (Node_NodeType) Type() protoreflect.EnumType
- type Property
- func (*Property) Descriptor() ([]byte, []int)deprecated
- func (x *Property) GetName() string
- func (x *Property) GetProperties() []*Property
- func (x *Property) GetTime() *timestamppb.Timestamp
- func (x *Property) GetValue() string
- func (*Property) ProtoMessage()
- func (x *Property) ProtoReflect() protoreflect.Message
- func (x *Property) Reset()
- func (x *Property) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Node_NodeType_name = map[int32]string{ 0: "PACKAGE", 1: "FILE", } Node_NodeType_value = map[string]int32{ "PACKAGE": 0, "FILE": 1, } )
Enum value maps for Node_NodeType.
View Source
var File_api_universal_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Edge ¶
type Edge struct {
Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
From string `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"`
To []string `protobuf:"bytes,3,rep,name=to,proto3" json:"to,omitempty"`
Properties []*Property `protobuf:"bytes,4,rep,name=properties,proto3" json:"properties,omitempty"`
// contains filtered or unexported fields
}
func (*Edge) Descriptor
deprecated
func (*Edge) GetProperties ¶
func (*Edge) ProtoMessage ¶
func (*Edge) ProtoMessage()
func (*Edge) ProtoReflect ¶
func (x *Edge) ProtoReflect() protoreflect.Message
type Graph ¶
type Graph struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Metadata []*Property `protobuf:"bytes,2,rep,name=metadata,proto3" json:"metadata,omitempty"`
Nodes []*Node `protobuf:"bytes,3,rep,name=nodes,proto3" json:"nodes,omitempty"`
Graph []*Edge `protobuf:"bytes,4,rep,name=graph,proto3" json:"graph,omitempty"`
// contains filtered or unexported fields
}
Graph is a minimal SBOM graph that can capture any SBOM in the current formats, including SPDX 3.
func (*Graph) Descriptor
deprecated
func (*Graph) GetMetadata ¶
func (*Graph) ProtoMessage ¶
func (*Graph) ProtoMessage()
func (*Graph) ProtoReflect ¶
func (x *Graph) ProtoReflect() protoreflect.Message
type Node ¶
type Node struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Type Node_NodeType `protobuf:"varint,2,opt,name=type,proto3,enum=puerco.protobom.Node_NodeType" json:"type,omitempty"`
Metadata []*Property `protobuf:"bytes,3,rep,name=metadata,proto3" json:"metadata,omitempty"`
// contains filtered or unexported fields
}
func (*Node) Descriptor
deprecated
func (*Node) GetMetadata ¶
func (*Node) GetType ¶
func (x *Node) GetType() Node_NodeType
func (*Node) ProtoMessage ¶
func (*Node) ProtoMessage()
func (*Node) ProtoReflect ¶
func (x *Node) ProtoReflect() protoreflect.Message
type Node_NodeType ¶
type Node_NodeType int32
const ( Node_PACKAGE Node_NodeType = 0 Node_FILE Node_NodeType = 1 )
func (Node_NodeType) Descriptor ¶
func (Node_NodeType) Descriptor() protoreflect.EnumDescriptor
func (Node_NodeType) Enum ¶
func (x Node_NodeType) Enum() *Node_NodeType
func (Node_NodeType) EnumDescriptor
deprecated
func (Node_NodeType) EnumDescriptor() ([]byte, []int)
Deprecated: Use Node_NodeType.Descriptor instead.
func (Node_NodeType) Number ¶
func (x Node_NodeType) Number() protoreflect.EnumNumber
func (Node_NodeType) String ¶
func (x Node_NodeType) String() string
func (Node_NodeType) Type ¶
func (Node_NodeType) Type() protoreflect.EnumType
type Property ¶
type Property struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
Time *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=time,proto3" json:"time,omitempty"`
Properties []*Property `protobuf:"bytes,4,rep,name=properties,proto3" json:"properties,omitempty"`
// contains filtered or unexported fields
}
func (*Property) Descriptor
deprecated
func (*Property) GetProperties ¶
func (*Property) GetTime ¶
func (x *Property) GetTime() *timestamppb.Timestamp
func (*Property) ProtoMessage ¶
func (*Property) ProtoMessage()
func (*Property) ProtoReflect ¶
func (x *Property) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.