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

Class AuthStatus

src/cli/auth.rs:149–155  ·  view source on GitHub ↗

Outcome of resolving the auth status, before rendering.

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected