All Projects → milosgajdos → kraph

milosgajdos / kraph

Licence: Apache-2.0 license
Go module for scraping APIs to graphs

Programming Languages

go
31211 projects - #10 most used programming language
Makefile
30231 projects

Projects that are alternatives of or similar to kraph

Psgraph
A set of utilities for working with Graphviz in Powershell
Stars: ✭ 160 (+1233.33%)
Mutual labels:  graphviz
Deepgraph
Analyze Data with Pandas-based Networks. Documentation:
Stars: ✭ 232 (+1833.33%)
Mutual labels:  graphviz
dockerfilegraph
Visualize your multi-stage Dockerfiles
Stars: ✭ 55 (+358.33%)
Mutual labels:  graphviz
Uecs
Ubpa Entity-Component-System (U ECS) in Unity3D-style
Stars: ✭ 174 (+1350%)
Mutual labels:  graphviz
Kaitai struct
Kaitai Struct: declarative language to generate binary data parsers in C++ / C# / Go / Java / JavaScript / Lua / Perl / PHP / Python / Ruby
Stars: ✭ 2,736 (+22700%)
Mutual labels:  graphviz
Visualize ruby
Transform code into a flowchart and experimentally trace the execution path through it
Stars: ✭ 237 (+1875%)
Mutual labels:  graphviz
Wmgraphviz.vim
Vim plugin for Graphviz
Stars: ✭ 142 (+1083.33%)
Mutual labels:  graphviz
rtl2dot
C call graph generator
Stars: ✭ 48 (+300%)
Mutual labels:  graphviz
Graphviz
A Swift package for working with GraphViz
Stars: ✭ 230 (+1816.67%)
Mutual labels:  graphviz
ecto erd
A mix task for generating Entity Relationship Diagram from Ecto schemas available in your project.
Stars: ✭ 173 (+1341.67%)
Mutual labels:  graphviz
Go Graphviz
Go bindings for Graphviz
Stars: ✭ 183 (+1425%)
Mutual labels:  graphviz
Gofsm
a featured FSM that can export state images
Stars: ✭ 222 (+1750%)
Mutual labels:  graphviz
C4 Plantuml
C4-PlantUML combines the benefits of PlantUML and the C4 model for providing a simple way of describing and communicate software architectures
Stars: ✭ 3,522 (+29250%)
Mutual labels:  graphviz
Dot To Ascii
Graphviz to ASCII converter using Graph::Easy
Stars: ✭ 168 (+1300%)
Mutual labels:  graphviz
xmpaint
处理有向图的有力工具
Stars: ✭ 65 (+441.67%)
Mutual labels:  graphviz
Tidyheatmap
Draw heatmap simply using a tidy data frame
Stars: ✭ 151 (+1158.33%)
Mutual labels:  graphviz
Ansible Playbook Grapher
A command line tool to create a graph representing your Ansible playbook tasks and roles
Stars: ✭ 234 (+1850%)
Mutual labels:  graphviz
graphviz
PHP Graphviz library
Stars: ✭ 70 (+483.33%)
Mutual labels:  graphviz
home-assistant-graph
No description or website provided.
Stars: ✭ 30 (+150%)
Mutual labels:  graphviz
Azure Plantuml
PlantUML sprites, macros, and other includes for Azure services
Stars: ✭ 247 (+1958.33%)
Mutual labels:  graphviz

THIS IS a PoC

GoDoc Go Report Card License Travis CI

kraph

kraph is an experimental Go module that allows to build a graph of API objects. The resulting graph can be represented as gonum.Graph which allows for advanced graph analysis!

You can query the resulting graph nodes and edges based on various attributes. Equally, you can also retrieve a subgraph of the graph starting with a chosen node and perform further analysis on it.

At the moment only kubernetes API object graph is implemented, but the module [hopefully] defines pluggable interfaces which should allow for adding the support for arbitrary APIs, such as AWS etc.

Getting started

The project provides a simple Makefile which makes basic tasks, such as running tests and building the module simple:

Get dependencies:

make dep

Run tests:

make test

Build module:

make build

kctl

There is also a simple command line utility which allows to build and query API object graphs in-memory and display the results.

At the moment it only provides build command with kubernetes/k8s subcommand which allows to build and query the kubernetes API object graph.

HOWTO

Run kctl make task to build the kctl binary:

Build:

make kctl

kctl command line options:

$ ./kctl help
NAME:
   kctl - build and query API object graphs

USAGE:
   kctl [global options] command [command options] [arguments...]

COMMANDS:
   build    build a graph
   help, h  Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --help, -h  show help (default: false)

kctl allows to dump the graph in DOT GraphViz format. This can be piped into GraphViz tool for further processing. kctl is in the pre-alpha state (if it can be called that at all!) and it's more of a debugging help tool at the moment as the focus of the project is the API graph mapping.

NOTE: You must have kubeconfig properly configured.

$ ./kctl build k8s -format "dot" | dot -Tsvg > cluster.svg && open cluster.svg

NOTE: dot format is the only available and default format so you can get the same results as above by running the command below, too:

$ ./kctl build k8s | dot -Tsvg > cluster.svg && open cluster.svg
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].