Top | ![]() |
![]() |
![]() |
![]() |
A SnapdAssertion represents an digitally signed documents that express a
fact or policy by a particular authority about a particular object in the
snap universe. Assertions can be queried using
snapd_client_get_assertions_sync()
.
SnapdAssertion *
snapd_assertion_new (const gchar *content
);
Create a new assertion.
gchar * snapd_assertion_get_header (SnapdAssertion *assertion
,const gchar *name
);
Get a header from an assertion.
gchar **
snapd_assertion_get_headers (SnapdAssertion *assertion
);
Get the headers provided by this assertion.
gchar *
snapd_assertion_get_body (SnapdAssertion *assertion
);
Get the body of the assertion.
gchar *
snapd_assertion_get_signature (SnapdAssertion *assertion
);
Get the signature of the assertion.
typedef struct _SnapdAssertion SnapdAssertion;
SnapdAssertion is an opaque data structure and can only be accessed using the provided functions.
“content”
property“content” gchar *
Assertion content.
Flags: Read / Write / Construct Only
Default value: NULL