NAME

cs::Legato::Networker::Resource - a resource in Legato's Networker backup system


SYNOPSIS

use cs::Legato::Networker::Resource;


DESCRIPTION

The cs::Legato::Networker::Resource module accesses the Legato resource database.


GENERAL FUNCTIONS

loadResourceFile(filename)

Open the named resource file (eg ``/nsr/res/nsr.res'') and read its contents. Return a hash keyed on the aliases for each record.

loadResourceHandle(handle,filename)

Read the contents of an open file handle attached to a resource file. Return a hash keyed on the aliases for each record.

getResource()

Return the hash of this system's resources.

allIDs()

Return all resource identifiers in the default resource set.

allAliases

Return all alias names in the default resource set. This list is has no repeats.


OBJECT ACCESS

byID(id)

Return a cs::Legato::Networker::Resource object given its resource identifier.

byAlias(alias)

Return a cs::Legato::Networker::Resource object given its alias name. In an array context, all resources with that alias are returned. In a scalar context, if multiple resources have the same alias one is chosen arbitrarily.


OBJECT METHODS


SEE ALSO

cs::Legato::Networker(3)


AUTHOR

Cameron Simpson <cs@zip.com.au>