storage

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: May 19, 2022 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 IncludeEdge

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

IncludeEdge 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 edges
	// inside 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 IncludeEdge) 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