graphkb

package
v0.0.83 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NewGraphAPI = client.NewGraphAPI

NewGraphAPI creates a new graph API

View Source
var NewRecurrentTask = utils.NewRecurrentTask

Functions

This section is empty.

Types

type AssetType

type AssetType = schema.AssetType

func CreateAsset

func CreateAsset(fromType string, options ...CreateAssetOption) AssetType

CreateAsset helper function for creating an asset

type AssetWithID added in v0.0.83

type AssetWithID = knowledge.AssetWithID

type Column added in v0.0.72

type Column = client.Column

Column is a column from the QueryResponse

type CreateAssetOption added in v0.0.66

type CreateAssetOption func(asset AssetType)

CreateAssetOption is an option that can be used when creating an asset

func WithRegexpValidation added in v0.0.66

func WithRegexpValidation(r string) CreateAssetOption

WithRegexpValidation adds a regexp validation check to an asset

func WithValuesValidation added in v0.0.66

func WithValuesValidation(expected ...string) CreateAssetOption

WithValuesValidation adds a check ensuring an asset value is part of the given list

type DeleteGraphAssetRequestBody added in v0.0.72

type DeleteGraphAssetRequestBody = client.DeleteGraphAssetRequestBody

DeleteGraphAssetRequestBody a request body for the asset removal

type DeleteGraphRelationRequestBody added in v0.0.72

type DeleteGraphRelationRequestBody = client.DeleteGraphRelationRequestBody

DeleteGraphRelationRequestBody a request body for the relation removal

type Graph

type Graph = knowledge.Graph

Graph represent a graph

type GraphAPI

type GraphAPI = client.GraphAPI

GraphAPI is the representation of the graphkb API exposed to data sources.

type GraphAPIOptions added in v0.0.17

type GraphAPIOptions = client.GraphAPIOptions

GraphAPIOptions are the options provided to GraphAPI

type Item added in v0.0.72

type Item = client.Item

Item is map with the members of a row item in the QueryResponse

type Property added in v0.0.83

type Property = knowledge.Property

type PutGraphAssetRequestBody added in v0.0.72

type PutGraphAssetRequestBody = client.PutGraphAssetRequestBody

PutGraphAssetRequestBody a request body for the asset upsert

type PutGraphRelationRequestBody added in v0.0.72

type PutGraphRelationRequestBody = client.PutGraphRelationRequestBody

PutGraphRelationRequestBody a request body for the relation upsert

type PutGraphSchemaRequestBody added in v0.0.72

type PutGraphSchemaRequestBody = client.PutGraphSchemaRequestBody

PutGraphSchemaRequestBody a request body for the schema update

type QueryRequestBody added in v0.0.72

type QueryRequestBody = client.QueryRequestBody

QueryRequestBody is the request body for a GraphAPI query

type QueryResponse added in v0.0.72

type QueryResponse = client.QueryResponse

QueryResponse is the response from the GraphAPI query

type RecurrentTask

type RecurrentTask = utils.RecurrentTask

type RelationKeyType

type RelationKeyType = schema.RelationKeyType

type RelationType

type RelationType = schema.RelationType

func CreateRelation

func CreateRelation(fromType schema.AssetType, relation, toType schema.AssetType) RelationType

CreateRelation helper function for creating a relation

type RelationWithID added in v0.0.83

type RelationWithID = knowledge.RelationWithID

type Transaction

type Transaction = client.Transaction

Transaction represent a graph transaction

Jump to

Keyboard shortcuts

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