Object storage management method and device, equipment and storage medium

By parsing user commands and calling software development kit components through command-line tools, the problem of switching between object storage services is solved, realizing efficient cross-platform object storage management, which is suitable for CI/CD processes on multi-cloud platforms.

CN121901165APending Publication Date: 2026-04-21CHINA TELECOM CLOUD TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
CHINA TELECOM CLOUD TECH CO LTD
Filing Date
2025-11-27
Publication Date
2026-04-21

AI Technical Summary

Technical Problem

In existing technologies, switching between various server-side object storage services is difficult, and SDK components are not universal, resulting in cumbersome development and deployment processes and increasing the application development cycle.

Method used

This paper provides an object storage management method that uses a command-line tool to parse user commands, determine the target object storage service, and call the corresponding software development kit components to achieve cross-platform object storage service calls.

Benefits of technology

It enables flexible switching between different object storage services, improves software development and deployment efficiency, reduces learning and operational complexity, supports data migration and error handling, and adapts to CI/CD processes on multiple cloud platforms.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121901165A_ABST
    Figure CN121901165A_ABST
Patent Text Reader

Abstract

The invention discloses an object storage management method and device, equipment and a storage medium, belongs to the field of object storage management, and can solve the problem that object storage services of multiple servers are difficult to switch. The method comprises the following steps: analyzing a command line operation instruction input by a user, and determining a target object storage service corresponding to the command line operation instruction; determining a software development kit component corresponding to the target object storage service; and calling the target object storage service through the software development kit component.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of software design, specifically relating to an object storage management method, apparatus, device, and storage medium. Background Technology

[0002] Object storage, as a modern data storage and management method, is widely used in cloud computing environments and enterprise data management. In existing technologies, the corresponding object storage service is typically invoked through SDK (Software Development Kit) components provided by the provider.

[0003] In existing technologies, switching between multiple server-side object storage systems is difficult. SDK components provided by different providers are not interchangeable, making switching cumbersome. Furthermore, there is a certain dependence on the client environment. In the software development and deployment process, using multiple object storage services requires a lot of customization, which greatly increases the application development cycle. Summary of the Invention

[0004] The purpose of this application is to provide an object storage management method, apparatus, device, and storage medium that can solve the problem of difficulty in switching between object storage services from multiple servers.

[0005] To solve the above-mentioned technical problems, this application is implemented as follows: In a first aspect, embodiments of this application provide an object storage management method, the method comprising: The command-line operation instructions input by the user are parsed to determine the target object storage service corresponding to the command-line operation instructions; Identify the software development kit components corresponding to the target object storage service; The target object storage service is invoked through the software development kit component.

[0006] Optionally, parsing the command-line operation instructions input by the user to determine the target object storage service corresponding to the command-line operation instructions includes: Read the fields in the command line operation instructions to determine the provider name and service content corresponding to the command line instructions; Based on the provider name and the service content, determine the target object storage service corresponding to the command-line operation.

[0007] Optionally, determining the software development kit component corresponding to the target object storage service includes: Call the list of software development kit components; Locate the software development kit (SDK) component corresponding to the target object storage service in the list of software development kit components.

[0008] Optionally, the step of calling the target object storage service through the software development kit component includes: Call the service interface provided by the software development kit component; The target object storage service is invoked through the service interface.

[0009] Optionally, before invoking the target object storage service through the software development kit component, the method further includes: Based on the provider name corresponding to the software development kit component, search for the identity credential corresponding to the provider name in the identity credential list; The identity credential is decrypted using the key pre-set by the user; The identity credentials are authenticated through the software development kit components after being decrypted.

[0010] Optionally, the method further includes: When the user issues a data migration instruction, determine the migration-out object and the migration-in object corresponding to the data migration instruction; The target data is obtained by calling the corresponding object storage service through the software development kit component corresponding to the object being migrated out. Store the target data in a local cache; The target data in the local cache is stored in the imported object by calling the corresponding object storage service through the software development kit component corresponding to the imported object.

[0011] Optionally, the method further includes: If an error occurs while calling the target object storage service, error handling will be performed; The call process corresponding to the target object storage service is recorded in the log.

[0012] Secondly, embodiments of this application provide an object storage management device, the device comprising: The operation instruction parsing module is used to parse the command line operation instructions input by the user and determine the target object storage service corresponding to the command line operation instructions. The software development kit (SDK) component invocation module is used to determine the SSD component corresponding to the target object storage service. The object storage service invocation module is used to invoke the target object storage service through the software development kit component.

[0013] Optionally, the operation instruction parsing module includes: The field reading submodule is used to read the fields in the command line operation instructions to determine the provider name and service content corresponding to the command line instructions; The object storage service determination submodule is used to determine the target object storage service corresponding to the command-line operation based on the provider name and the service content.

[0014] Optionally, the software development kit component calling module includes: The list reading submodule is used to call up a list of software development kit components; The component search submodule is used to search for the software development kit component corresponding to the target object storage service in the software development kit component list.

[0015] Optionally, the object storage service call includes: The service interface call submodule is used to call the service interfaces provided by the software development kit components; The object storage service invocation submodule is used to invoke the target object storage service through the service interface.

[0016] Optionally, the device further includes: The identity credential lookup module is used to search for the identity credential corresponding to the provider name in the identity credential list based on the provider name corresponding to the software development kit component. The identity credential decryption module is used to decrypt the identity credential based on the key preset by the user. An authentication module is used to authenticate the identity through the software development kit components using the decrypted identity credentials.

[0017] Optionally, the device further includes: The object determination module is used to determine the outgoing object and the incoming object corresponding to the data migration instruction when the user issues a data migration instruction. The target data acquisition module is used to call the corresponding object storage service through the software development kit component corresponding to the migrated object to acquire the target data; The data caching module is used to store the target data in a local cache; The data migration module is used to call the corresponding object storage service through the software development kit component corresponding to the migration object, and store the target data in the local cache into the migration object.

[0018] Thirdly, embodiments of this application provide an electronic device including a processor, a memory, and a program or instructions stored in the memory and executable on the processor, wherein the program or instructions, when executed by the processor, implement the steps of the method described in the first aspect.

[0019] Fourthly, embodiments of this application provide a readable storage medium on which a program or instructions are stored, which, when executed by a processor, implement the steps of the method described in the first aspect.

[0020] Fifthly, embodiments of this application provide a chip, the chip including a processor and a communication interface, the communication interface being coupled to the processor, the processor being used to run programs or instructions to implement the method as described in the first aspect.

[0021] The object storage management method provided in this application parses the command-line operation instructions input by the user to determine the target object storage service corresponding to the command-line operation instructions; determines the software development kit component corresponding to the target object storage service; and calls the target object storage service through the software development kit component.

[0022] In this method, users can use command-line commands to specify the object storage service they want to use. Based on the required object storage service, the corresponding software development kit (SDK) component is invoked, and then the SSD component invokes the corresponding object storage service. Users can flexibly invoke object storage services from multiple providers using a single command-line tool, enabling flexible switching between different object storage services and significantly improving the efficiency of software development and deployment. Attached Figure Description

[0023] Figure 1 This is a flowchart of an object storage management method proposed in an embodiment of this application; Figure 2 This is a schematic diagram of object storage data migration according to an embodiment of this application; Figure 3 This is a flowchart of an object storage service management process proposed in an embodiment of this application; Figure 4 This is a schematic diagram of an object storage management device according to an embodiment of this application; Figure 5 This is a schematic diagram of the hardware structure of an electronic device according to an embodiment of this application. Detailed Implementation

[0024] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0025] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such use of data can be interchanged where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.

[0026] This application proposes a command-line tool developed using the Go language. The command-line tool is an interface for interacting with a computer through text commands. This tool integrates SDKs from multiple object storage service providers, allowing for unified command-line management of object storage services. Leveraging Go's cross-platform compilation capabilities, the SDKs from multiple object storage service providers are integrated and compiled into a single, dependency-free, independent executable file, facilitating various use cases. The tool uses Cobra as the CLI (Command Line Interface) framework and Bubbletea as the TUI (Text User Interface) framework, employing TOML format configuration files for encrypted storage and retrieval of user key information. The command-line tool integrates a command-line parsing module for parsing command-line instructions, an object storage service integration module for integrating SDK components provided by various providers, a function implementation module for implementing the functions provided by various SDK components, a TUI interface module for providing users with an operable interface, a configuration management module for managing various user configuration information, an error handling and logging module for recording errors that occur during operation and logging the operation, and a permission management module for authenticating and managing users.

[0027] The object storage management method provided in this application will be described in detail below with reference to the accompanying drawings, through specific embodiments and application scenarios.

[0028] refer to Figure 1 , Figure 1 This is a flowchart of an object storage management method proposed in an embodiment of this application, as follows: Figure 1As shown, the method specifically includes the following steps: S11: Parse the command-line operation instructions input by the user and determine the target object storage service corresponding to the command-line operation instructions.

[0029] In this embodiment, the command-line operation instructions include parameters such as the object storage service to be invoked, the corresponding provider name, and user information. Object storage service is a cloud storage service that manages data through a RESTful API and unique identifiers (Keys), eliminating the need for traditional folder structures. Each file is packaged as an independent "object," containing data, metadata, and a unique identifier, supporting the storage of massive amounts of unstructured data (such as images and videos).

[0030] In this embodiment, the command line parsing module in the command line tool parses the command line operation instructions input by the user, reads the fields in the command line operation instructions, determines the object storage service that the user needs to call, the name of the provider of the object storage service to be called, and other information, and then determines the target object storage service corresponding to the command line operation instructions.

[0031] For example, the user enters the command-line instruction: "Store file XX in the object storage service provided by provider A."

[0032] S12: Determine the software development kit component corresponding to the target object storage service.

[0033] In this embodiment, the software development kit component (SDK component) is a development kit for object storage services. It provides standardized interfaces by encapsulating the underlying API, enabling developers to efficiently call storage functions (such as uploading and downloading).

[0034] In this embodiment, the object storage service integration module in the command-line tool integrates software development kit (SDK) components provided by different providers. The correspondence between each object storage service and an SSD component is recorded through a list of SSD components. After the target object storage service is determined, the corresponding SSD component is searched in the list.

[0035] For example, the target object storage service A corresponds to software development kit component A.

[0036] S13: Invoke the target object storage service through the software development kit component.

[0037] In this embodiment, after determining the software development kit component corresponding to the target object storage service, the target object storage service is called through the API interface exposed in the software development kit component. Since the software development kit component has been compiled into an executable file, the command-line tool can directly run the file to call the target object storage service.

[0038] For example, a software development kit component A calls object storage service A to store the corresponding file at the target address.

[0039] In this embodiment, the command-line tool parses the user's command-line instructions and directly calls the corresponding object storage service for the user. This eliminates the need for the user to frequently switch between different clients to use the corresponding object storage service, greatly improving the user experience for ordinary users and significantly increasing software development efficiency for software developers.

[0040] In another embodiment of this application, parsing the command-line operation instructions input by the user and determining the target object storage service corresponding to the command-line operation instructions includes: S21: Read the fields in the command line operation instructions to determine the provider name and service content corresponding to the command line instructions.

[0041] In this embodiment, when parsing command-line operation instructions, the fields in the command-line operation instructions are read to determine the provider name and service content corresponding to the command-line instructions.

[0042] S22: Determine the target object storage service corresponding to the command line operation based on the provider name and the service content.

[0043] In this embodiment, once the provider name and service content are determined, the target object storage service corresponding to the command-line operation is determined.

[0044] For example, the user input field is parsed to determine that the target object storage service is "to store file XX in the cloud storage space provided by provider A".

[0045] In this embodiment, the command-line tool can parse the command-line operation instructions entered by the user, thereby determining the target object service required by the user, which is conducive to the flexible invocation of the target object service.

[0046] In another embodiment of this application, determining the software development kit component corresponding to the target object storage service includes: S31: Call the list of software development kit components.

[0047] In this embodiment, the software development kit (SDK) component list includes the SSD components corresponding to the object services provided by each provider. When determining the SSD components corresponding to the target object storage service, the SSD component list is called first.

[0048] S32: Locate the software development kit component corresponding to the target object storage service in the software development kit component list.

[0049] In this embodiment, the software development kit (SDK) component corresponding to the target object storage service is searched in the software development kit (SDK) component list, thereby determining the SSD component required by the target object storage service.

[0050] In this embodiment, the corresponding component is found through the software development kit component list, ensuring the effective invocation of the target object storage service.

[0051] In another embodiment of this application, the step of calling the target object storage service through the software development kit component includes: S41: Call the service interface provided by the software development kit component.

[0052] In this embodiment, the software development kit component is encapsulated software that provides service interfaces to the outside world to implement corresponding functions.

[0053] In this embodiment, after determining the software development kit component, the file corresponding to the software development kit component is run, and the service interface provided by the software development kit component is called.

[0054] S42: Invoke the target object storage service through the service interface.

[0055] In this embodiment, after calling the service interface, the target object storage service is called through the service interface to realize the operation corresponding to the user's command line command.

[0056] In this embodiment, the object storage service is invoked by calling the interface provided by the software development kit component, thereby enabling user operations.

[0057] In another embodiment of this application, before invoking the target object storage service through the software development kit component, the method further includes: S51: Based on the provider name corresponding to the software development kit component, search for the identity credential corresponding to the provider name in the identity credential list.

[0058] In this embodiment, identity credentials are the credentials a user uses when using the object storage service provided by each provider. The identity credential list stores the identity credentials used for each provider.

[0059] In this embodiment, after determining the provider name corresponding to the software development kit component, the identity credential corresponding to that provider name is searched in the identity credential list.

[0060] S52: Decrypt the identity credential according to the key preset by the user.

[0061] In this embodiment, in order to avoid exposing the user's identity credentials, all identity credentials are encrypted and stored. The user pre-sets a key, and the identity credentials are decrypted using the user's pre-set key. After decryption, the identity credentials can be used.

[0062] S53: Authentication is performed by the software development kit component using the decrypted identity credentials.

[0063] In this embodiment, the software development kit component provided by the provider has an authentication function. It verifies the user's identity through the decrypted identity credential, and then the user can use the service interface provided by the software development kit component to call the corresponding object storage service.

[0064] In this embodiment, the user's identity credentials are encrypted and stored in a unified location. Users can add identity credentials and set corresponding key information in the configuration file, which ensures the security of user data.

[0065] In another embodiment of this application, the method further includes: S61: When the user issues a data migration instruction, determine the migration-out object and migration-in object corresponding to the data migration instruction.

[0066] In this embodiment, the outgoing object is the object storage service that needs to retrieve data, and the incoming object is the object storage service into which the retrieved data is stored.

[0067] In this embodiment, users can also migrate object storage data through command-line tools. When a user issues a data migration command, the command-line tool determines the object to be migrated into and the object to be migrated out corresponding to the data migration command.

[0068] For example, the object being migrated in is object storage service A, and the object being migrated out is object storage service C.

[0069] S62: The target data is obtained by calling the corresponding object storage service through the software development kit component corresponding to the object being migrated out.

[0070] In this embodiment, the corresponding object storage service is invoked through the software development kit component corresponding to the object to be migrated out, in order to obtain the target data to be migrated out. The invocation method is the same as that described in the previous steps, and will not be repeated here.

[0071] S63: Store the target data in a local cache.

[0072] In this embodiment, after obtaining the target data, the command-line tool stores the target data in the local cache.

[0073] S64: By calling the corresponding object storage service through the software development kit component corresponding to the migrated object, the target data in the local cache is stored in the migrated object.

[0074] In this embodiment, the corresponding object storage service is called through the software development kit component corresponding to the object to be migrated, the target data is retrieved from the local cache, and the target data is stored in the object to be migrated.

[0075] For example, see reference Figure 2 , Figure 2 This is a schematic diagram of object storage data migration according to an embodiment of this application, as shown below. Figure 2 As shown, the user sends a data migration command to the command-line tool. The command-line tool calls SDK component C to retrieve data from object storage service C and stores it in the client's local cache. The command-line tool then calls SDK component A provided by service provider A to store the data from the client's local cache in object storage service A. After the migration is complete, a migration result response is sent to inform the user that the migration is finished.

[0076] In this embodiment, this operation process can also be integrated into automated deployment and CI / CD (Continuous Integration, Continuous Delivery / Continuous Deployment) to empower multi-cloud platforms. Enterprises can use this tool to implement data backup and disaster recovery plans, and through simple automation customization, back up data from one object storage service to another service or a self-deployed storage system, ensuring data redundancy and recoverability.

[0077] In another embodiment of this application, the method further includes: S71: If an error occurs while calling the target object storage service, perform error handling.

[0078] In this embodiment, if an error occurs when calling the target object storage service, an error message is displayed, including the reason for the error and the time when the error occurred.

[0079] For example, the error message indicates a network disconnection.

[0080] S72: Record the call process corresponding to the target object storage service to the log.

[0081] In this embodiment, during the invocation of the target object storage service, the invocation process corresponding to the target object storage service is recorded in the log, which facilitates the administrator to perform invocation analysis and improve the functionality of each module in the command line tool.

[0082] In this embodiment, an error is reported when an error occurs during the object storage service call, and the object storage service process is recorded in the log to facilitate the improvement of each functional module and enhance the user experience.

[0083] In another embodiment of this application, when using the tool, users can directly run independent executable files through command line commands, and can perform automated configuration through pre-written automated scripts, which is very useful in batch automated deployment scenarios (such as CI / CD). Alternatively, users can perform manual operations in a more visual way through the TUI interface. In all of the above ways, the software development kit components can be called through the command line tool.

[0084] In another embodiment of this application, developers may need to interact with multiple object storage services during development and testing. A unified command-line tool can greatly simplify this process, reducing learning and maintenance costs. This tool can also be integrated into automation scripts and CI / CD pipelines to achieve automated data management and operations.

[0085] This invention allows development teams to integrate object storage from multiple cloud service providers, providing mutual disaster recovery and backup. Because the invention itself assumes the responsibility of maintaining SDK versions and is a dependency-free, standalone executable, development teams can save on version management and compatibility testing costs. Furthermore, due to the consistent operation of the invention, a unified solution can be used to handle data from multiple service providers when building automated processes for CI / CD.

[0086] In another embodiment of this application, the command-line tool can also reduce the time cost for operations and maintenance personnel to locate problems. Since the invention itself is a dependency-free, standalone executable file, operations and maintenance personnel can easily write automation scripts for it and use pipe operators to coordinate with other tools to call various object storage services and locate the fault. Furthermore, the invention provides a TUI interface, allowing operations and maintenance personnel to locate problems in a more visual way, reducing their learning curve.

[0087] For ordinary users, it can replace commonly provided SDKs and CLI tools, offering a unified and easy-to-use operating experience. When users need to migrate object storage data, it also provides a cross-platform, cross-service provider, and cross-regional solution to be compatible with various data migration scenarios.

[0088] In another embodiment of this application, if a new provider SDK needs to be added, only the provider SDK needs to be adapted and integrated into the command-line tool. There is no need to modify the core logic of the command-line tool, which is beneficial to the flexible expansion of the command-line tool.

[0089] refer to Figure 3 , Figure 3 This is a flowchart of an object storage service management process proposed in an embodiment of this application, such as... Figure 3 As shown, users can use command-line tools through manual operation via command line, manual operation via TUI, automated operation via command-line script, and CI / CD operation. Command-line tools can execute corresponding object storage services through SDK components provided by various providers.

[0090] In the embodiments described above, a unified command-line management scheme is used, which has a low barrier to entry and can be easily adopted by ordinary users, while also reducing the access costs for developers. Centralized encrypted credential management for various scenarios, such as multiple object storage service providers, different object storage accounts, and different object storage regions, reduces the credential management costs for users and provides a mature multi-user credential management solution to address various usage scenarios for both ordinary users and developers. A TUI mode is provided to further lower the barrier to entry for ordinary users. It also facilitates operations and maintenance personnel in managing object storage services or viewing logs in a more visual way. By using the client as a relay node, data migration of object storage across service providers, accounts, and resource pools can be easily achieved. Unified command-line operation parameters are provided, reducing the complexity of CI / CD integration across multiple cloud platforms and improving deployment consistency and repeatability.

[0091] In the embodiments described above, users do not need to learn different commands and operation methods for each object storage service. They can efficiently manage and operate multiple object storage services through a unified interface, reducing learning costs and operational complexity. The adapter pattern makes the tool easy to extend, allowing for rapid integration of new object storage service providers and exhibiting good scalability.

[0092] In the embodiments described above, a cross-service provider data migration module was designed, allowing users to migrate data between different object storage services. This solution can be operated entirely via command line and integrates well with other tools and pipelines, making full-process automation possible. This approach offers high data freedom, allowing users to freely choose and change object service providers without being bound to a single provider. The automated migration solution reduces manual intervention and operational errors, lowering the complexity of data migration.

[0093] In the embodiments described above, this application is highly compatible with CI / CD, seamlessly integrating into continuous integration and continuous deployment (CI / CD) environments via a command-line interface. It supports authentication, ensuring security and compliance within the CI / CD environment. Detailed logging and error handling mechanisms are provided to facilitate problem tracking and troubleshooting during the CI / CD process.

[0094] It should be noted that the object storage management method provided in this application embodiment can be executed by an object storage management device, or a control module within the object storage management device for executing the loading object storage management method. This application embodiment uses the execution of the loading object storage management method by an object storage management device as an example to illustrate the object storage management method provided in this application embodiment.

[0095] refer to Figure 4 , Figure 4 This is a schematic diagram of an object storage management device 400 according to an embodiment of this application, as shown below. Figure 4 As shown, the device includes: The operation instruction parsing module is used to parse the command line operation instructions input by the user and determine the target object storage service corresponding to the command line operation instructions. The software development kit (SDK) component invocation module is used to determine the SSD component corresponding to the target object storage service. The object storage service invocation module is used to invoke the target object storage service through the software development kit component.

[0096] Optionally, the operation instruction parsing module includes: The field reading submodule is used to read the fields in the command line operation instructions to determine the provider name and service content corresponding to the command line instructions; The object storage service determination submodule is used to determine the target object storage service corresponding to the command-line operation based on the provider name and the service content.

[0097] Optionally, the software development kit component calling module includes: The list reading submodule is used to call up a list of software development kit components; The component search submodule is used to search for the software development kit component corresponding to the target object storage service in the software development kit component list.

[0098] Optionally, the object storage service call includes: The service interface call submodule is used to call the service interfaces provided by the software development kit components; The object storage service invocation submodule is used to invoke the target object storage service through the service interface.

[0099] Optionally, the device further includes: The identity credential lookup module is used to search for the identity credential corresponding to the provider name in the identity credential list based on the provider name corresponding to the software development kit component. The identity credential decryption module is used to decrypt the identity credential based on the key preset by the user. An authentication module is used to authenticate the identity through the software development kit components using the decrypted identity credentials.

[0100] Optionally, the device further includes: The object determination module is used to determine the outgoing object and the incoming object corresponding to the data migration instruction when the user issues a data migration instruction. The target data acquisition module is used to call the corresponding object storage service through the software development kit component corresponding to the migrated object to acquire the target data; The data caching module is used to store the target data in a local cache; The data migration module is used to call the corresponding object storage service through the software development kit component corresponding to the migration object, and store the target data in the local cache into the migration object.

[0101] The object storage management device in this application embodiment can be a device, or a component, integrated circuit, or chip in a terminal. The device can be a mobile electronic device or a non-mobile electronic device. For example, mobile electronic devices can be mobile phones, tablets, laptops, PDAs, in-vehicle electronic devices, wearable devices, ultra-mobile personal computers (UMPCs), netbooks, or personal digital assistants (PDAs), etc., while non-mobile electronic devices can be servers, network attached storage (NAS), personal computers (PCs), televisions (TVs), ATMs, or self-service machines, etc. This application embodiment does not impose specific limitations.

[0102] The object storage management device in this application embodiment can be a device with an operating system. This operating system can be Android, iOS, or other possible operating systems; this application embodiment does not specifically limit the specific operating system used.

[0103] The object storage management device provided in this application embodiment can achieve... Figures 1 to 3 The various processes implemented by the object storage management device in the method embodiments will not be described again here to avoid repetition.

[0104] Optionally, this application embodiment also provides an electronic device, including a processor 110, a memory 109, and a program or instructions stored in the memory 109 and executable on the processor 110. When the program or instructions are executed by the processor 110, they implement the various processes of the above-described object storage management method embodiment and achieve the same technical effect. To avoid repetition, they will not be described again here.

[0105] It should be noted that the electronic devices in the embodiments of this application include the mobile electronic devices and non-mobile electronic devices described above.

[0106] Figure 5 This is a schematic diagram of the hardware structure of an electronic device proposed in an embodiment of this application. The electronic device 100 includes, but is not limited to, components such as: radio frequency unit 101, network module 102, audio output unit 103, input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, and processor 110.

[0107] Those skilled in the art will understand that the electronic device 100 may also include a power supply (such as a battery) for supplying power to various components. The power supply may be logically connected to the processor 110 through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system. Figure 5 The electronic device structure shown does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown, or combine certain components, or have different component arrangements, which will not be elaborated here. This application also provides a readable storage medium storing a program or instructions. When the program or instructions are executed by a processor, they implement the various processes of the above-described object storage management method embodiments and achieve the same technical effects. To avoid repetition, they will not be described again here.

[0108] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.

[0109] This application embodiment also provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the various processes of the above-described object storage management method embodiments and can achieve the same technical effect. To avoid repetition, it will not be described again here.

[0110] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.

[0111] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.

[0112] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in the various embodiments of this application.

[0113] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.

Claims

1. An object storage management method, characterized in that, The method includes: The command-line operation instructions input by the user are parsed to determine the target object storage service corresponding to the command-line operation instructions; Identify the software development kit components corresponding to the target object storage service; The target object storage service is invoked through the software development kit component.

2. The object storage management method according to claim 1, characterized in that, The step of parsing the command-line operation instructions input by the user and determining the target object storage service corresponding to the command-line operation instructions includes: Read the fields in the command line operation instructions to determine the provider name and service content corresponding to the command line instructions; Based on the provider name and the service content, determine the target object storage service corresponding to the command-line operation.

3. The object storage management method according to claim 1, characterized in that, The step of determining the software development kit component corresponding to the target object storage service includes: Call the list of software development kit components; Locate the software development kit (SDK) component corresponding to the target object storage service in the list of software development kit components.

4. The object storage management method according to claim 1, characterized in that, The step of calling the target object storage service through the software development kit component includes: Call the service interface provided by the software development kit component; The target object storage service is invoked through the service interface.

5. The object storage management method according to claim 1, characterized in that, Before invoking the target object storage service through the software development kit component, the method further includes: Based on the provider name corresponding to the software development kit component, search for the identity credential corresponding to the provider name in the identity credential list; The identity credential is decrypted using the key pre-set by the user; The identity credentials are authenticated through the software development kit components after being decrypted.

6. The object storage management method according to claim 1, characterized in that, The method further includes: When the user issues a data migration instruction, determine the migration-out object and the migration-in object corresponding to the data migration instruction; The target data is obtained by calling the corresponding object storage service through the software development kit component corresponding to the object being migrated out. Store the target data in a local cache; The target data in the local cache is stored in the imported object by calling the corresponding object storage service through the software development kit component corresponding to the imported object.

7. The object storage management method according to claim 1, characterized in that, The method further includes: If an error occurs while calling the target object storage service, error handling will be performed; The call process corresponding to the target object storage service is recorded in the log.

8. An object storage management device, characterized in that, The device includes: The operation instruction parsing module is used to parse the command line operation instructions input by the user and determine the target object storage service corresponding to the command line operation instructions. The software development kit (SDK) component invocation module is used to determine the SSD component corresponding to the target object storage service. The object storage service invocation module is used to invoke the target object storage service through the software development kit component.

9. An electronic device, characterized in that, It includes a processor, a memory, and a program or instructions stored in the memory and executable on the processor, wherein the program or instructions, when executed by the processor, implement the steps of any of the methods described in claims 1-7.

10. A readable storage medium, characterized in that, The readable storage medium stores a program or instructions that, when executed by a processor, implement the steps of any of the methods described in claims 1-7.