cf-go-client

module
v0.0.0-...-7f4d2d2 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2015 License: Apache-2.0

README

Cloud Foundry client library for Golang

This is a start of a gentle wrapper around the Golang libraries used in the Cloud Foundry CLI implementation. It makes it much easier to consume the API directly from CLI plugins, rather than having to invoke it through CliConnection.CliCommand[WithoutTerminalOutput] and parsing the output of that.

What the wrapper tries to do for you:

  • Initialize everything that needs to be initialized to safely call the APIs
  • Hide all of the different internal classes (repositories and helpers)
  • Provide access to useful features that are in the CLI to ease consumption of the API

Examples of the latter:

  • Panic handling
  • Token refreshing
  • Waiting for state to change (making API behavior synchronous)

The API is only as complete as needed for its consumers. I have made no attempt to extend it beyond the specific calls I needed for my plugins.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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