Module m_rsc_import

Importing non-authoritative things into the system.

Copyright © 2010 Arjan Scherpenisse

Authors: Arjan Scherpenisse (arjan@scherpenisse.net).

Description

Importing non-authoritative things into the system.

Function Index

create_empty/2Create an empty, non-authoritative resource, with the given uri.
create_empty/3
import/2Import given resource.

Function Details

create_empty/2

create_empty(Uri::string() | binary(), Context::z:context()) -> {ok, m_rsc:resource_id()} | {error, duplicate_uri | term()}

Create an empty, non-authoritative resource, with the given uri.

create_empty/3

create_empty(Uri::string() | binary(), Props::m_rsc:props_all(), Context::z:context()) -> {ok, m_rsc:resource_id()} | {error, duplicate_uri | term()}

import/2

import(RscImport::map() | list(), Context::z:context()) -> {ok, m_rsc:resource_id()} | {error, atom()}

Import given resource. resource must already exist and be non-authoritative. URIs must match.


Generated by EDoc