resource-metadata

command module
v0.4.11 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2021 License: Apache-2.0 Imports: 0 Imported by: 0

README

Go Report Card GoDoc Build Status Slack Twitter

resource-metadata

API for defining metadata about Kubernetes resources. You can read about the motivation and design of ResourceDescriptors in our blog post: https://blog.byte.builders/post/resourcedescriptor/

Test GraphFinder api
curl -X POST \
  https://api.crd.builders/apis/meta.appscode.com/v1alpha1/graphfinders \
  -H 'content-type: application/json' \
  -d '{
   "apiVersion": "meta.appscode.com/v1alpha1",
   "kind": "GraphFinder",
   "request": {
      "source": {
         "group": "apps",
         "version": "v1",
         "resource": "deployments"
      }
   }
}'
Test PathFinder api
# find path from deployments -> services

curl -X POST \
  https://api.crd.builders/apis/meta.appscode.com/v1alpha1/pathfinders \
  -H 'content-type: application/json' \
  -d '{
   "apiVersion": "meta.appscode.com/v1alpha1",
   "kind": "PathFinder",
   "request": {
      "source": {
         "group": "apps",
         "version": "v1",
         "resource": "deployments"
      },
      "target": {
         "group": "",
         "version": "v1",
         "resource": "services"
      }
   }
}'

# find all paths from deployments

curl -X POST \
  https://api.crd.builders/apis/meta.appscode.com/v1alpha1/pathfinders \
  -H 'content-type: application/json' \
  -d '{
   "apiVersion": "meta.appscode.com/v1alpha1",
   "kind": "PathFinder",
   "request": {
      "source": {
         "group": "apps",
         "version": "v1",
         "resource": "deployments"
      }
   }
}'
Generate Path Diagram using Graphviz
$ go run cmd/pathviz/main.go --group=kubedb.com --version=v1alpha1 --resource=postgreses | dot -Tpng > postgres.png
$ go run cmd/pathviz/main.go --group=apps --version=v1 --resource=deployments | dot -Tpng > deployment.png

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
meta
Package api is the internal version of the API.
Package api is the internal version of the API.
meta/v1alpha1
+groupName=meta.appscode.com Package v1 contains API types that are common to all versions.
+groupName=meta.appscode.com Package v1 contains API types that are common to all versions.
client
clientset/versioned
This package has the automatically generated clientset.
This package has the automatically generated clientset.
clientset/versioned/fake
This package has the automatically generated fake clientset.
This package has the automatically generated fake clientset.
clientset/versioned/scheme
This package contains the scheme of the automatically generated clientset.
This package contains the scheme of the automatically generated clientset.
clientset/versioned/typed/meta/v1alpha1
This package has the automatically generated typed clients.
This package has the automatically generated typed clients.
clientset/versioned/typed/meta/v1alpha1/fake
Package fake has the automatically generated clients.
Package fake has the automatically generated clients.
cmd
Package crds Code generated by go-bindata.
Package crds Code generated by go-bindata.
hub
resourceclasses
Package resourceclasses Code generated by go-bindata.
Package resourceclasses Code generated by go-bindata.
resourcedescriptors
Package resourcedescriptors Code generated by go-bindata.
Package resourcedescriptors Code generated by go-bindata.
pkg
graph
This example demonstrates a distance queue built using the heap interface.
This example demonstrates a distance queue built using the heap interface.

Jump to

Keyboard shortcuts

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