ocmd

command module
v0.0.0-...-1695a3e Latest Latest
Warning

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

Go to latest
Published: May 12, 2019 License: AGPL-3.0 Imports: 12 Imported by: 0

README

ocmd

OpenCloudMesh Daemon

Before hacking

  • Install latest golang version
  • Install dep
  • cd into git clone of [github.com/cernbox/ocmd]
  • Run dep ensure
  • You should be able to go build

Run

  • go build
  • echo "log-level: debug" > ocmd.yaml
  • Put some test domains in /etc/hosts to work from the same box.
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4 nasa.com airbus.com
./ocmd --user-manager-memory-identities "gonzalhu@nasa.com" --provider-authorizer-memory-domains "airbus.com.::http://airbus.com:7777/ocm" --tcp-address localhost:8888
./ocmd --user-manager-memory-identities "kuba@airbus.com" --provider-authorizer-memory-domains "nasa.com::http://nasa.com.:8888/ocm" --tcp-address localhost:7777

Play

Trigger an internal share request as user kuba to the airbus instance, that will forward the request to the other OCM instance.

curl -i http://localhost:7777/internal/shares -X POST  --data-binary @new-internal-share-req.json  -H "Remote-User: kuba@airbus.com" 

TODO

Implement the api/internal_share_manager_python and api/share_manager_python plugins.

Use --internal-share-manager "python" and --share-manager "python" flags to load these plugins.

See ./ocmd -h for more help.

CONFIG PROVIDER

curl -X POST -d "domain=XXX" localhost:9994/internal/providers -w "%{http_code}\n"

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
api

Jump to

Keyboard shortcuts

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