This code is written primarily to function as a CF CLI plugin but it can also be used to execute against any accessible Geode cluster in standalone mode. The minor differences of operation between plugin and standalone mode will be explained below.
This code works with the V2 management API introduced in Geode 1.10. The API and this client are both considered to be experimental code that may be subject to change.
Apart from needing the management API to be enabled the client is not bound to a particular version of the API beyond needing a 1.10+ server. It is written to be able to adapt to the progress that is made on the API code in a dynamic fashion.
- You have installed CF CLI and you have installed a compatible VMware Tanzu GemFire in this environment. (1.10+?, prior PCC 1.10)
- You are logged into CF
cf login --skip-ssl-validation -a https://api.sys.ENVNAME.cf-app.com -u admin -p PASSWORDENVNAMEcorresponds to your CF environmentPASSWORDcan be found in the CF Ops Manager → PAS tile → Credentials Tab → UAA Admin Credentials
- You have a VMware Tanzu GemFire instance running
cf create-service p-cloudcache dev-plan myPCCInstance
- Your VMware Tanzu GemFire instance has a service key
cf create-service-key myPCCInstance myKey
- You have a Geode(1.10+) cluster running and have the co-ordinates (URI, username and password) of a
Locatorin this cluster. This can be a development version running onlocalhost
- Have a Go SDK on your machine when compiling the code from the repository. It is recommended to get the latest 1.x version of
Goto ensure all known security issues are addressed. - Clone the Repository
git clone git@github.com:gemfire/tanzu-gemfire-management-cf-plugin.git
- Some parameters can be replaced with environment variables to avoid having to type them in repeatedly. Please see the general help for details in each mode
- Run the start script
./install.shfrom thetanzu-gemfire-management-cf-plugindirectory or./reinstall.shwhen replacing an existing version of the plugin
- For Help
cf gemfire --helpprovides general helpcf gemfire <target> commandsto get a list of commands available to you.<target>is the VMware Tanzu GemFire service instance name you are usingcf gemfire <target> <command> -helpto get<command>specific help including the format ofJSONpayload that some commands require
- Run the start script
./build.shfrom thetanzu-gemfire-management-cf-plugindirectory
- For Help
./gemfire --helpprovides general help./gemfire <target> commandsto get a list of commands available to you.<target>is the address of thelocatoryou are using./gemfire <target> <command> -helpto get<command>specific help including the format ofJSONpayload that some commands require
- Run all the tests
ginkgo -rfrom thetanzu-gemfire-management-cf-plugindirectory