Documentation ¶
Overview ¶
Copyright 2019 Google LLC
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
https://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 Google LLC ¶
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
https://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
- Variables
- func BackupPns(cmd *cobra.Command, args []string)
- func CatchUp(cmd *cobra.Command, args []string)
- func CatchUpEdrex(cmd *cobra.Command, args []string)
- func CatchUpSproxyd(client *http.Client, bucket string)
- func Check(cmd *cobra.Command, args []string)
- func ClonePns(cmd *cobra.Command, args []string)
- func ContentToJson(contents []byte) string
- func DataBase(cmd *cobra.Command, args []string)
- func Execute()
- func GetPathByName(cmd *cobra.Command, args []string)
- func GetUserMetaWithPathId(cmd *cobra.Command, args []string)
- func Inspect(cmd *cobra.Command, args []string)
- func ListBlobs(cmd *cobra.Command, args []string)
- func ListBuckets(cmd *cobra.Command, args []string)
- func ListObjVersions(cmd *cobra.Command, args []string)
- func ListObjectV2(cmd *cobra.Command, args []string)
- func MigratePns(cmd *cobra.Command, args []string)
- func OpById(method string, bucket string, marker string, prefix string, maxKey int64, ...)
- func RestorePns(cmd *cobra.Command, args []string)
- func SetBackupContext(nextIndex int) (c *meta.BackupContext)
- func TestReplication(cmd *cobra.Command, args []string)
Constants ¶
const ( RETRY = 5 MinPartSize = 5 * 1024 * 1024 // 5 MB MaxFileSize = MinPartSize * 409.6 // 2 GB DefaultDownloadConcurrency = 5 Dummy = "/dev/null" WaitTime = time.Duration(300) /* default waitime between retry in sec */ RetryNumber = 5 /* default retry number*/ MaxPartSize = MinPartSize * 20 CONTIMEOUT = 2000 // connection timeout in ms KEEPALIVE = 15000 // keep alive in ms HTTP = "http://" )
const CHUNKSIZE = 262144
Variables ¶
var ( Config string Debug bool MissingTargetUrls = "" /* 128-byte string literal not displayed */ )
Functions ¶
func CatchUpEdrex ¶
func CatchUpSproxyd ¶
func ContentToJson ¶
transform content returned by the bucketd API into JSON string
func Execute ¶
func Execute()
Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.
func GetPathByName ¶
func GetUserMetaWithPathId ¶
func ListBuckets ¶
func ListObjVersions ¶
func ListObjectV2 ¶
func MigratePns ¶
func RestorePns ¶
func SetBackupContext ¶
func SetBackupContext(nextIndex int) (c *meta.BackupContext)
func TestReplication ¶
Types ¶
This section is empty.