Documentation
¶
Index ¶
- func Cat(ctx context.Context, src *url.URL) error
- func Delete(ctx context.Context, op string, fullCommand string, src ...string) error
- func List(ctx context.Context, src string, showEtag bool, humanize bool, ...) error
- func ListBuckets(ctx context.Context) error
- func Main(ctx context.Context, args []string) error
- func MakeBucket(ctx context.Context, op string, src string) error
- func Size(ctx context.Context, src string, groupByClass bool, humanize bool) error
- type Copy
- type ListMessage
- type Scanner
- type SizeMessage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func List ¶
func List( ctx context.Context, src string, showEtag bool, humanize bool, showStorageClass bool, ) error
List prints objects at given source.
func MakeBucket ¶
MakeBucket creates bucket.
Types ¶
type Copy ¶
type Copy struct {
// contains filtered or unexported fields
}
Copy holds copy 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 Scanner ¶
Scanner is a cancelable scanner.
func NewScanner ¶
NewScanner creates a new scanner with cancellation.
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.
Click to show internal directories.
Click to hide internal directories.