v1beta

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2021 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrCancelled      = status.Errorf(codes.Canceled, "stream cancelled")
	ErrInvalidRequest = status.Errorf(codes.InvalidArgument, "invalid request")
	ErrQueryFailure   = status.Errorf(codes.Internal, "failed to query graph")
	ErrUpdateFailure  = status.Errorf(codes.Internal, "failed to update graph")
	ErrPruneFailure   = status.Errorf(codes.Internal, "failed to prune graph")
	ErrBFS            = status.Errorf(codes.InvalidArgument, "cannot call breadth-first search with another input request")
	ErrDFS            = status.Errorf(codes.InvalidArgument, "cannot call depth-first search with another input request")
)

Functions

func RegisterManifestStorageServiceServer

func RegisterManifestStorageServiceServer(server *grpc.Server, graphStore graphstore.GraphStoreClient)

func RegisterModuleServiceServer added in v0.2.34

func RegisterModuleServiceServer(server *grpc.Server, graphStore graphstore.GraphStoreClient)

func RegisterSourceServiceServer added in v0.2.34

func RegisterSourceServiceServer(server *grpc.Server, graphStore graphstore.GraphStoreClient)

func RegisterTraversalServiceServer added in v0.2.34

func RegisterTraversalServiceServer(server *grpc.Server, graphStore graphstore.GraphStoreClient)

Types

type DefaultKind

type DefaultKind = string

TODO: move this to internal to be shared between indexer and tracker

const (
	ProviderDefaultKind   DefaultKind = "provider"
	RepositoryDefaultKind DefaultKind = "repository"
	ArtifactDefaultKind   DefaultKind = "artifact"
)

type NodeOrEdge added in v0.3.0

type NodeOrEdge interface {
	GetBody() *anypb.Any
}

NodeOrEdge is a handy interface for converting any datatype from a node or edge payload.

type Stack added in v0.3.0

type Stack []*v1beta.SearchRequest

func (*Stack) Pop added in v0.3.0

func (s *Stack) Pop() *v1beta.SearchRequest

func (*Stack) Push added in v0.3.0

func (s *Stack) Push(request *v1beta.SearchRequest)

Jump to

Keyboard shortcuts

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