Documentation
¶
Index ¶
- func AppCommand(name string) *cli.Command
- func Commands() []*cli.Command
- func ListBuckets(ctx context.Context, storageOpts storage.Options) error
- func Main(ctx context.Context, args []string) error
- func NewCatCommand() *cli.Command
- func NewCopyCommand() *cli.Command
- func NewCopyCommandFlags() []cli.Flag
- func NewDeleteCommand() *cli.Command
- func NewListCommand() *cli.Command
- func NewMakeBucketCommand() *cli.Command
- func NewMoveCommand() *cli.Command
- func NewRemoveBucketCommand() *cli.Command
- func NewRunCommand() *cli.Command
- func NewSelectCommand() *cli.Command
- func NewSizeCommand() *cli.Command
- func NewStorageOpts(c *cli.Context) storage.Options
- func NewVersionCommand() *cli.Command
- type Cat
- type Copy
- type Delete
- type List
- type ListMessage
- type MakeBucket
- type RemoveBucket
- type Scanner
- type Select
- type Size
- type SizeMessage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppCommand ¶ added in v1.4.0
func ListBuckets ¶
ListBuckets prints all buckets.
func NewCatCommand ¶ added in v1.4.0
func NewCopyCommand ¶ added in v1.4.0
func NewCopyCommandFlags ¶ added in v1.4.0
func NewDeleteCommand ¶ added in v1.4.0
func NewListCommand ¶ added in v1.4.0
func NewMakeBucketCommand ¶ added in v1.4.0
func NewMoveCommand ¶ added in v1.4.0
func NewRemoveBucketCommand ¶ added in v1.4.0
func NewRunCommand ¶ added in v1.4.0
func NewSelectCommand ¶ added in v1.4.0
func NewSizeCommand ¶ added in v1.4.0
func NewStorageOpts ¶ added in v1.2.0
NewStorageOpts creates storage.Options object from the given context.
func NewVersionCommand ¶ added in v1.4.0
Types ¶
type Cat ¶
type Cat struct {
// contains filtered or unexported fields
}
Cat holds cat operation flags and states.
type Copy ¶
type Copy struct {
// contains filtered or unexported fields
}
Copy holds copy operation flags and states.
type Delete ¶
type Delete struct {
// contains filtered or unexported fields
}
Delete holds delete operation flags and states.
type List ¶
type List struct {
// contains filtered or unexported fields
}
List holds list operation flags and states.
type ListMessage ¶
type ListMessage struct {
Object *storage.Object `json:"object"`
// contains filtered or unexported fields
}
ListMessage is a structure for logging ls results.
func (ListMessage) JSON ¶
func (l ListMessage) JSON() string
JSON returns the JSON representation of ListMessage.
func (ListMessage) String ¶
func (l ListMessage) String() string
String returns the string representation of ListMessage.
type MakeBucket ¶
type MakeBucket struct {
// contains filtered or unexported fields
}
MakeBucket holds bucket creation operation flags and states.
type RemoveBucket ¶ added in v1.4.0
type RemoveBucket struct {
// contains filtered or unexported fields
}
RemoveBucket holds bucket deletion operation flags and states.
type Scanner ¶
Scanner is a cancelable scanner.
func NewScanner ¶
NewScanner creates a new scanner with cancellation.
type Select ¶ added in v1.4.0
type Select struct {
// contains filtered or unexported fields
}
Select holds select operation flags and states.
type Size ¶
type Size struct {
// contains filtered or unexported fields
}
Size holds disk usage (du) operation flags and states.
type SizeMessage ¶
type SizeMessage struct {
Source string `json:"source"`
StorageClass string `json:"storage_class,omitempty"`
Count int64 `json:"count"`
Size int64 `json:"size"`
// contains filtered or unexported fields
}
SizeMessage is the structure for logging disk usage.
func (SizeMessage) JSON ¶
func (s SizeMessage) JSON() string
JSON returns the JSON representation of SizeMessage.
func (SizeMessage) String ¶
func (s SizeMessage) String() string
String returns the string representation of SizeMessage.