Categorygithub.com/AP-Hunt/cf-traverse
repositorypackage
0.0.0-20210122153859-01b7c57e7662
Repository: https://github.com/ap-hunt/cf-traverse.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author

# README

cf-traverse

cf-traverse is a Cloud Foundry CLI plugin for traversing the relationships within the Cloud Foundry API. For instance, getting the service offering from a given service instance name or GUID.

It was born out of the frustration of writing code for the same handful of API traversals every time they were needed. The goal is to make it easier to write scripts which work with the Cloud Foundry API to get data out.

Usage

cf traverse [SOURCE ENTITY TYPE] [RELATION] [SOURCE ENTITY IDENTIFIER] 

Traverse takes 3 arguments: the type of the source entity (e.g. service instance), the relation to find, and an identifier for the source entity. The table below shows all the supported source entities, relations, and what qualifies as an identifier

Source entity typeSource entity identifierRelation
service_instanceA service instance guid, or service instance name
space
org
plan
service_offering
service_planA service plan guid
instances_of
service_offeringA service offering guid, or service offering name
instances_of

Installation

You can either