FusionInventory::Agent::Storage man page on Fedora

Man page or keyword search:  
man Server   31170 pages
apropos Keyword Search (all sections)
Output format
Fedora logo
[printable version]

FusionInventory::AgentUseroContributed Perl FusionInventory::Agent::Storage(3)

NAME
       FusionInventory::Agent::Storage - the light data storage API. Data will
       be stored in a subdirectory in the 'vardir' directory. This
       subdirectory depends on the caller module name.

SYNOPSIS
	 my $storage = FusionInventory::Agent::Storage->new({
	     target => {
		 vardir => $ARGV[0],
	     }
	 });
	 my $data = $storage->restore({
		 module => "FusionInventory::Agent"
	     });

	 $data->{foo} = 'bar';

	 $storage->save({ data => $data });

DESCRIPTION
       This module is a wrapper for restore and save.  it called $inventory in
       general.

       new({ config => $config, target => $target })
	   Create the object

       save({ data => $date, idx => $ref })
	   Save the reference.	$idx is an integer. You can use it if you want
	   to save more than one file for the module. This number will be
	   added at the of the file.

       restore({ module => $module, idx => $idx})
	   Returns a reference to the stored data. If $idx is defined, it will
	   open this substorage.

       remove({ module => $module, idx => $idx })
	   Returns the files stored on the filesystem for the module $module
	   or for the caller module.  If $idx is defined, only the submodule
	   $idx will be removed.

       removeAll({ module => $module, idx => $idx })
	   Deletes the files stored on the filesystem for the module $module
	   or for the caller module.

       removeSubDumps({ module => $module })
	   Deletes the sub files stored on the filesystem for the module
	   $module or for the caller module.

perl v5.14.2			  2012-02-22FusionInventory::Agent::Storage(3)
[top]

List of man pages available for Fedora

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net