Skip to main content

Access

Type Alias Access 

Source
pub type Access = Level;
Expand description

A grant level, ordered. Admin implies Write implies Read.

The ordering is what lets command::SERVICES record the level each verb requires and the dispatch compare rather than match, so adding a third verb (LFS over SSH) cannot forget a case. See gunnar_core::Level::permits.

Aliased Type§

pub enum Access {
    Read,
    Write,
    Admin,
}

Variants§

§

Read

git-upload-pack: clone and fetch.

§

Write

git-receive-pack: push. Implies [Level::Read].

§

Admin

Administer the repository, namespace or server. Implies [Level::Write].