Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pick up environment parameters to configure the authentication credentials, platform endpoint and namespace. #23

Open
tleyden opened this issue Aug 8, 2017 · 0 comments

Comments

@tleyden
Copy link

tleyden commented Aug 8, 2017

From https://github.com/apache/incubator-openwhisk-client-js:

This client library can use environment parameters to automatically configure the authentication credentials, platform endpoint and namespace.

Is that true for incubator-openwhisk-client-go as well?

houshengbo pushed a commit to houshengbo/incubator-openwhisk-client-go that referenced this issue Aug 23, 2017
There are three ways to configure the credentials for client go, which are environment variable,
local go client properties, and whisk.properties from openwhisk in a precedence descending order.
Environment variable takes the most priority, and whisk.properties from openwhisk takes the least
priority.

For env variables: All valid environment variables to be configured include __OW_API_HOST, __OW_NAMESPACE, __OW_API_KEY,
__OW_APIGW_TOKEN and __OW_APIGW_SPACE_SUID.

For local client go configuration: we can specify the path of the local properties file or it will
by default look up the file under GOPATH. The valid file name is whiskClientConfig.properties.

For openwhisk properties file, we will look up the OPENWHISK_HOME directory to load whisk.properties
in order to get the credentials to access openwhisk service.

Closes-Bug: apache#22 apache#23
houshengbo pushed a commit to houshengbo/incubator-openwhisk-client-go that referenced this issue Aug 23, 2017
There are three ways to configure the credentials for client go, which are environment variable,
local go client properties, and whisk.properties from openwhisk in a precedence descending order.
Environment variable takes the most priority, and whisk.properties from openwhisk takes the least
priority.

For env variables: All valid environment variables to be configured include __OW_API_HOST, __OW_NAMESPACE, __OW_API_KEY,
__OW_APIGW_TOKEN and __OW_APIGW_SPACE_SUID.

For local client go configuration: we can specify the path of the local properties file or it will
by default look up the file under GOPATH. The valid file name is whiskClientConfig.properties.

For openwhisk properties file, we will look up the OPENWHISK_HOME directory to load whisk.properties
in order to get the credentials to access openwhisk service.

Closes-Bug: apache#22 apache#23
houshengbo pushed a commit to houshengbo/incubator-openwhisk-client-go that referenced this issue Aug 23, 2017
There are three ways to configure the credentials for client go, which are environment variable,
local go client properties, and whisk.properties from openwhisk in a precedence descending order.
Environment variable takes the most priority, and whisk.properties from openwhisk takes the least
priority.

For env variables: All valid environment variables to be configured include __OW_API_HOST, __OW_NAMESPACE, __OW_API_KEY,
__OW_APIGW_TOKEN and __OW_APIGW_SPACE_SUID.

For local client go configuration: we can specify the path of the local properties file or it will
by default look up the file under GOPATH. The valid file name is whiskClientConfig.properties.

For openwhisk properties file, we will look up the OPENWHISK_HOME directory to load whisk.properties
in order to get the credentials to access openwhisk service.

Closes-Bug: apache#22 apache#23
houshengbo pushed a commit to houshengbo/incubator-openwhisk-client-go that referenced this issue Aug 23, 2017
There are three ways to configure the credentials for client go, which are environment variable,
local go client properties, and whisk.properties from openwhisk in a precedence descending order.
Environment variable takes the most priority, and whisk.properties from openwhisk takes the least
priority.

For env variables: All valid environment variables to be configured include __OW_API_HOST, __OW_NAMESPACE, __OW_API_KEY,
__OW_APIGW_TOKEN and __OW_APIGW_SPACE_SUID.

For local client go configuration: we can specify the path of the local properties file or it will
by default look up the file under GOPATH. The valid file name is whiskClientConfig.properties.

For openwhisk properties file, we will look up the OPENWHISK_HOME directory to load whisk.properties
in order to get the credentials to access openwhisk service.

Closes-Bug: apache#22 apache#23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant