heimdall

command module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

README

Heimdall

Policy decision point (PDP) for web playback.

/auth endpoint takes an AccessRequest and grants or denies access by checking a list of policies.

Getting started

Start application with an example policy file:

go build 
./heimdall -policy testdata/policy_example.yaml

Or by running docker image:

docker build -t heimdall .
docker run --rm -it -p 8080:8080 -v $(pwd)/testdata/policy_example.yaml:/policy.yaml heimdall -policy /policy.yaml 
Swagger API documentation

The documentation is generated from annotations in the code, using the Declarative Comments Format.

It is included in the docker image, but to view it when building from source, the documentation needs to be generated.

go run github.com/swaggo/swag/cmd/swag init; go build

Alternatively, install by following the instructions here

With the documentation generated and the application running, open browser to http://localhost:8080/swagger/index.html to view.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package docs contains the documentation for the API
Package docs contains the documentation for the API

Jump to

Keyboard shortcuts

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