|
| 1 | +/* Copyright (C) 2020 NooBaa */ |
| 2 | +'use strict'; |
| 3 | + |
| 4 | + |
| 5 | +class ListObjectFS { |
| 6 | + constructor({fs_context, list_versions, keymarker, prefix_dir_key, is_truncated, delimiter, prefix, |
| 7 | + version_id_marker, list_type, results, limit, skip_list, key_marker}) { |
| 8 | + this.fs_context = fs_context; |
| 9 | + this.keymarker = keymarker; |
| 10 | + this.prefix_dir_key = prefix_dir_key; |
| 11 | + this.is_truncated = is_truncated; |
| 12 | + this.delimiter = delimiter; |
| 13 | + this.prefix = prefix; |
| 14 | + this.version_id_marker = version_id_marker; |
| 15 | + this.list_type = list_type; |
| 16 | + this.results = results; |
| 17 | + this.limit = limit; |
| 18 | + this.skip_list = skip_list; |
| 19 | + this.prefix_ent = ''; |
| 20 | + this.marker_dir = ''; |
| 21 | + this.param_key_marker = key_marker; |
| 22 | + this.list_versions = list_versions; |
| 23 | + } |
| 24 | + |
| 25 | + async update_process_dir_properties(prefix_ent, marker_curr, dir_path) { |
| 26 | + this.prefix_ent = prefix_ent; |
| 27 | + this.dir_path = dir_path; |
| 28 | + } |
| 29 | + |
| 30 | + async update_is_truncated(is_truncated) { |
| 31 | + this.is_truncated = is_truncated; |
| 32 | + } |
| 33 | + |
| 34 | + async get_is_truncated() { |
| 35 | + return this.is_truncated; |
| 36 | + } |
| 37 | + |
| 38 | + async update_keymarker(keymarker) { |
| 39 | + this.keymarker = keymarker; |
| 40 | + } |
| 41 | + |
| 42 | + async get_keymarker() { |
| 43 | + return this.keymarker; |
| 44 | + } |
| 45 | +} |
| 46 | + |
| 47 | +// EXPORTS |
| 48 | +module.exports = ListObjectFS; |
0 commit comments