pub struct GithubJobLogFetcher<C> { /* private fields */ }Expand description
Attempt-scoped log fetcher over an injected no-auto-redirect HTTPS client.
Implementations§
Source§impl<C> GithubJobLogFetcher<C>
impl<C> GithubJobLogFetcher<C>
Sourcepub const fn new(client: C, limits: GithubJobLogLimits) -> Self
pub const fn new(client: C, limits: GithubJobLogLimits) -> Self
Bind one client to explicit hard limits.
Sourcepub fn into_client(self) -> C
pub fn into_client(self) -> C
Recover the adapter, including captured requests in tests.
Source§impl<C: GithubJobLogHttpClient> GithubJobLogFetcher<C>
impl<C: GithubJobLogHttpClient> GithubJobLogFetcher<C>
Sourcepub fn fetch_attempt(
&mut self,
identity: &GithubRunAttemptLogIdentity,
cancellation: &CancellationToken,
) -> Result<GithubJobLogPoll, GithubJobLogError>
pub fn fetch_attempt( &mut self, identity: &GithubRunAttemptLogIdentity, cancellation: &CancellationToken, ) -> Result<GithubJobLogPoll, GithubJobLogError>
Fetch and sanitize every per-job plain-text log for one exact run attempt.
Metadata is obtained only through
GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt}/jobs.
Each body begins at exactly
GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs, must return 302,
and is followed only to the fixed HTTPS host allowlist without credentials.
§Errors
Fails closed on identity drift, incomplete pagination, redirect-policy violations, response bounds, cancellation, deadlines, or malformed bytes.
Auto Trait Implementations§
impl<C> Freeze for GithubJobLogFetcher<C>where
C: Freeze,
impl<C> RefUnwindSafe for GithubJobLogFetcher<C>where
C: RefUnwindSafe,
impl<C> Send for GithubJobLogFetcher<C>where
C: Send,
impl<C> Sync for GithubJobLogFetcher<C>where
C: Sync,
impl<C> Unpin for GithubJobLogFetcher<C>where
C: Unpin,
impl<C> UnsafeUnpin for GithubJobLogFetcher<C>where
C: UnsafeUnpin,
impl<C> UnwindSafe for GithubJobLogFetcher<C>where
C: UnwindSafe,
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