mantaAccount: Changes current Manta account information

Description Usage Arguments Value See Also Examples

View source: R/mantaAccount.R

Description

The Manta account is initially obtained from three environment variables:
$MANTA_USER, $MANTA_KEY, $MANTA_URL.
The ssl key location is obtained by default on Unix/Linux from
/$HOME/.ssh/id_rsa
or on Windows from:
C:\Users\username\.ssh\ir_rsa
The Manta datacentre enviroment variable is:
$MANTA_URL

Usage

1
mantaAccount(account, json, verbose = FALSE)

Arguments

account

list, optional. Input R account values.

json

character, optional. Input JSON account values.

verbose

logical, optional. Show HTTP communication. FALSE by default.

Value

logical TRUE if account changed and working. Reverts to previous working account if it cannot connect wit the new information returns FALSE for both cases - account reverted or account is left in a state where it cannot communicate to the server.

See Also

mantaWhoami

Other mantaAccount: mantaGetLimits; mantaSetLimits; mantaWhoami

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
## Not run: 
## To see/save current account settings:
account <- mantaWhoami(all = TRUE)

## then use:

mantaAccount(account) ## to set the modified account

## Account information may contain 1-4 key-value pairs.

## To see/save current account settings as JSON:

account <- mantaWhoami(all = TRUE, json = TRUE)

## then use:

mantaAccount(json = account) to set that account

## To set a non default SSH private key location on Windows

mysslkey <- list(SSL_KEY_PATH = "C:\\Users\\myacct\\.ssh\\my_priv_rsa")
mantaAccount(mysslkey)

## End(Not run)

joyent/mantaRSDK documentation built on May 19, 2019, 10:43 p.m.