
Pod represents a module of Types. Pods serve as a type namespace as well as unit of deployment and versioning.
Slots
- depends
-
Depend[] depends()
Get the declared list of dependencies for this pod.
- facet
-
Obj facet(Str name, Obj def := null)
Get a facet by name, or return the
def
is the facet is not defined. See the Facets Doc for details. - facets
-
Return all the facets defined for this pod or an empty map if no facets are defined. See the Facets Doc for details.
- files
-
Get the map of all the resource files contained by this pod. Resources are any files included in the pod's zip file excluding fcode files. The files are keyed by their Uri relative to the root of the pod zip file.
- find
-
static Pod find(Str name, Bool checked := true)
Find a pod by name. If the pod doesn't exist and checked is false then return null, otherwise throw UnknownPodErr.
- findType
-
Type findType(Str name, Bool checked := true)
Find a type by name. If the type doesn't exist and checked is false then return null, otherwise throw UnknownTypeErr.
- list
-
static Pod[] list()
Get a list of all the pods installed. Note that currently this method will load all of the pods into memory, so it is an expensive operation.
- load
-
Load a pod into memory from the specified input stream. The stream must contain a valid pod zip file with the all the definitions. The pod is completely loaded into memory and the input stream is closed. The pod cannot have resources. The pod name as defined by
/pod.def
must be uniquely named or Err is thrown. - log
-
Log log()
Return the log for this pod's name. This is a convenience for
Log.get(name)
. Also seeType.log
. -
new make()
Private constructor.
- name
-
Str name()
Simple name of the pod such as "sys".
- toStr
-
override Str toStr()
Always return name().
- types
-
Type[] types()
List of the all defined types.
- version
-
Version version()
Version number for this pod.