cmd

package
v0.0.0-...-c24aeb1 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package cmd implements all commands in cosutil. In this package, each subcommand is a single go file, and root is the cosutil command itself.

Due to the restriction of dependency cobra, the global cosutil command arguments must be between the `cosutil` and the subcommand. For example, if you want to enable debug mode when downloading, you must use

cosutil -d download cospath localpath

but not

cosutil download -d cospath localpath

which will cause an parse error.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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.

Types

type CopyConfig

type CopyConfig struct {
	// contains filtered or unexported fields
}

type DeleteConfig

type DeleteConfig struct {
	// contains filtered or unexported fields
}

type DownloadConfig

type DownloadConfig struct {
	// contains filtered or unexported fields
}

type ListConfig

type ListConfig struct {
	// contains filtered or unexported fields
}

type PutBucketACLConfig

type PutBucketACLConfig struct {
	// contains filtered or unexported fields
}

PutBucketACLConfig defines ACL for an object.

type PutObjectACLConfig

type PutObjectACLConfig struct {
	// contains filtered or unexported fields
}

PutObjectACLConfig defines ACL config for object.

type RestoreConfig

type RestoreConfig struct {
	// contains filtered or unexported fields
}

type UploadConfig

type UploadConfig struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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