pub struct GitHubRunnerClient { /* private fields */ }Implementations§
Trait Implementations§
Source§impl RunnerClient for GitHubRunnerClient
impl RunnerClient for GitHubRunnerClient
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 GitHubRunnerClient
impl RefUnwindSafe for GitHubRunnerClient
impl Send for GitHubRunnerClient
impl Sync for GitHubRunnerClient
impl Unpin for GitHubRunnerClient
impl UnsafeUnpin for GitHubRunnerClient
impl UnwindSafe for GitHubRunnerClient
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