Struct gitlab_api::gitlab::GitLab
[−]
[src]
pub struct GitLab { /* fields omitted */ }
Methods
impl GitLab
[src]
fn _new(scheme: &str, domain: &str, port: u16, private_token: &str) -> GitLab
fn new_insecure(domain: &str, private_token: &str) -> GitLab
fn new(domain: &str, private_token: &str) -> GitLab
fn build_url(&self, query: &str) -> String
Build a URL used to access GitLab instance, including some parameters.
Examples
Example from GitLab: https://docs.gitlab.com/ce/api/#basic-usage
use gitlab_api::GitLab; let expected_url = "https://gitlab.example.com:\ 443/api/v3/groups?order_by=path&private_token=XXXXXXXXXXXXX"; let gl = GitLab::new("gitlab.example.com", "XXXXXXXXXXXXX"); assert_eq!(gl.build_url("groups?order_by=path"), expected_url);