Documentation ¶
Overview ¶
Copyright © 2019 Nuxeo
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright © 2019 Nuxeo ¶
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright © 2019 Nuxeo ¶
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright © 2019 Nuxeo ¶
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright © 2019 Nuxeo ¶
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- Constants
- func BuildWorkDir(srcDir string, dotEnv string, configName string) (error, string)
- func GenerateDotEnv(srcEnv string, dstEnvJs string) error
- func S3Sync(config *Config, srcdir string, bucket string) error
- func SessionForBucket(config *Config, bucket string) (*s3.S3, error)
- func SessionNew(config *Config) *s3.S3
- type Action
- type Config
- type EnvVar
- type FileObject
- type FileURI
Constants ¶
const ( NUM_COPY = 4 NUM_CHECKSUM = 1 QUEUE_SIZE = 1000000 // 1M )
Variables ¶
This section is empty.
Functions ¶
func BuildWorkDir ¶
func GenerateDotEnv ¶
func SessionForBucket ¶
SessionForBucket - For a given S3 bucket, create an approprate session that references the region that this bucket is located in
func SessionNew ¶
SessionNew - Read the config for default credentials, if not provided use environment based variables