Categorygithub.com/brainupdaters/drlm-core
modulepackage
0.0.0-20200319182739-383e6fcdace5
Repository: https://github.com/brainupdaters/drlm-core.git
Documentation: pkg.go.dev

# README

drlm-core v3

drlm-Core v3

Install protoc plugin for GO

$ go get -u google.golang.org/grpc

Install cobra

$ go get -u github.com/spf13/cobra/cobra

$ cat $HOME/.cobra.yaml
author: Pau Roura <[email protected]>
license: AGPL

$ cobra init github.com/brainupdaters/drlm-cli $ cd github.com/brainupdaters/drlm-cli $ cobra add newCommand

https://github.com/spf13/cobra/blob/master/cobra/README.md

Install logrus

Logrus is a structured logger for Go (golang), completely API compatible with the standard library logger.

$ go get "github.com/Sirupsen/logrus"

install Protocol Buffers V3

The simplest way to do this is to download pre-compiled binaries for your platform(protoc-<version>-<platform>.zip) from here: https://github.com/google/protobuf/releases *Unzip this file. *Update the environment variable PATH to include the path to the protoc binary file.

$ go get -u github.com/golang/protobuf/protoc-gen-go

$ protoc -I drlm-comm/ drlm-comm/drlm-comm.proto --go_out=plugins=grpc:drlm-comm/

etcd

mgmtconfig

sentry

# Packages

Package agent has the logic related with the agents.
Package auth is the responsible of user authentication and authorization.
Package cfg is the responsible of all the configuration stuff of DRLM Core.
Package cli is like the "main" package.
Package cmd is the responsible of parsing the commands flags and initializing the conections with the DB, reading the config...
No description provided by the author
Package db has the DB connection and connects to it.
Package minio has the connection with Minio, handles the user creation / policies for each agent and creates an space for each job to store data.
Package models has all the type definitions of DRLM Core It's also the responsible of interacting with the DB (e.g.
No description provided by the author
Package scheduler is the responsible of managing the jobs queue.
Package transport is the responsible of the comunication with the clients (web, drlmctl).
Package utils contains subpackages with utilities of DRLM Core.