pub struct ReleaseStore { /* private fields */ }Expand description
A read-only view of the releases stored in one namespace.
Implementations§
Source§impl ReleaseStore
impl ReleaseStore
Sourcepub fn new(client: Client, namespace: impl Into<String>) -> Self
pub fn new(client: Client, namespace: impl Into<String>) -> Self
A store over the Secrets of namespace.
Sourcepub fn with_driver(self, driver: Driver) -> Self
pub fn with_driver(self, driver: Driver) -> Self
Reads from driver instead of Secrets.
Sourcepub async fn get(
&self,
name: &str,
revision: Option<Revision>,
) -> Result<Option<Release>, Error>
pub async fn get( &self, name: &str, revision: Option<Revision>, ) -> Result<Option<Release>, Error>
One revision of a release, or the latest when revision is None; None if it does not
exist.
Sourcepub async fn history(&self, name: &str) -> Result<Vec<Release>, Error>
pub async fn history(&self, name: &str) -> Result<Vec<Release>, Error>
Every revision of a release, oldest first (the Storage.History query).
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ReleaseStore
impl !UnwindSafe for ReleaseStore
impl Forget for ReleaseStore
impl Freeze for ReleaseStorewhere
*const ArcInner<Chan<Message<Request<Body>, Pin<Box<dyn Future<Output = Result<Response<Body>, Box<dyn Error + Sync + Send>>> + Send>>>, Semaphore>> is !null: Freeze,
PhantomData<ArcInner<Chan<Message<Request<Body>, Pin<Box<dyn Future<Output = Result<Response<Body>, Box<dyn Error + Sync + Send>>> + Send>>>, Semaphore>>>: Freeze,
*const dyn Future<Output = Result<OwnedPermit<Message<Request<Body>, Pin<Box<dyn Future<Output = Result<Response<Body>, Box<dyn Error + Sync + Send>>> + Send>>>>, PollSendError<Message<Request<Body>, Pin<Box<dyn Future<Output = Result<Response<Body>, Box<dyn Error + Sync + Send>>> + Send>>>>>> + Send is !null: Freeze,
PhantomData<dyn Future<Output = Result<OwnedPermit<Message<Request<Body>, Pin<Box<dyn Future<Output = Result<Response<Body>, Box<dyn Error + Sync + Send>>> + Send>>>>, PollSendError<Message<Request<Body>, Pin<Box<dyn Future<Output = Result<Response<Body>, Box<dyn Error + Sync + Send>>> + Send>>>>>> + Send>: Freeze,
*const ArcInner<Mutex<Option<ServiceError>>> is !null: Freeze,
PhantomData<ArcInner<Mutex<Option<ServiceError>>>>: Freeze,
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
impl Move for ReleaseStore
impl Send for ReleaseStorewhere
Arc<Chan<Message<Request<Body>, Pin<Box<dyn Future<Output = Result<Response<Body>, Box<dyn Error + Sync + Send>>> + Send>>>, Semaphore>>: Send,
BoxRaw<dyn Future<Output = Result<OwnedPermit<Message<Request<Body>, Pin<Box<dyn Future<Output = Result<Response<Body>, Box<dyn Error + Sync + Send>>> + Send>>>>, PollSendError<Message<Request<Body>, Pin<Box<dyn Future<Output = Result<Response<Body>, Box<dyn Error + Sync + Send>>> + Send>>>>>> + Send>: Send,
Arc<Mutex<Option<ServiceError>>>: Send,
RawVecInner: Send,
impl Sync for ReleaseStorewhere
Arc<Chan<Message<Request<Body>, Pin<Box<dyn Future<Output = Result<Response<Body>, Box<dyn Error + Sync + Send>>> + Send>>>, Semaphore>>: Sync,
ReusableBoxFuture<'static, Result<OwnedPermit<Message<Request<Body>, Pin<Box<dyn Future<Output = Result<Response<Body>, Box<dyn Error + Sync + Send>>> + Send>>>>, PollSendError<Message<Request<Body>, Pin<Box<dyn Future<Output = Result<Response<Body>, Box<dyn Error + Sync + Send>>> + Send>>>>>>: Sync,
Arc<Mutex<Option<ServiceError>>>: Sync,
RawVecInner: Sync,
impl Unpin for ReleaseStorewhere
Arc<Chan<Message<Request<Body>, Pin<Box<dyn Future<Output = Result<Response<Body>, Box<dyn Error + Sync + Send>>> + Send>>>, Semaphore>>: Unpin,
Box<dyn Future<Output = Result<OwnedPermit<Message<Request<Body>, Pin<Box<dyn Future<Output = Result<Response<Body>, Box<dyn Error + Sync + Send>>> + Send>>>>, PollSendError<Message<Request<Body>, Pin<Box<dyn Future<Output = Result<Response<Body>, Box<dyn Error + Sync + Send>>> + Send>>>>>> + Send>: Unpin,
Arc<Mutex<Option<ServiceError>>>: Unpin,
*const u8 is !null: Unpin,
impl UnsafeUnpin for ReleaseStorewhere
*const ArcInner<Chan<Message<Request<Body>, Pin<Box<dyn Future<Output = Result<Response<Body>, Box<dyn Error + Sync + Send>>> + Send>>>, Semaphore>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Chan<Message<Request<Body>, Pin<Box<dyn Future<Output = Result<Response<Body>, Box<dyn Error + Sync + Send>>> + Send>>>, Semaphore>>>: UnsafeUnpin,
*const dyn Future<Output = Result<OwnedPermit<Message<Request<Body>, Pin<Box<dyn Future<Output = Result<Response<Body>, Box<dyn Error + Sync + Send>>> + Send>>>>, PollSendError<Message<Request<Body>, Pin<Box<dyn Future<Output = Result<Response<Body>, Box<dyn Error + Sync + Send>>> + Send>>>>>> + Send is !null: UnsafeUnpin,
PhantomData<dyn Future<Output = Result<OwnedPermit<Message<Request<Body>, Pin<Box<dyn Future<Output = Result<Response<Body>, Box<dyn Error + Sync + Send>>> + Send>>>>, PollSendError<Message<Request<Body>, Pin<Box<dyn Future<Output = Result<Response<Body>, Box<dyn Error + Sync + Send>>> + Send>>>>>> + Send>: UnsafeUnpin,
*const ArcInner<Mutex<Option<ServiceError>>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Mutex<Option<ServiceError>>>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> ServiceExt for T
impl<T> ServiceExt for T
Source§fn map_response_body<F>(self, f: F) -> MapResponseBody<Self, F>where
Self: Sized,
fn map_response_body<F>(self, f: F) -> MapResponseBody<Self, F>where
Self: Sized,
Apply a transformation to the response body. Read more
Source§fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
High level tracing that classifies responses using HTTP status codes. Read more
Source§fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
High level tracing that classifies responses using gRPC headers. Read more