pub struct EggfetchTransport { /* private fields */ }Expand description
Production GitHub transport with fixed hosts.
Uses eggfetch-core 0.4.0 with explicit lean features (standard-http1,
tls-rustls, tls-native-roots, json) rather than the default
retry/redirect policy. Retries are disabled and redirects are not followed;
3xx responses fail closed. Bounded timeouts and body sizes apply to every
request. The Debug implementation redacts the credential.
Implementations§
Trait Implementations§
Source§impl Debug for EggfetchTransport
impl Debug for EggfetchTransport
Source§impl GithubApi for EggfetchTransport
impl GithubApi for EggfetchTransport
Source§async fn get_ref(
&self,
owner: &str,
repo: &str,
tag: &str,
) -> Result<RefTarget, GithubError>
async fn get_ref( &self, owner: &str, repo: &str, tag: &str, ) -> Result<RefTarget, GithubError>
Fetch exact
refs/tags/<tag> reference.Source§async fn get_tag(
&self,
owner: &str,
repo: &str,
sha: &str,
) -> Result<TagObject, GithubError>
async fn get_tag( &self, owner: &str, repo: &str, sha: &str, ) -> Result<TagObject, GithubError>
Fetch one annotated tag object by SHA.
Source§async fn list_releases(
&self,
owner: &str,
repo: &str,
page: u32,
) -> Result<Vec<RemoteRelease>, GithubError>
async fn list_releases( &self, owner: &str, repo: &str, page: u32, ) -> Result<Vec<RemoteRelease>, GithubError>
List releases for one page (1-indexed,
per_page=100).Source§async fn create_release(
&self,
owner: &str,
repo: &str,
tag: &str,
title: &str,
body: &str,
prerelease: bool,
) -> Result<RemoteRelease, GithubError>
async fn create_release( &self, owner: &str, repo: &str, tag: &str, title: &str, body: &str, prerelease: bool, ) -> Result<RemoteRelease, GithubError>
Create a new draft release for an exact existing tag.
Source§async fn list_assets(
&self,
owner: &str,
repo: &str,
release_id: u64,
page: u32,
) -> Result<Vec<RemoteAsset>, GithubError>
async fn list_assets( &self, owner: &str, repo: &str, release_id: u64, page: u32, ) -> Result<Vec<RemoteAsset>, GithubError>
List all assets for one release.
Source§async fn upload_asset(
&self,
owner: &str,
repo: &str,
release_id: u64,
name: &str,
file: Box<dyn Read + Send>,
length: u64,
content_type: &str,
) -> Result<RemoteAsset, GithubError>
async fn upload_asset( &self, owner: &str, repo: &str, release_id: u64, name: &str, file: Box<dyn Read + Send>, length: u64, content_type: &str, ) -> Result<RemoteAsset, GithubError>
Upload one asset; 502/422 are reported as errors with
http_502 /
http_422_duplicate prefixes so the caller can apply narrow recovery.Source§async fn delete_asset(
&self,
owner: &str,
repo: &str,
asset_id: u64,
) -> Result<(), GithubError>
async fn delete_asset( &self, owner: &str, repo: &str, asset_id: u64, ) -> Result<(), GithubError>
Delete one asset by id (only the narrow starter recovery may call this).
Auto Trait Implementations§
impl !RefUnwindSafe for EggfetchTransport
impl !UnwindSafe for EggfetchTransport
impl Forget for EggfetchTransport
impl Freeze for EggfetchTransport
impl Move for EggfetchTransport
impl Send for EggfetchTransport
impl Sync for EggfetchTransport
impl Unpin for EggfetchTransport
impl UnsafeUnpin for EggfetchTransport
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