Kantoor.Dav.Share (Kantoor v1.0.0)

A calendar, task list or address book shared with another user of this server. permission is "read" or "write". The grantee sees the collection in their own home as shared-<collection id> (slug/1).

Summary

Functions

The collection id behind a shared slug, or :error.

True when the slug names a shared collection (reserved for shares).

The path segment a shared collection has in the grantee's home.

Types

t()

@type t() :: %Kantoor.Dav.Share{
  __meta__: term(),
  collection_id: term(),
  grantee_id: term(),
  id: term(),
  inserted_at: term(),
  owner_id: term(),
  permission: term(),
  updated_at: term()
}

Functions

collection_id(arg1)

@spec collection_id(String.t()) :: {:ok, Ecto.UUID.t()} | :error

The collection id behind a shared slug, or :error.

shared_slug?(slug)

@spec shared_slug?(term()) :: boolean()

True when the slug names a shared collection (reserved for shares).

slug(collection_id)

@spec slug(Ecto.UUID.t()) :: String.t()

The path segment a shared collection has in the grantee's home.