logo
pub struct DamlPackageManagementService<'a> { /* private fields */ }
Expand description

Query the Daml-LF packages supported by the ledger participant and upload DAR files.

We use ‘backing participant’ to refer to this specific participant in the methods of this API.

Errors

When the participant is run in mode requiring authentication, all the calls in this interface will respond with UNAUTHENTICATED, if the caller fails to provide a valid access token, and will respond with PERMISSION_DENIED, if the claims in the token are insufficient to perform a given operation.

Implementations

Override the JWT token to use for this service.

Returns the details of all Daml-LF packages known to the backing participant.

Upload a DAR file to the backing participant.

Depending on the ledger implementation this might also make the package available on the whole ledger. This call might not be supported by some ledger implementations.

Errors

This method will return UNIMPLEMENTED, if dar package uploading is not supported by the backing participant.

If DAR file is too big or is malformed, the backing participant will respond with INVALID_ARGUMENT.

The maximum supported size is implementation specific. Contains a Daml archive darfile, which in turn is a jar like zipped container for daml-lf archives.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Wrap the input message T in a tonic::Request

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more