universal

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

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) Descriptor() ([]byte, []int)

Deprecated: Use Edge.ProtoReflect.Descriptor instead.

func (*Edge) GetFrom

func (x *Edge) GetFrom() string

func (*Edge) GetProperties

func (x *Edge) GetProperties() []*Property

func (*Edge) GetTo

func (x *Edge) GetTo() []string

func (*Edge) GetType

func (x *Edge) GetType() string

func (*Edge) ProtoMessage

func (*Edge) ProtoMessage()

func (*Edge) ProtoReflect

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

func (*Edge) Reset

func (x *Edge) Reset()

func (*Edge) String

func (x *Edge) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Graph.ProtoReflect.Descriptor instead.

func (*Graph) GetGraph

func (x *Graph) GetGraph() []*Edge

func (*Graph) GetId

func (x *Graph) GetId() string

func (*Graph) GetMetadata

func (x *Graph) GetMetadata() []*Property

func (*Graph) GetNodes

func (x *Graph) GetNodes() []*Node

func (*Graph) ProtoMessage

func (*Graph) ProtoMessage()

func (*Graph) ProtoReflect

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

func (*Graph) Reset

func (x *Graph) Reset()

func (*Graph) String

func (x *Graph) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Node.ProtoReflect.Descriptor instead.

func (*Node) GetId

func (x *Node) GetId() string

func (*Node) GetMetadata

func (x *Node) GetMetadata() []*Property

func (*Node) GetType

func (x *Node) GetType() Node_NodeType

func (*Node) ProtoMessage

func (*Node) ProtoMessage()

func (*Node) ProtoReflect

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

func (*Node) Reset

func (x *Node) Reset()

func (*Node) String

func (x *Node) String() string

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) 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 (Node_NodeType) String

func (x Node_NodeType) String() string

func (Node_NodeType) Type

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) Descriptor() ([]byte, []int)

Deprecated: Use Property.ProtoReflect.Descriptor instead.

func (*Property) GetName

func (x *Property) GetName() string

func (*Property) GetProperties

func (x *Property) GetProperties() []*Property

func (*Property) GetTime

func (x *Property) GetTime() *timestamppb.Timestamp

func (*Property) GetValue

func (x *Property) GetValue() string

func (*Property) ProtoMessage

func (*Property) ProtoMessage()

func (*Property) ProtoReflect

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

func (*Property) Reset

func (x *Property) Reset()

func (*Property) String

func (x *Property) String() string

Jump to

Keyboard shortcuts

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