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 PASSWORD
ENVNAME
corresponds to your CF environmentPASSWORD
can 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
Locator
in 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
Go
to 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.sh
from thetanzu-gemfire-management-cf-plugin
directory or./reinstall.sh
when replacing an existing version of the plugin
- For Help
cf gemfire --help
provides general helpcf gemfire <target> commands
to get a list of commands available to you.<target>
is the VMware Tanzu GemFire service instance name you are usingcf gemfire <target> <command> -help
to get<command>
specific help including the format ofJSON
payload that some commands require
- Run the start script
./build.sh
from thetanzu-gemfire-management-cf-plugin
directory
- For Help
./gemfire --help
provides general help./gemfire <target> commands
to get a list of commands available to you.<target>
is the address of thelocator
you are using./gemfire <target> <command> -help
to get<command>
specific help including the format ofJSON
payload that some commands require
- Run all the tests
ginkgo -r
from thetanzu-gemfire-management-cf-plugin
directory