l.s.m.snapstoreclient : module documentation

Part of lp.snappy.model

Communication with the snap store.
Class LibraryFileAliasWrapper A LibraryFileAlias wrapper usable with a MultipartEncoder.
Class InvalidStoreSecretsError Undocumented
Class MacaroonAuth Attaches macaroon authentication to a given Request object.
Class SnapStoreClient A client for the API provided by the snap store.
Function _get_discharge_macaroon_raw Get the serialised discharge macaroon for a snap, if any.
Function _set_discharge_macaroon_raw Set the serialised discharge macaroon for a snap.
def _get_discharge_macaroon_raw(snap):
Get the serialised discharge macaroon for a snap, if any.

This copes with either unencrypted (the historical default) or encrypted macaroons.

def _set_discharge_macaroon_raw(snap, discharge_macaroon_raw):
Set the serialised discharge macaroon for a snap.

The macaroon is encrypted if possible.

API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.