api

package module
v0.1.14 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2020 License: MIT Imports: 2 Imported by: 0

README

deps.cloud API and SDK definitions

license license check

  • API - application programming interface
  • SDK - software development kit

This repository contains all API definitions and associated language SDKs available for the deps.cloud ecosystem. APIs are defined using Google's Protocol Buffers. Using gRPC, we're able to code generate client libraries. This repository currently produces 3 libraries:

Tech Source Package
npm nodejs source @depscloud/api
pip python source depscloud_api (coming soon!)
go mod github.com/depscloud/api

Getting Started with Go

To install:

go get -u github.com/depscloud/api

Usage:

package main

import (
    "crypto/tls"

    "github.com/depscloud/api/v1alpha/extractor"
    "github.com/depscloud/api/v1alpha/tracker"

    "google.golang.org/grpc"
    "google.golang.org/grpc/credentials"
)

func main() {
    target := "api.deps.cloud:443"
    creds := credentials.NewTLS(&tls.Config{})

    conn, _ := grpc.Dial(target, grpc.WithTransportCredentials(creds))
    defer conn.Close()

    sourceService := tracker.NewSourceServiceClient(conn)
    moduleService := tracker.NewModuleServiceClient(conn)
    dependencyService := tracker.NewDependencyServiceClient(conn)
}

Support

Join our mailing list to get access to virtual events and ask any questions there.

We also have a Slack channel.

Release Checks

tag npm go.mod pypi

License Checks

fossa analytics

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrModuleNotFound occurs when a module cannot be found in the graph
	ErrModuleNotFound = status.Error(codes.NotFound, "failed to locate module")
	// ErrPartialDeletion occurs when a partial deletion occurs during Put
	ErrPartialDeletion = status.Error(codes.Internal, "failed to delete removed edges")
	// ErrPartialInsertion occurs when a partial insertion occurs during Put
	ErrPartialInsertion = status.Error(codes.Internal, "failed to insert new edges")
	// ErrUnimplemented occurs when a method has not yet been implemented
	ErrUnimplemented = status.Error(codes.Unimplemented, "unimplemented")
	// ErrUnsupported occurs when calling a rw method on a read only service
	ErrUnsupported = status.Error(codes.NotFound, "read only")
)

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis
Package swagger generated by go-bindata.// sources: depscloud/api/v1beta/core.swagger.json depscloud/api/v1beta/manifest.swagger.json depscloud/api/v1beta/rpc.swagger.json graphstore/api/v1beta/graphstore.swagger.json v1alpha/deps/deps.swagger.json v1alpha/extractor/extractor.swagger.json v1alpha/schema/schema.swagger.json v1alpha/store/store.swagger.json v1alpha/tracker/tracker.swagger.json
Package swagger generated by go-bindata.// sources: depscloud/api/v1beta/core.swagger.json depscloud/api/v1beta/manifest.swagger.json depscloud/api/v1beta/rpc.swagger.json graphstore/api/v1beta/graphstore.swagger.json v1alpha/deps/deps.swagger.json v1alpha/extractor/extractor.swagger.json v1alpha/schema/schema.swagger.json v1alpha/store/store.swagger.json v1alpha/tracker/tracker.swagger.json
v1alpha
extractor
Package extractor is a reverse proxy.
Package extractor is a reverse proxy.
tracker
Package tracker is a reverse proxy.
Package tracker is a reverse proxy.
Package v1beta is a reverse proxy.
Package v1beta is a reverse proxy.
graphstore
Package graphstore is a reverse proxy.
Package graphstore is a reverse proxy.

Jump to

Keyboard shortcuts

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