Struct sit_core::repository::Repository [] [src]

pub struct Repository { /* fields omitted */ }

Repository is the container for all SIT artifacts

Methods

impl Repository
[src]

[src]

Attempts creating a new repository. Fails with Error::AlreadyExists if a repository already exists.

[src]

Attempts creating a new repository with a specified config. Fails with Error::AlreadyExists if a repository already exists.

[src]

Opens an existing repository. Fails if there's no valid repository at the given path

[src]

Opens and, if necessary, upgrades an existing repository. Allow to specify which particular upgrades should be allowed.

Fails if there's no valid repository at the given path.

[src]

Given relative path of path (such as ".sit"), finds a repository in a directory or above

[src]

Populates repository with default files

[src]

Returns repository path

[src]

Returns items path

[src]

Returns repository's config

[src]

Returns an unordered (as in "order not defined") item iterator

[src]

Creates and returns a new item with a unique ID

[src]

Creates and returns a new item with a specific name. Will fail if there's an item with the same name.

[src]

Returns path to modules. The target directory may not exist.

[src]

Returns an iterator over the list of modules (directories under modules directory)

Trait Implementations

impl Debug for Repository
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Repository

impl Sync for Repository