MCPcopy Create free account
hub / github.com/cloudfoundry/multiapps-cli-plugin / NewFileUploader

Function NewFileUploader

commands/file_uploader.go:85–94  ·  view source on GitHub ↗

NewFileUploader creates a new file uploader for the specified namespace

(mtaClient mtaclient.MtaClientOperations, namespace string, uploadChunkSizeInMB uint64,
	sequentialUpload, shouldDisableProgressBar bool)

Source from the content-addressed store, hash-verified

83
84// NewFileUploader creates a new file uploader for the specified namespace
85func NewFileUploader(mtaClient mtaclient.MtaClientOperations, namespace string, uploadChunkSizeInMB uint64,
86 sequentialUpload, shouldDisableProgressBar bool) *FileUploader {
87 return &FileUploader{
88 mtaClient: mtaClient,
89 namespace: namespace,
90 uploadChunkSizeInMB: uploadChunkSizeInMB,
91 sequentialUpload: sequentialUpload,
92 shouldDisableProgressBar: shouldDisableProgressBar,
93 }
94}
95
96// UploadFiles uploads the files
97func (f *FileUploader) UploadFiles(files []string) ([]*models.FileMetadata, ExecutionStatus) {

Callers 2

executeInternalMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected