cmd

package
v0.0.0-...-8b27293 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 29, 2021 License: Apache-2.0, Apache-2.0 Imports: 31 Imported by: 0

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.

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

View Source
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://"
)
View Source
const CHUNKSIZE = 262144

Variables

View Source
var (
	Config string

	Debug bool

	MissingTargetUrls = "" /* 128-byte string literal not displayed */

)

Functions

func BackupPns

func BackupPns(cmd *cobra.Command, args []string)

func CatchUp

func CatchUp(cmd *cobra.Command, args []string)

func CatchUpEdrex

func CatchUpEdrex(cmd *cobra.Command, args []string)

func CatchUpSproxyd

func CatchUpSproxyd(client *http.Client, bucket string)

func Check

func Check(cmd *cobra.Command, args []string)

func ClonePns

func ClonePns(cmd *cobra.Command, args []string)

func ContentToJson

func ContentToJson(contents []byte) string

transform content returned by the bucketd API into JSON string

func DataBase

func DataBase(cmd *cobra.Command, args []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 GetPathByName(cmd *cobra.Command, args []string)

func GetUserMetaWithPathId

func GetUserMetaWithPathId(cmd *cobra.Command, args []string)

func Inspect

func Inspect(cmd *cobra.Command, args []string)

func ListBlobs

func ListBlobs(cmd *cobra.Command, args []string)

func ListBuckets

func ListBuckets(cmd *cobra.Command, args []string)

func ListObjVersions

func ListObjVersions(cmd *cobra.Command, args []string)

func ListObjectV2

func ListObjectV2(cmd *cobra.Command, args []string)

func MigratePns

func MigratePns(cmd *cobra.Command, args []string)

func OpById

func OpById(method string, bucket string, marker string, prefix string, maxKey int64, maxLoop int, check bool)

func RestorePns

func RestorePns(cmd *cobra.Command, args []string)

func SetBackupContext

func SetBackupContext(nextIndex int) (c *meta.BackupContext)

func TestReplication

func TestReplication(cmd *cobra.Command, args []string)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL