config.APIHostInsecure = matchTrue.MatchString(os.Getenv("ARVADOS_API_HOST_INSECURE"))
config.ExternalClient = matchTrue.MatchString(os.Getenv("ARVADOS_EXTERNAL_CLIENT"))
- return MakeArvadosClientWithConfig(config)
+ return New(config)
}
// Create a new ArvadosClient, using the given input parameters.
-func MakeArvadosClientWithConfig(config APIConfig) (ac ArvadosClient, err error) {
+func New(config APIConfig) (ac ArvadosClient, err error) {
ac = ArvadosClient{
ApiServer: config.APIHost,
ApiToken: config.APIToken,
// Initializes keep-rsync using the config provided
func initializeKeepRsync() (err error) {
// arvSrc from srcConfig
- arvSrc, err = arvadosclient.MakeArvadosClientWithConfig(srcConfig)
+ arvSrc, err = arvadosclient.New(srcConfig)
if err != nil {
return
}
// arvDst from dstConfig
- arvDst, err = arvadosclient.MakeArvadosClientWithConfig(dstConfig)
+ arvDst, err = arvadosclient.New(dstConfig)
if err != nil {
return
}