MCPcopy Index your code
hub / github.com/peak/s5cmd / NewPipeCommandFlags

Function NewPipeCommandFlags

command/pipe.go:40–105  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

38`
39
40func NewPipeCommandFlags() []cli.Flag {
41 pipeFlags := []cli.Flag{
42 &cli.StringFlag{
43 Name: "storage-class",
44 Usage: "set storage class for target ('STANDARD','REDUCED_REDUNDANCY','GLACIER','STANDARD_IA','ONEZONE_IA','INTELLIGENT_TIERING','DEEP_ARCHIVE')",
45 },
46 &cli.IntFlag{
47 Name: "concurrency",
48 Aliases: []string{"c"},
49 Value: defaultCopyConcurrency,
50 Usage: "number of concurrent parts transferred between host and remote server",
51 },
52 &cli.IntFlag{
53 Name: "part-size",
54 Aliases: []string{"p"},
55 Value: defaultPartSize,
56 Usage: "size of each part transferred between host and remote server, in MiB",
57 },
58 &MapFlag{
59 Name: "metadata",
60 Usage: "set arbitrary metadata for the object",
61 },
62 &cli.StringFlag{
63 Name: "sse",
64 Usage: "perform server side encryption of the data at its destination, e.g. aws:kms",
65 },
66 &cli.StringFlag{
67 Name: "sse-kms-key-id",
68 Usage: "customer master key (CMK) id for SSE-KMS encryption; leave it out if server-side generated key is desired",
69 },
70 &cli.StringFlag{
71 Name: "acl",
72 Usage: "set acl for target: defines granted accesses and their types on different accounts/groups, e.g. pipe --acl 'public-read'",
73 },
74 &cli.StringFlag{
75 Name: "cache-control",
76 Usage: "set cache control for target: defines cache control header for object, e.g. pipe --cache-control 'public, max-age=345600'",
77 },
78 &cli.StringFlag{
79 Name: "expires",
80 Usage: "set expires for target (uses RFC3339 format): defines expires header for object, e.g. pipe --expires '2024-10-01T20:30:00Z'",
81 },
82 &cli.BoolFlag{
83 Name: "raw",
84 Usage: "disable the wildcard operations, useful with filenames that contains glob characters",
85 },
86 &cli.StringFlag{
87 Name: "content-type",
88 Usage: "set content type for target: defines content type header for object, e.g. --content-type text/plain",
89 },
90 &cli.StringFlag{
91 Name: "content-encoding",
92 Usage: "set content encoding for target: defines content encoding header for object, e.g. --content-encoding gzip",
93 },
94 &cli.StringFlag{
95 Name: "content-disposition",
96 Usage: "set content disposition for target: defines content disposition header for object, e.g. --content-disposition 'attachment; filename=\"filename.jpg\"'",
97 },

Callers 1

NewPipeCommandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected