NAME

Resource::Silo::Metadata - resource container metadata for Resource::Silo.

DESCRIPTION

This class stores information about available resources in a specific container class. Normally only used internally.

See also "meta" in Resource::Silo.

METHODS

new( $target )

$target is the name of the module where resource access methods will be created.

add( $resource_name, ... )

Create resource type. See "resource" in Resource::Silo for details.

list

Returns a list (or arrayref in scalar context) containing the names of known resources.

The order is not guaranteed.

EXPERIMENTAL. Return value structure is subject to change.

show( $name )

Returns a shallow copy of resource specification.

EXPERIMENTAL. Return value structure is subject to change.

self_check()

Check setup validity. Dies on errors, return $self otherwise.

The following checks are available so far:

  • dependencies must be defined;

  • required modules must be loadable.

EXPERIMENTAL. Interface & performed checks may change in the future.

COPYRIGHT AND LICENSE

Copyright (c) 2023, Konstantin Uvarin, <khedin@gmail.com>

This program is free software. You can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation, or the Artistic License.

See http://dev.perl.org/licenses/ for more information.