blob: 6a47f9904031f30273bbc279903cfa27d325035c [file] [log] [blame]
// Copyright 2019 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can
// found in the LICENSE file.
package artifactory
// Upload is a struct that contains source and destination paths to files to
// upload to GCS.
type Upload struct {
// Source is the path to the local file to upload.
Source string
// Destination is the path to upload to relative to a gcs bucket and namespace.
Destination string
// Compress is a directive to gzip the object before uploading.
Compress bool
// Deduplicate gives a collision strategy. If true, then an upload should
// not fail in the event of a collision, allowing for deduplication of, for
// example, content-addressed uploads.
Deduplicate bool
// Recursive tells whether to recursively upload all files in Source if
// Source is a directory.
Recursive bool
}