pub struct GitLabRunnerClient { /* private fields */ }Implementations§
Trait Implementations§
Source§impl RunnerClient for GitLabRunnerClient
impl RunnerClient for GitLabRunnerClient
fn list(&self, owner: &str, repo: &str) -> Result<Vec<Runner>>
fn show(&self, _owner: &str, _repo: &str, id: &str) -> Result<Runner>
fn remove(&self, _owner: &str, _repo: &str, id: &str) -> Result<()>
Source§fn reset_token(&self, _owner: &str, _repo: &str, id: &str) -> Result<String>
fn reset_token(&self, _owner: &str, _repo: &str, id: &str) -> Result<String>
Reset the runner’s authentication token; returns the new token
the operator must paste into the runner’s config.
fn pause(&self, owner: &str, repo: &str, id: &str) -> Result<()>
fn resume(&self, owner: &str, repo: &str, id: &str) -> Result<()>
Source§fn registration_token(
&self,
owner: &str,
repo: &str,
) -> Result<RegistrationToken>
fn registration_token( &self, owner: &str, repo: &str, ) -> Result<RegistrationToken>
Obtain a short-lived registration token.
torii runner register
uses it to wrap the platform’s CLI (gitlab-runner register,
./config.sh on GitHub Actions). Returns (token, register_url) —
the URL is the value the CLI wants for its --url arg.Auto Trait Implementations§
impl Freeze for GitLabRunnerClient
impl RefUnwindSafe for GitLabRunnerClient
impl Send for GitLabRunnerClient
impl Sync for GitLabRunnerClient
impl Unpin for GitLabRunnerClient
impl UnsafeUnpin for GitLabRunnerClient
impl UnwindSafe for GitLabRunnerClient
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more