Skip to main content

kaniop_oauth2/
image.rs

1use crate::crd::OAuth2ClientImageStatus;
2use kaniop_k8s_util::image::ImageStatus;
3
4impl ImageStatus for OAuth2ClientImageStatus {
5    fn url(&self) -> &str {
6        &self.url
7    }
8
9    fn etag(&self) -> Option<&String> {
10        self.etag.as_ref()
11    }
12
13    fn last_modified(&self) -> Option<&String> {
14        self.last_modified.as_ref()
15    }
16
17    fn content_length(&self) -> Option<u64> {
18        self.content_length
19    }
20
21    fn content_hash(&self) -> Option<&str> {
22        self.content_hash.as_deref()
23    }
24}