MCPcopy Create free account
hub / github.com/CodSpeedHQ/codspeed / AuthStatus

Class AuthStatus

src/cli/auth.rs:151–157  ·  view source on GitHub ↗

Outcome of resolving the auth status, before rendering.

Source from the content-addressed store, hash-verified

149
150/// Outcome of resolving the auth status, before rendering.
151struct AuthStatus {
152 session: Option<SessionPayload>,
153 /// `Some(parsed)` when we detected a git remote and tried to look it up;
154 /// the inner `Option<RepositoryOverviewPayload>` is `None` if the repo
155 /// is not on CodSpeed (or we don't have a token to verify it with).
156 detected_repository: Option<(ParsedRepository, Option<RepositoryOverviewPayload>)>,
157}
158
159pub async fn status(api_client: &CodSpeedAPIClient, config: &CodSpeedConfig) -> Result<()> {
160 let has_token = config.auth.token.is_some();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected