xenon-middleware / xenon

A middleware abstraction library that provides a simple programming interface to various compute and storage resources.
http://xenon-middleware.github.io/xenon/
Apache License 2.0
34 stars 17 forks source link

Determine which credential types are allowed for an adaptor #595

Closed sverhoeven closed 6 years ago

sverhoeven commented 7 years ago

For Xenon CLI it would be nice to only show the credential options that are allowed for a certain adaptor.

For example the KeyTabCredential is only allowed by the HDFS adaptor, showing the --keytab argument only when HFDS has been selected will make the CLI cleaner for the other adaptors.

jmaassen commented 6 years ago

Agreed. But how do we return these ? As strings ? Classes ?

sverhoeven commented 6 years ago

I prefer classes as these are less typo prone.

jmaassen commented 6 years ago

Sure, no problem. I'll add a getSupportedCredentials to AdaptorDescription