elements

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BomshellObject = decls.NewObjectType("bomshell")
	BomshellType   = cel.ObjectType("bomshell", traits.ReceiverType)
)
View Source
var (
	NodeObject = decls.NewObjectType("bomsquad.protobom.Node")
	NodeType   = cel.ObjectType("bomsquad.protobom.Node")
)
View Source
var (
	NodeListObject = decls.NewObjectType("bomsquad.protobom.NodeList")
	NodeListType   = cel.ObjectType("bomsquad.protobom.NodeList")
)
View Source
var DocumentType = cel.ObjectType("bomsquad.protobom.Document")

Functions

This section is empty.

Types

type Bomshell

type Bomshell struct{}

func (Bomshell) ConvertToNative

func (bs Bomshell) ConvertToNative(typeDesc reflect.Type) (interface{}, error)

func (Bomshell) ConvertToType

func (bs Bomshell) ConvertToType(typeVal ref.Type) ref.Val

ConvertToType implements ref.Val.ConvertToType.

func (Bomshell) Equal

func (bs Bomshell) Equal(other ref.Val) ref.Val

Equal implements ref.Val.Equal.

func (Bomshell) Type

func (bs Bomshell) Type() ref.Type

func (Bomshell) Value

func (bs Bomshell) Value() interface{}

Value implements ref.Val.Value.

type Document

type Document struct {
	*sbom.Document
}

func (Document) ConvertToNative

func (d Document) ConvertToNative(typeDesc reflect.Type) (interface{}, error)

ConvertToNative implements ref.Val.ConvertToNative.

func (Document) ConvertToType

func (d Document) ConvertToType(typeVal ref.Type) ref.Val

ConvertToType implements ref.Val.ConvertToType.

func (Document) Equal

func (d Document) Equal(other ref.Val) ref.Val

Equal implements ref.Val.Equal.

func (Document) Type

func (d Document) Type() ref.Type

func (Document) Value

func (d Document) Value() interface{}

Value implements ref.Val.Value.

type Node

type Node struct {
	*sbom.Node
}

func (Node) ConvertToNative

func (n Node) ConvertToNative(typeDesc reflect.Type) (interface{}, error)

ConvertToNative implements ref.Val.ConvertToNative.

func (Node) ConvertToType

func (n Node) ConvertToType(typeVal ref.Type) ref.Val

ConvertToType implements ref.Val.ConvertToType.

func (Node) Equal

func (n Node) Equal(other ref.Val) ref.Val

Equal implements ref.Val.Equal.

func (Node) ToNodeList

func (n Node) ToNodeList() *NodeList

ToNodeList returns a new NodeList with the node as the only member

func (Node) Type

func (n Node) Type() ref.Type

func (Node) Value

func (n Node) Value() interface{}

Value implements ref.Val.Value.

type NodeList

type NodeList struct {
	*sbom.NodeList
}

func (NodeList) Add

func (nl NodeList) Add(incoming ref.Val)

func (NodeList) AddEdge

func (nl NodeList) AddEdge(from string, t sbom.Edge_Type, to []string)

AddEsge adds edge data to

func (NodeList) ConvertToNative

func (nl NodeList) ConvertToNative(typeDesc reflect.Type) (interface{}, error)

ConvertToNative implements ref.Val.ConvertToNative.

func (NodeList) ConvertToType

func (nl NodeList) ConvertToType(typeVal ref.Type) ref.Val

ConvertToType implements ref.Val.ConvertToType.

func (NodeList) Equal

func (nl NodeList) Equal(other ref.Val) ref.Val

Equal implements ref.Val.Equal.

func (NodeList) HasNodeWithID

func (nl NodeList) HasNodeWithID(nodeID string) bool

HasNodeWithID Returns true if the NodeList already has a node with the specified ID

func (NodeList) Type

func (nl NodeList) Type() ref.Type

Type implements ref.Val.Type.

func (NodeList) Value

func (nl NodeList) Value() interface{}

Value implements ref.Val.Value.

Jump to

Keyboard shortcuts

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