MCPcopy
hub / github.com/peak/s5cmd / NewSharedFlags

Function NewSharedFlags

command/cp.go:123–227  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

121`
122
123func NewSharedFlags() []cli.Flag {
124 return []cli.Flag{
125 &cli.BoolFlag{
126 Name: "no-follow-symlinks",
127 Usage: "do not follow symbolic links",
128 },
129 &cli.StringFlag{
130 Name: "storage-class",
131 Usage: "set storage class for target ('STANDARD','REDUCED_REDUNDANCY','GLACIER','STANDARD_IA','ONEZONE_IA','INTELLIGENT_TIERING','DEEP_ARCHIVE')",
132 },
133 &cli.IntFlag{
134 Name: "concurrency",
135 Aliases: []string{"c"},
136 Value: defaultCopyConcurrency,
137 Usage: "number of concurrent parts transferred between host and remote server",
138 },
139 &cli.IntFlag{
140 Name: "part-size",
141 Aliases: []string{"p"},
142 Value: defaultPartSize,
143 Usage: "size of each part transferred between host and remote server, in MiB",
144 },
145 &MapFlag{
146 Name: "metadata",
147 Usage: "set arbitrary metadata for the object, e.g. --metadata 'foo=bar' --metadata 'fizz=buzz'",
148 },
149 &cli.GenericFlag{
150 Name: "metadata-directive",
151 Usage: "set metadata directive for the object: COPY or REPLACE",
152 Value: &EnumValue{
153 Enum: []string{metadataDirectiveCopy, metadataDirectiveReplace, ""},
154 Default: "",
155 ConditionFunction: func(str, target string) bool {
156 return strings.EqualFold(target, str)
157 },
158 },
159 },
160 &cli.StringFlag{
161 Name: "sse",
162 Usage: "perform server side encryption of the data at its destination, e.g. aws:kms",
163 },
164 &cli.StringFlag{
165 Name: "sse-kms-key-id",
166 Usage: "customer master key (CMK) id for SSE-KMS encryption; leave it out if server-side generated key is desired",
167 },
168 &cli.StringFlag{
169 Name: "acl",
170 Usage: "set acl for target: defines granted accesses and their types on different accounts/groups, e.g. cp --acl 'public-read'",
171 },
172 &cli.StringFlag{
173 Name: "cache-control",
174 Usage: "set cache control for target: defines cache control header for object, e.g. cp --cache-control 'public, max-age=345600'",
175 },
176 &cli.StringFlag{
177 Name: "expires",
178 Usage: "set expires for target (uses RFC3339 format): defines expires header for object, e.g. cp --expires '2024-10-01T20:30:00Z'",
179 },
180 &cli.BoolFlag{

Callers 2

NewCopyCommandFlagsFunction · 0.85
NewSyncCommandFlagsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected