Trait medea_control_api_proto::grpc::api::control_api_server::ControlApi [−][src]
pub trait ControlApi: Send + Sync + 'static {
fn create<'life0, 'async_trait>(
&'life0 self,
request: Request<CreateRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<CreateResponse>, Status>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait;
fn delete<'life0, 'async_trait>(
&'life0 self,
request: Request<IdRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<Response>, Status>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait;
fn get<'life0, 'async_trait>(
&'life0 self,
request: Request<IdRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<GetResponse>, Status>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait;
fn apply<'life0, 'async_trait>(
&'life0 self,
request: Request<ApplyRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<CreateResponse>, Status>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait;
}Expand description
Generated trait containing gRPC methods that should be implemented for use with ControlApiServer.
Required methods
Creates new Element with a given ID.
Not idempotent. Errors if an Element with the same ID already exists.
Removes Element by its ID. Allows referring multiple Elements on the last two levels.
Idempotent. If no Elements with such IDs exist, then succeeds.
Returns Element by its ID. Allows referring multiple Elements. If no ID specified, returns all Elements declared.
Applies the given spec to Element by its ID.
Idempotent. If no Element with such ID exists, then it will be created, otherwise it will be reconfigured. Elements that exist, but are not specified in the provided spec will be removed.