storage

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Edge added in v0.14.0

type Edge struct {
	SourceProject string
	TargetProject string
	Ref           string
	Files         []string
}

Edge holds all relevant information to create meaningful edges inside the storage system for querying.

type Storage

type Storage interface {
	// CreateProjectNode takes a project name and takes care of
	// creating a node inside the storage.
	CreateProjectNode(ctx context.Context, projectPath string) error

	// CreateIncludeEdge is responsible for creating the include edges
	// inside of the storage, include edges should have the
	// `ref` and `files` fields set to allow for queries based
	// on the data.
	CreateIncludeEdge(ctx context.Context, include Edge) error

	// CreateTriggerEdge is responsible for creating the edges for triggers
	// inside of the storage
	CreateTriggerEdge(ctx context.Context, include Edge) error

	// RemoveAll will delete all nodes & edges
	RemoveAll(ctx context.Context) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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