schema

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AsNeo4j

func AsNeo4j(object *Node) map[string]interface{}

func ConvertCustomTypesToNeo4j

func ConvertCustomTypesToNeo4j(node interface{}) (map[string]interface{}, error)

Types

type Node

type Node interface {
	MakeRelationships() []Relationship
}

type NodeLabel

type NodeLabel string
const (
	// Node labels
	Resource          NodeLabel = "Resource"
	Account           NodeLabel = "Account"
	Organization      NodeLabel = "Org"
	Service           NodeLabel = "Service"
	Principal         NodeLabel = "Principal"
	Vendor            NodeLabel = "Vendor"
	Role              NodeLabel = "Role"
	Group             NodeLabel = "Group"
	User              NodeLabel = "User"
	FederatedIdentity NodeLabel = "FederatedIdentity"
)

type Relationship

type Relationship struct {
	SourceNodeID     string                 `json:"sourceNodeId"`
	TargetNodeID     string                 `json:"targetNodeId"`
	SourceLabel      NodeLabel              `json:"sourceLabel"`
	TargetLabel      NodeLabel              `json:"targetLabel"`
	RelationshipType RelationshipType       `json:"relationshipType"`
	Properties       map[string]interface{} `json:"properties"`
	SourceProperty   string                 `json:"sourceProperty"`
	TargetProperty   string                 `json:"targetProperty"`
}

type RelationshipType

type RelationshipType string
const (
	AssociatedTo          RelationshipType = "AssociatedTo"
	AttachedTo            RelationshipType = "AttachedTo"
	Authenticates         RelationshipType = "Authenticates"
	ConnectedTo           RelationshipType = "ConnectedTo"
	Contains              RelationshipType = "Contains"
	Exposes               RelationshipType = "Exposes"
	HasAccess             RelationshipType = "HasAccess"
	HasConfig             RelationshipType = "HasConfig"
	HasDisk               RelationshipType = "HasDisk"
	HasInstance           RelationshipType = "HasInstance"
	HasRbac               RelationshipType = "HasRbac"
	HasRole               RelationshipType = "HasRole"
	Manages               RelationshipType = "Manages"
	MemberOf              RelationshipType = "MemberOf"
	Owns                  RelationshipType = "Owns"
	Represents            RelationshipType = "Represents"
	Trusts                RelationshipType = "Trusts"
	IsTrustedBy           RelationshipType = "IsTrustedBy"
	CanAssume             RelationshipType = "CanAssume"
	CanAssumeCrossAccount RelationshipType = "CanAssumeCrossAccount"
	CanBeAssumedBy        RelationshipType = "CanBeAssumedBy"
	CanBeAssumedByTest    RelationshipType = "CanBeAssumedByTest"
	CanAssumeTest         RelationshipType = "CanAssumeTest"
	CanAccess             RelationshipType = "CAN_ACCESS"
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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