package gitlab

  1. Overview
  2. Docs

The Scope module abstracts GitLab's authorization scopes.

val to_string : Gitlab_t.scope -> string

to_string scope is the string GitLab uses to indicate the scope constructor scope.

val of_string : string -> Gitlab_t.scope option

scope_of_string scope is the constructor corresponding to the GitLab scope constructor scope if one exists.

val list_to_string : Gitlab_t.scope list -> string

string_of_scopes scopes is the serialization for a list of scopes scopes which GitLab accepts as a set of scopes in its API.

val list_of_string : string -> Gitlab_t.scope list option

scopes_of_string scopes are the scope constructors corresponding to the serialized list of constructors scopes.

val all : Gitlab_t.scope list

all is a list containing every scope constructor known.