Beispiel #1
0
    def take_action(self, parsed_args):
        self.log.debug("take_action(%s)", parsed_args)

        lib_object.save_object(
            self.app.client_manager.session,
            self.app.client_manager.object_store.endpoint,
            parsed_args.container,
            parsed_args.object,
            parsed_args.file,
        )
    def take_action(self, parsed_args):
        self.log.debug("take_action(%s)", parsed_args)

        lib_object.save_object(
            self.app.client_manager.session,
            self.app.client_manager.object_store.endpoint,
            parsed_args.container,
            parsed_args.object,
            parsed_args.file,
        )
Beispiel #3
0
def save_container(session, url, container):
    """Save all the content from a container

    :param session: an authenticated keystoneclient.session.Session object
    :param url: endpoint
    :param container: name of container to save
    """

    objects = object_lib.list_objects(session, url, container)
    for object in objects:
        object_lib.save_object(session, url, container, object['name'])
def save_container(
    session,
    url,
    container
):
    """Save all the content from a container

    :param session: an authenticated keystoneclient.session.Session object
    :param url: endpoint
    :param container: name of container to save
    """

    objects = object_lib.list_objects(session, url, container)
    for object in objects:
        object_lib.save_object(session, url, container, object['name'])