C++17 API¶
The C++ wrapper is header-only and owns values copied from the C ABI.
Defines
-
POSTPROJECT_HAS_EXCEPTIONS¶
-
POSTPROJECT_DETAIL_CONCAT_(left, right)¶
-
POSTPROJECT_DETAIL_CONCAT(left, right)¶
-
POSTPROJECT_TRY(expression)¶
-
POSTPROJECT_TRY_ASSIGN(declaration, expression)¶
-
namespace postproject¶
Typedefs
-
using ActivityEdgeInput = std::variant<RepresentationId, std::pair<RepresentationId, std::string>>¶
-
using ArtifactReasonPayload = std::variant<ArtifactProducerMissing, ArtifactProducerAmbiguous, ArtifactSnapshotAbsent, ArtifactFingerprintEvidenceMissing, ArtifactFingerprintChanged, ArtifactFingerprintRecomputationPending, ArtifactUpstreamNotCurrent, ArtifactTraversalTruncated, ArtifactDependencySnapshotAbsent, ArtifactDependencyKnowledgeIncomplete, ArtifactDependencyPathChanged, ArtifactDependencyFingerprintChanged, ArtifactDependencyFingerprintRecomputationPending, ArtifactDependencyFingerprintEvidenceMissing>¶
-
using ArtifactReason = ArtifactReasonValue¶
-
using ArtifactReproducibilityIssue = std::variant<ReproducibilityProducerMissing, ReproducibilityProducerAmbiguous, ReproducibilityToolMissing, ReproducibilityParametersMissing, ReproducibilityInputMissing>¶
-
using RevisionEventPayload = std::variant<AssetImportedEvent, RepresentationAddedEvent, ResourceAddedEvent, RepresentationResourceAddedEvent, LocatorAddedEvent, LocatorRetiredEvent, MediaRootAddedEvent, MediaRootEnabledChangedEvent, MediaRootRemovedEvent, ExternalIdentifierAddedEvent, ExternalIdentifierRemovedEvent, MetadataAddedOrReplacedEvent, MetadataRemovedEvent, ActivityCreatedEvent, ActivityInputAddedEvent, ActivityOutputAddedEvent, ResourceFileFactsObservedEvent, ResourceFingerprintObservedEvent, RepresentationFingerprintObservedEvent, DependencySetRecordedEvent, JobRequestedEvent, JobClaimedEvent, JobClaimRenewedEvent, JobClaimReleasedEvent, JobSucceededEvent, JobFailedEvent, JobCancelledEvent>¶
-
using RepresentationContentValue = std::variant<SingleResourceContent, ImageSequenceContent, OrderedPartsContent, PackageContent>¶
-
using JobStatus = std::variant<JobRequested, JobClaim, JobCompletion, JobFailure, JobCancelled>¶
Exactly one lifecycle alternative, carrying only its applicable payload.
-
using JobResultStatus = std::variant<JobRequested, ClaimedJobResult, JobCompletion, FailedJobResult, JobCancelled>¶
-
using ResolutionOutcomeValue = std::variant<ResourceOnlineAtKnownLocator, ResourceResolvedExact, ResourceResolvedProbable, ResourceOffline, ResourceAmbiguous, ResourceResolutionFailure>¶
-
using AvailabilityIssuePayload = std::variant<OfflineResourceIssue, AmbiguousResourceIssue, ResourceErrorIssue, MissingSequenceFrames>¶
-
using ActivityParameter = std::tuple<std::string, std::string, MetadataValue>¶
-
using JobLeaseState = std::variant<PendingJobLease, ActiveJobLease, ClosedJobLease>¶
Enums
-
enum class ErrorCode : std::uint32_t¶
Values:
-
enumerator ok¶
-
enumerator invalid_argument¶
-
enumerator not_found¶
-
enumerator already_exists¶
-
enumerator io¶
-
enumerator storage¶
-
enumerator migration¶
-
enumerator conflict¶
-
enumerator ambiguous_resolution¶
-
enumerator fingerprint¶
-
enumerator unsupported¶
-
enumerator cancelled¶
-
enumerator malformed¶
-
enumerator limit_exceeded¶
-
enumerator scope_mismatch¶
-
enumerator invalid_base¶
-
enumerator request_identity_mismatch¶
-
enumerator history_gap¶
-
enumerator integrity¶
-
enumerator divergence¶
-
enumerator mirror_read_only¶
-
enumerator internal¶
-
enumerator ok¶
-
enum class ObjectKind : std::uint32_t¶
Values:
-
enumerator production¶
-
enumerator asset¶
-
enumerator representation¶
-
enumerator resource¶
-
enumerator activity¶
-
enumerator job¶
-
enumerator production¶
-
enum class ConflictKeyKind : std::uint32_t¶
Values:
-
enumerator locator_set¶
-
enumerator metadata_property¶
-
enumerator dependency_set¶
-
enumerator media_root¶
-
enumerator external_identifier¶
-
enumerator resource_fingerprint¶
-
enumerator representation_fingerprint¶
-
enumerator resource_file_facts¶
-
enumerator locator_set¶
-
enum class DependencySetStatus : std::uint32_t¶
Values:
-
enumerator current¶
-
enumerator needs_extraction¶
-
enumerator current¶
-
enum class ArtifactKnowledgeState : std::uint32_t¶
Values:
-
enumerator current¶
-
enumerator stale¶
-
enumerator indeterminate¶
-
enumerator diverged¶
-
enumerator current¶
-
enum class ArtifactReasonKind : std::uint32_t¶
Values:
-
enumerator producing_activity_missing¶
-
enumerator producing_activity_ambiguous¶
-
enumerator snapshot_absent¶
-
enumerator fingerprint_evidence_missing¶
-
enumerator fingerprint_changed¶
-
enumerator fingerprint_recomputation_pending¶
-
enumerator upstream_not_current¶
-
enumerator traversal_truncated¶
-
enumerator dependency_snapshot_absent¶
-
enumerator dependency_knowledge_incomplete¶
-
enumerator dependency_path_changed¶
-
enumerator dependency_fingerprint_changed¶
-
enumerator dependency_fingerprint_recomputation_pending¶
-
enumerator dependency_fingerprint_evidence_missing¶
-
enumerator producing_activity_missing¶
-
enum class ArtifactDependencyIssue : std::uint32_t¶
Values:
-
enumerator needs_extraction¶
-
enumerator unresolved¶
-
enumerator depth_truncated¶
-
enumerator representations_truncated¶
-
enumerator needs_extraction¶
-
enum class ArtifactTraversalLimit : std::uint32_t¶
Values:
-
enumerator depth¶
-
enumerator representations¶
-
enumerator depth¶
-
enum class ArtifactReproducibilityIssueKind : std::uint32_t¶
Values:
-
enumerator producing_activity_missing¶
-
enumerator producing_activity_ambiguous¶
-
enumerator tool_identity_missing¶
-
enumerator parameters_missing¶
-
enumerator input_representation_missing¶
-
enumerator producing_activity_missing¶
-
enum class RevisionEventKind : std::uint32_t¶
Values:
-
enumerator asset_imported¶
-
enumerator representation_added¶
-
enumerator resource_added¶
-
enumerator representation_resource_added¶
-
enumerator locator_added¶
-
enumerator locator_retired¶
-
enumerator media_root_added¶
-
enumerator media_root_enabled_changed¶
-
enumerator media_root_removed¶
-
enumerator external_identifier_added¶
-
enumerator external_identifier_removed¶
-
enumerator metadata_added_or_replaced¶
-
enumerator metadata_removed¶
-
enumerator activity_created¶
-
enumerator activity_input_added¶
-
enumerator activity_output_added¶
-
enumerator resource_file_facts_observed¶
-
enumerator resource_fingerprint_observed¶
-
enumerator representation_fingerprint_observed¶
-
enumerator dependency_set_recorded¶
-
enumerator job_requested¶
-
enumerator job_claimed¶
-
enumerator job_claim_renewed¶
-
enumerator job_claim_released¶
-
enumerator job_succeeded¶
-
enumerator job_failed¶
-
enumerator job_cancelled¶
-
enumerator asset_imported¶
-
enum class RevisionWaitResult : std::uint32_t¶
Values:
-
enumerator revisions¶
-
enumerator timed_out¶
-
enumerator closed¶
-
enumerator cancelled¶
-
enumerator revisions¶
-
enum class RepresentationKind : std::uint32_t¶
Values:
-
enumerator original¶
-
enumerator proxy¶
-
enumerator optimized¶
-
enumerator derived¶
-
enumerator original¶
-
enum class ContentStructureKind : std::uint32_t¶
Values:
-
enumerator single_resource¶
-
enumerator image_sequence¶
-
enumerator ordered_parts¶
-
enumerator package¶
-
enumerator single_resource¶
-
enum class LocatorAvailability : std::uint32_t¶
Values:
-
enumerator unknown¶
-
enumerator online¶
-
enumerator offline¶
-
enumerator unknown¶
-
enum class JobState : std::uint32_t¶
Values:
-
enumerator requested¶
-
enumerator claimed¶
-
enumerator succeeded¶
-
enumerator failed¶
-
enumerator cancelled¶
-
enumerator requested¶
-
enum class RepresentationAvailability : std::uint32_t¶
Values:
-
enumerator online¶
-
enumerator partial¶
-
enumerator offline¶
-
enumerator ambiguous¶
-
enumerator error¶
-
enumerator online¶
-
enum class ResourceResolutionState : std::uint32_t¶
Values:
-
enumerator online_at_known_locator¶
-
enumerator resolved_exact¶
-
enumerator resolved_probable¶
-
enumerator offline¶
-
enumerator ambiguous¶
-
enumerator error¶
-
enumerator online_at_known_locator¶
-
enum class AvailabilityIssueKind : std::uint32_t¶
Values:
-
enumerator offline_resource¶
-
enumerator ambiguous_resource¶
-
enumerator resource_error¶
-
enumerator missing_frames¶
-
enumerator offline_resource¶
-
enum class EvidenceKind : std::uint32_t¶
Values:
-
enumerator known_locator_available¶
-
enumerator exact_fingerprint_match¶
-
enumerator full_hash_match¶
-
enumerator partial_fingerprint_match¶
-
enumerator file_size_match¶
-
enumerator file_name_match¶
-
enumerator relative_path_similarity¶
-
enumerator media_root_relation¶
-
enumerator conflicting_candidate¶
-
enumerator discovery_error¶
-
enumerator media_root_unmapped¶
-
enumerator fingerprint_mismatch¶
-
enumerator fingerprint_not_verified¶
-
enumerator search_truncated¶
-
enumerator known_locator_available¶
Functions
-
inline std::optional<ArtifactReproducibilityIssueKind> artifactReproducibilityIssueKind(const ArtifactReproducibilityIssue &issue) noexcept¶
Display category, or no category after a throwing variant assignment.
-
inline bool operator==(const MetadataString &left, const MetadataString &right)¶
-
inline bool operator==(const MetadataLanguageString &left, const MetadataLanguageString &right)¶
-
inline bool operator==(const MetadataSignedInteger &left, const MetadataSignedInteger &right)¶
-
inline bool operator==(const MetadataUnsignedInteger &left, const MetadataUnsignedInteger &right)¶
-
inline bool operator==(const MetadataDecimal &left, const MetadataDecimal &right)¶
-
inline bool operator==(const MetadataBoolean &left, const MetadataBoolean &right)¶
-
inline bool operator==(const MetadataTimestamp &left, const MetadataTimestamp &right)¶
-
inline bool operator==(const MetadataUri &left, const MetadataUri &right)¶
-
inline bool operator==(const MetadataBytes &left, const MetadataBytes &right)¶
-
inline bool operator==(const MetadataRational &left, const MetadataRational &right)¶
-
inline bool operator==(const MetadataReference &left, const MetadataReference &right)¶
-
inline bool operator==(const MetadataList &left, const MetadataList &right)¶
-
inline bool operator==(const MetadataField &left, const MetadataField &right)¶
-
inline bool operator==(const MetadataStructure &left, const MetadataStructure &right)¶
-
inline bool operator==(const MetadataValue &left, const MetadataValue &right)¶
-
inline bool operator!=(const MetadataValue &left, const MetadataValue &right)¶
-
inline std::uint32_t abi_version() noexcept¶
-
inline Result<Fingerprint> fingerprintFile(std::string_view path)¶
Variables
-
constexpr std::chrono::milliseconds max_revision_wait = {PP_REVISION_WAIT_MAX_TIMEOUT_MILLIS}¶
-
struct ActiveJobLease¶
- #include <postproject.hpp>
Public Members
-
std::int64_t expires_at_unix_micros¶
-
std::int64_t expires_at_unix_micros¶
-
struct Activity¶
- #include <postproject.hpp>
Public Members
-
ActivityId id¶
-
std::string kind¶
-
std::optional<std::int64_t> started_at_unix_micros¶
-
std::optional<std::int64_t> finished_at_unix_micros¶
-
std::optional<ToolIdentity> tool¶
-
std::optional<AgentIdentity> agent¶
-
std::vector<ActivityEdge> inputs¶
-
std::vector<ActivityEdge> outputs¶
-
ActivityId id¶
-
struct ActivityCreatedEvent¶
- #include <postproject.hpp>
-
struct ActivityEdge¶
- #include <postproject.hpp>
Public Members
-
RepresentationId representation_id¶
-
std::optional<std::string> role¶
-
std::optional<ActivityEdgeSnapshot> snapshot = std::nullopt¶
-
RepresentationId representation_id¶
-
struct ActivityEdgeSnapshot¶
- #include <postproject.hpp>
-
class ActivityId¶
- #include <postproject.hpp>
Public Functions
Public Static Functions
-
static inline Result<ActivityId> fromString(std::string_view text)¶
Friends
-
inline friend constexpr bool operator==(const ActivityId &left, const ActivityId &right) noexcept¶
-
inline friend constexpr bool operator!=(const ActivityId &left, const ActivityId &right) noexcept¶
-
inline friend bool operator<(const ActivityId &left, const ActivityId &right) noexcept¶
-
static inline Result<ActivityId> fromString(std::string_view text)¶
-
struct ActivityInputAddedEvent¶
- #include <postproject.hpp>
Public Members
-
ActivityId activity_id¶
-
RepresentationId representation_id¶
-
std::optional<std::string> role¶
-
ActivityId activity_id¶
-
struct ActivityOutputAddedEvent¶
- #include <postproject.hpp>
Public Members
-
ActivityId activity_id¶
-
RepresentationId representation_id¶
-
std::optional<std::string> role¶
-
ActivityId activity_id¶
-
struct ActivitySpec¶
- #include <postproject.hpp>
Public Members
-
std::string kind¶
-
std::optional<std::int64_t> started_at_unix_micros¶
-
std::optional<std::int64_t> finished_at_unix_micros¶
-
std::optional<ToolIdentity> tool¶
-
std::optional<AgentIdentity> agent¶
-
std::vector<ActivityEdgeInput> inputs¶
-
std::vector<ActivityEdgeInput> outputs¶
-
std::string kind¶
-
struct AgentIdentity¶
- #include <postproject.hpp>
-
struct AmbiguousResourceIssue¶
- #include <postproject.hpp>
-
struct ArtifactDependencyFingerprintChanged¶
- #include <postproject.hpp>
Public Members
-
ActivityId activity_id¶
-
RepresentationId input_representation_id¶
-
RepresentationId representation_id¶
-
std::vector<ArtifactDependencyPathSegment> dependency_path¶
-
std::string fingerprint_algorithm¶
-
std::uint16_t fingerprint_version¶
-
std::vector<std::uint8_t> snapshot_value¶
-
std::vector<std::uint8_t> current_value¶
-
ActivityId activity_id¶
-
struct ArtifactDependencyFingerprintEvidenceMissing¶
- #include <postproject.hpp>
Public Members
-
ActivityId activity_id¶
-
RepresentationId input_representation_id¶
-
RepresentationId representation_id¶
-
std::vector<ArtifactDependencyPathSegment> dependency_path¶
-
std::optional<std::string> fingerprint_algorithm¶
-
std::optional<std::uint16_t> fingerprint_version¶
-
std::optional<std::vector<std::uint8_t>> snapshot_value¶
-
std::optional<std::vector<std::uint8_t>> current_value¶
-
ActivityId activity_id¶
-
struct ArtifactDependencyFingerprintRecomputationPending¶
- #include <postproject.hpp>
Public Members
-
ActivityId activity_id¶
-
RepresentationId input_representation_id¶
-
RepresentationId representation_id¶
-
std::vector<ArtifactDependencyPathSegment> dependency_path¶
-
ActivityId activity_id¶
-
struct ArtifactDependencyKnowledgeIncomplete¶
- #include <postproject.hpp>
Public Members
-
ActivityId activity_id¶
-
RepresentationId input_representation_id¶
-
RepresentationId representation_id¶
-
std::vector<ArtifactDependencyPathSegment> dependency_path¶
-
ArtifactDependencyIssue dependency_issue¶
-
ActivityId activity_id¶
-
struct ArtifactDependencyPathChanged¶
- #include <postproject.hpp>
Public Members
-
ActivityId activity_id¶
-
RepresentationId input_representation_id¶
-
std::vector<ArtifactDependencyPathSegment> dependency_path¶
-
ActivityId activity_id¶
-
struct ArtifactDependencyPathSegment¶
- #include <postproject.hpp>
Public Members
-
RepresentationId source_representation_id¶
-
std::uint32_t dependency_position¶
-
std::optional<ResourceId> source_resource_id¶
-
std::string kind¶
-
std::optional<RepresentationId> resolved_representation_id¶
-
std::string authored_reference¶
-
RepresentationId source_representation_id¶
-
struct ArtifactDependencySnapshotAbsent¶
- #include <postproject.hpp>
-
struct ArtifactEvaluation¶
- #include <postproject.hpp>
Public Members
-
RepresentationId representation_id¶
-
ArtifactKnowledgeState state¶
-
std::uint32_t visited_representations¶
-
bool truncated¶
-
std::vector<ArtifactReason> reasons¶
-
RepresentationId representation_id¶
-
struct ArtifactFingerprintChanged¶
- #include <postproject.hpp>
Public Members
-
ActivityId activity_id¶
-
RepresentationId representation_id¶
-
ArtifactEdgeKind edge_kind¶
-
std::string fingerprint_algorithm¶
-
std::uint16_t fingerprint_version¶
-
std::vector<std::uint8_t> snapshot_value¶
-
std::vector<std::uint8_t> current_value¶
-
ActivityId activity_id¶
-
struct ArtifactFingerprintEvidenceMissing¶
- #include <postproject.hpp>
Public Members
-
ActivityId activity_id¶
-
RepresentationId representation_id¶
-
ArtifactEdgeKind edge_kind¶
-
std::optional<std::string> fingerprint_algorithm¶
-
std::optional<std::uint16_t> fingerprint_version¶
-
std::optional<std::vector<std::uint8_t>> snapshot_value¶
-
std::optional<std::vector<std::uint8_t>> current_value¶
-
ActivityId activity_id¶
-
struct ArtifactFingerprintRecomputationPending¶
- #include <postproject.hpp>
Public Members
-
ActivityId activity_id¶
-
RepresentationId representation_id¶
-
ArtifactEdgeKind edge_kind¶
-
ActivityId activity_id¶
-
struct ArtifactProducerAmbiguous¶
- #include <postproject.hpp>
-
struct ArtifactProducerMissing¶
- #include <postproject.hpp>
Public Members
-
RepresentationId representation_id¶
-
RepresentationId representation_id¶
-
class ArtifactReasonValue¶
- #include <postproject.hpp>
Checked, owned artifact observation.
The alternatives above are unvalidated input records; only create() produces this usable value. After a move, destroy or reassign the source and inspect the destination.
Public Functions
-
ArtifactReasonValue(const ArtifactReasonValue&) = default¶
-
ArtifactReasonValue(ArtifactReasonValue&&) noexcept = default¶
-
ArtifactReasonValue &operator=(ArtifactReasonValue&&) noexcept = default¶
-
inline ArtifactReasonValue &operator=(const ArtifactReasonValue &other)¶
-
inline const ArtifactReasonPayload &value() const noexcept¶
-
inline ArtifactReasonKind kind() const noexcept¶
Public Static Functions
-
static inline Result<ArtifactReasonValue> create(ArtifactReasonPayload value)¶
Private Functions
-
inline explicit ArtifactReasonValue(ArtifactReasonPayload value)¶
Private Members
-
ArtifactReasonPayload value_¶
-
ArtifactReasonValue(const ArtifactReasonValue&) = default¶
-
struct ArtifactReproducibility¶
- #include <postproject.hpp>
Public Members
-
RepresentationId representation_id¶
-
bool reproducible¶
-
std::optional<ActivityId> producing_activity_id¶
-
std::optional<std::string> activity_kind¶
-
std::vector<ArtifactReproducibilityIssue> issues¶
-
RepresentationId representation_id¶
-
struct ArtifactSnapshotAbsent¶
- #include <postproject.hpp>
Public Members
-
ActivityId activity_id¶
-
RepresentationId representation_id¶
-
ArtifactEdgeKind edge_kind¶
-
ActivityId activity_id¶
-
struct ArtifactTraversalTruncated¶
- #include <postproject.hpp>
-
struct ArtifactUpstreamNotCurrent¶
- #include <postproject.hpp>
-
struct Asset¶
- #include <postproject.hpp>
-
class AssetId¶
- #include <postproject.hpp>
Public Functions
-
struct AssetImportedEvent¶
- #include <postproject.hpp>
-
struct AvailabilityIssue¶
- #include <postproject.hpp>
Public Functions
-
inline AvailabilityIssueKind kind() const noexcept¶
-
inline const std::vector<std::int64_t> &frames() const noexcept¶
-
inline AvailabilityIssueKind kind() const noexcept¶
-
class AvailabilityIssueDetail¶
- #include <postproject.hpp>
Owned availability detail; only the missing-frame case has a frame payload.
Public Functions
-
AvailabilityIssueDetail(const AvailabilityIssueDetail&) = default¶
-
AvailabilityIssueDetail(AvailabilityIssueDetail&&) noexcept = default¶
-
inline AvailabilityIssueDetail &operator=(const AvailabilityIssueDetail &other)¶
-
AvailabilityIssueDetail &operator=(AvailabilityIssueDetail&&) noexcept = default¶
-
inline const AvailabilityIssuePayload &value() const noexcept¶
-
inline AvailabilityIssueKind kind() const noexcept¶
-
inline const std::vector<std::int64_t> &frames() const noexcept¶
Public Static Functions
-
static inline Result<AvailabilityIssueDetail> create(AvailabilityIssuePayload value)¶
Private Functions
-
inline explicit AvailabilityIssueDetail(AvailabilityIssuePayload value)¶
Private Members
-
AvailabilityIssuePayload value_¶
-
AvailabilityIssueDetail(const AvailabilityIssueDetail&) = default¶
-
class CancelToken¶
- #include <postproject.hpp>
Public Functions
-
CancelToken(const CancelToken&) = delete¶
-
CancelToken &operator=(const CancelToken&) = delete¶
-
inline CancelToken(CancelToken &&other) noexcept¶
-
inline CancelToken &operator=(CancelToken &&other) noexcept¶
-
inline ~CancelToken()¶
-
inline void cancel() const noexcept¶
Public Static Functions
-
static inline Result<CancelToken> create()¶
Private Functions
-
inline explicit CancelToken(pp_cancel_token_t *token) noexcept¶
Private Members
-
pp_cancel_token_t *token_ = nullptr¶
Friends
- friend class ResolutionOptions
-
CancelToken(const CancelToken&) = delete¶
-
struct ClaimedJobResult¶
- #include <postproject.hpp>
Public Members
-
std::int64_t expires_at_unix_micros¶
-
std::int64_t expires_at_unix_micros¶
-
class ClientId¶
- #include <postproject.hpp>
Public Functions
-
struct ClosedJobLease¶
- #include <postproject.hpp>
-
struct CommitReceipt¶
- #include <postproject.hpp>
-
struct CommittedRevision¶
- #include <postproject.hpp>
-
struct ConflictKey¶
- #include <postproject.hpp>
Public Members
-
ConflictKeyKind kind¶
-
std::variant<ObjectRef, MediaRootId> target¶
-
std::optional<std::string> namespace_name¶
-
std::optional<std::string> local_name¶
-
std::optional<std::string> qualifier¶
-
std::optional<std::uint16_t> version¶
-
ConflictKeyKind kind¶
-
struct DecisionBase¶
- #include <postproject.hpp>
Public Static Functions
-
static inline Result<DecisionBase> fromToken(std::string_view token)¶
-
static inline Result<DecisionBase> fromToken(std::string_view token)¶
-
struct Dependency¶
- #include <postproject.hpp>
Public Members
-
std::optional<ResourceId> source_resource_id¶
-
std::string kind¶
-
std::optional<RepresentationId> resolved_representation_id¶
-
bool required¶
-
std::string authored_reference¶
-
std::optional<ResourceId> source_resource_id¶
-
struct DependencyMatch¶
- #include <postproject.hpp>
-
struct DependencySet¶
- #include <postproject.hpp>
Public Members
-
RepresentationId source_representation_id¶
-
std::uint64_t recorded_at_revision¶
-
DependencySetStatus status¶
-
std::vector<Dependency> dependencies¶
-
RepresentationId source_representation_id¶
-
struct DependencySetRecordedEvent¶
- #include <postproject.hpp>
Public Members
-
RepresentationId representation_id¶
-
RepresentationId representation_id¶
-
class Error¶
- #include <postproject.hpp>
Public Functions
-
inline const std::string &message() const noexcept¶
-
inline const TransactionConflict *transactionConflict() const noexcept¶
Private Members
-
std::string message_¶
-
std::shared_ptr<const TransactionConflict> transaction_conflict_¶
-
inline const std::string &message() const noexcept¶
-
struct Evidence¶
- #include <postproject.hpp>
-
struct ExchangeLimits¶
- #include <postproject.hpp>
-
struct ExchangePosition¶
- #include <postproject.hpp>
-
struct ExchangeState¶
- #include <postproject.hpp>
Public Members
-
std::uint32_t protocol_version¶
-
ExchangeRole role¶
-
std::uint64_t supported_features¶
-
ProtocolBase observed_base¶
-
ExchangePosition floor¶
-
std::optional<ExchangePosition> head¶
-
ExchangeLimits limits¶
-
std::uint32_t protocol_version¶
-
struct ExternalIdentifier¶
- #include <postproject.hpp>
-
struct ExternalIdentifierAddedEvent¶
- #include <postproject.hpp>
-
struct ExternalIdentifierRemovedEvent¶
- #include <postproject.hpp>
-
struct FailedJobResult¶
- #include <postproject.hpp>
-
struct FileResourceInput¶
- #include <postproject.hpp>
-
struct FilteredRevisionPage¶
- #include <postproject.hpp>
-
struct Fingerprint¶
- #include <postproject.hpp>
-
struct FingerprintSnapshot¶
- #include <postproject.hpp>
-
class HistoryId¶
- #include <postproject.hpp>
Public Functions
-
struct HostObjectBinding¶
- #include <postproject.hpp>
Public Static Functions
-
static inline Result<HostObjectBinding> fromString(std::string_view value)¶
Friends
-
inline friend constexpr bool operator==(const HostObjectBinding &left, const HostObjectBinding &right) noexcept¶
-
static inline Result<HostObjectBinding> fromString(std::string_view value)¶
-
struct ImageSequenceContent¶
- #include <postproject.hpp>
-
struct ImageSequenceDescriptor¶
- #include <postproject.hpp>
-
struct ImageSequenceInput¶
- #include <postproject.hpp>
-
struct ImportedMedia¶
- #include <postproject.hpp>
-
struct Job¶
- #include <postproject.hpp>
Public Functions
-
struct JobCancelled¶
- #include <postproject.hpp>
A request cancelled by its coordinator.
-
struct JobCancelledEvent¶
- #include <postproject.hpp>
-
struct JobClaim¶
- #include <postproject.hpp>
Public Members
-
ToolIdentity tool¶
-
std::optional<AgentIdentity> agent¶
-
std::int64_t expires_at_unix_micros¶
-
ToolIdentity tool¶
-
struct JobClaimedEvent¶
- #include <postproject.hpp>
-
struct JobClaimReleasedEvent¶
- #include <postproject.hpp>
-
struct JobClaimRenewedEvent¶
- #include <postproject.hpp>
-
struct JobCompletion¶
- #include <postproject.hpp>
-
struct JobFailedEvent¶
- #include <postproject.hpp>
-
struct JobFailure¶
- #include <postproject.hpp>
A failed request with its diagnostic.
Public Members
-
std::string diagnostic¶
-
std::string diagnostic¶
-
class JobId¶
- #include <postproject.hpp>
Public Functions
-
class JobLease¶
- #include <postproject.hpp>
Public Functions
-
inline ~JobLease()¶
-
inline Result<ProductionId> productionId() const¶
-
inline Result<JobLeaseState> state() const¶
-
inline void close() noexcept¶
Private Functions
-
inline explicit JobLease(pp_job_lease_t *lease)¶
Private Members
-
pp_job_lease_t *lease_ = nullptr¶
Friends
- friend class Transaction
- friend class Production
-
struct Info¶
-
inline ~JobLease()¶
-
struct JobRequest¶
- #include <postproject.hpp>
Public Members
-
std::string kind¶
-
std::vector<RepresentationId> inputs¶
-
RepresentationKind output_representation_kind¶
-
std::optional<std::string> target_root¶
-
std::string kind¶
-
struct JobRequested¶
- #include <postproject.hpp>
A request that has no worker or result yet.
-
struct JobRequestedEvent¶
- #include <postproject.hpp>
-
struct JobResult¶
- #include <postproject.hpp>
-
struct JobSucceededEvent¶
- #include <postproject.hpp>
-
struct KnownMediaMatch¶
- #include <postproject.hpp>
-
struct Locator¶
- #include <postproject.hpp>
Public Members
-
std::string uri¶
-
LocatorAvailability availability¶
-
std::optional<std::int64_t> last_seen_unix_micros¶
-
std::optional<SequenceNaming> sequence_naming¶
-
std::string uri¶
-
struct LocatorAddedEvent¶
- #include <postproject.hpp>
-
class LocatorId¶
- #include <postproject.hpp>
Public Functions
-
struct LocatorIdentity¶
- #include <postproject.hpp>
-
struct LocatorRetiredEvent¶
- #include <postproject.hpp>
-
struct MediaRoot¶
- #include <postproject.hpp>
-
struct MediaRootAddedEvent¶
- #include <postproject.hpp>
Public Members
-
MediaRootId media_root_id¶
-
MediaRootId media_root_id¶
-
struct MediaRootEnabledChangedEvent¶
- #include <postproject.hpp>
-
class MediaRootId¶
- #include <postproject.hpp>
Public Functions
Public Static Functions
-
static inline Result<MediaRootId> fromString(std::string_view text)¶
Friends
-
inline friend constexpr bool operator==(const MediaRootId &left, const MediaRootId &right) noexcept¶
-
inline friend constexpr bool operator!=(const MediaRootId &left, const MediaRootId &right) noexcept¶
-
inline friend bool operator<(const MediaRootId &left, const MediaRootId &right) noexcept¶
-
static inline Result<MediaRootId> fromString(std::string_view text)¶
-
struct MediaRootRemovedEvent¶
- #include <postproject.hpp>
Public Members
-
MediaRootId media_root_id¶
-
MediaRootId media_root_id¶
-
class MediaSource¶
- #include <postproject.hpp>
Public Functions
-
inline MediaSource(std::string_view path)¶
-
inline MediaSource(const std::string &path)¶
-
inline MediaSource(const char *path)¶
-
inline MediaSource(const std::filesystem::path &path)¶
Public Static Functions
-
static inline MediaSource imageSequence(ImageSequenceInput sequence)¶
-
static inline MediaSource orderedParts(std::vector<FileResourceInput> parts)¶
-
static inline MediaSource package(std::vector<FileResourceInput> members)¶
Private Types
-
using Content = std::variant<File, ImageSequenceInput, Collection>¶
Private Functions
-
inline Result<detail::MediaSourceHandle> native() const¶
Friends
- friend class Transaction
-
struct Collection¶
-
inline MediaSource(std::string_view path)¶
-
struct MetadataAddedOrReplacedEvent¶
- #include <postproject.hpp>
-
struct MetadataAssertion¶
- #include <postproject.hpp>
-
struct MetadataDecimal¶
- #include <postproject.hpp>
-
struct MetadataField¶
- #include <postproject.hpp>
-
struct MetadataLanguageString¶
- #include <postproject.hpp>
-
struct MetadataList¶
- #include <postproject.hpp>
Public Members
-
std::vector<MetadataValue> items¶
-
std::vector<MetadataValue> items¶
-
struct MetadataRational¶
- #include <postproject.hpp>
-
struct MetadataReference¶
- #include <postproject.hpp>
-
struct MetadataRemovedEvent¶
- #include <postproject.hpp>
-
struct MetadataStructure¶
- #include <postproject.hpp>
Public Members
-
std::vector<MetadataField> fields¶
-
std::vector<MetadataField> fields¶
-
class MetadataValue¶
- #include <postproject.hpp>
Public Types
-
using Variant = std::variant<MetadataString, MetadataLanguageString, MetadataSignedInteger, MetadataUnsignedInteger, MetadataDecimal, MetadataBoolean, MetadataTimestamp, MetadataUri, MetadataBytes, MetadataRational, MetadataList, MetadataStructure, MetadataReference>¶
Public Functions
Public Static Functions
-
static inline MetadataValue plainString(std::string_view value)¶
-
static inline MetadataValue languageString(std::string_view value, std::string_view language)¶
-
static inline MetadataValue signedInteger(std::int64_t value)¶
-
static inline MetadataValue unsignedInteger(std::uint64_t value)¶
-
static inline MetadataValue decimal(std::string_view coefficient, std::uint32_t scale)¶
-
static inline MetadataValue boolean(bool value)¶
-
static inline MetadataValue timestamp(std::int64_t unix_micros)¶
-
static inline MetadataValue uri(std::string_view value)¶
-
static inline MetadataValue bytes(std::vector<std::uint8_t> value)¶
-
static inline MetadataValue rational(std::int64_t numerator, std::uint64_t denominator)¶
-
static inline MetadataValue list(std::vector<MetadataValue> items)¶
-
static inline MetadataValue structure(std::vector<MetadataField> fields)¶
-
static inline MetadataValue reference(const ObjectRef &target)¶
-
using Variant = std::variant<MetadataString, MetadataLanguageString, MetadataSignedInteger, MetadataUnsignedInteger, MetadataDecimal, MetadataBoolean, MetadataTimestamp, MetadataUri, MetadataBytes, MetadataRational, MetadataList, MetadataStructure, MetadataReference>¶
-
struct MissingSequenceFrames¶
- #include <postproject.hpp>
Public Members
-
std::vector<std::int64_t> frames¶
-
std::vector<std::int64_t> frames¶
-
struct ObjectMatch¶
- #include <postproject.hpp>
-
class ObjectRef¶
- #include <postproject.hpp>
Public Types
-
using Value = std::variant<ProductionId, AssetId, RepresentationId, ResourceId, ActivityId, JobId>¶
Public Functions
-
inline ObjectKind kind() const noexcept¶
-
inline Result<ProductionId> productionId() const¶
-
inline Result<RepresentationId> representationId() const¶
-
inline Result<ResourceId> resourceId() const¶
-
inline Result<ActivityId> activityId() const¶
Public Static Functions
-
static inline Result<ObjectRef> fromUuid(ObjectKind kind, Uuid id)¶
-
static inline ObjectRef production(const ProductionId &id) noexcept¶
-
static inline ObjectRef representation(const RepresentationId &id) noexcept¶
-
static inline ObjectRef resource(const ResourceId &id) noexcept¶
-
static inline ObjectRef activity(const ActivityId &id) noexcept¶
-
using Value = std::variant<ProductionId, AssetId, RepresentationId, ResourceId, ActivityId, JobId>¶
-
struct OfflineResourceIssue¶
- #include <postproject.hpp>
-
struct OrderedPartsContent¶
- #include <postproject.hpp>
Public Members
-
std::vector<RepresentationMember> members¶
-
std::vector<RepresentationMember> members¶
-
struct OriginIdentity¶
- #include <postproject.hpp>
-
struct OutputSource¶
- #include <postproject.hpp>
Public Members
-
MediaSource source¶
-
std::optional<std::string> role = std::nullopt¶
-
std::optional<std::string> display_name = std::nullopt¶
-
MediaSource source¶
-
struct PackageContent¶
- #include <postproject.hpp>
Public Members
-
std::vector<RepresentationMember> members¶
-
std::vector<RepresentationMember> members¶
-
struct PendingJobLease¶
- #include <postproject.hpp>
-
class Production¶
- #include <postproject.hpp>
Public Functions
-
inline Result<SubmissionResult> submitProposal(const Proposal &proposal, const std::vector<std::reference_wrapper<const JobLease>> &leases = {}, const std::vector<std::string> &private_tokens = {}) const¶
-
inline Result<SubmissionOutcome> submissionOutcome(const RequestIdentity &identity) const¶
-
inline Result<ExchangeState> exchangeState() const¶
-
inline Result<ExchangePosition> exportCheckpoint(const std::filesystem::path &path) const¶
-
inline Result<ExchangePosition> exportChanges(const ExchangePosition &from, const std::filesystem::path &path) const¶
-
inline Result<ExchangePosition> applyChanges(const std::filesystem::path &path, const ExchangeLimits &limits = {}) const¶
-
inline Result<ExchangePosition> resynchronizeHistory(const ProtocolBase &base, std::uint64_t records, std::uint64_t encoded_bytes) const¶
-
inline Result<QueryPage<RevisionEvent>> revisionEvents(const RevisionId &revision_id, std::uint32_t limit, std::optional<std::string_view> cursor = std::nullopt) const¶
-
Production(const Production&) = delete¶
-
Production &operator=(const Production&) = delete¶
-
inline Production(Production &&other) noexcept¶
-
inline Production &operator=(Production &&other) noexcept¶
-
inline ~Production()¶
-
inline Result<ReadSession> readSession() const¶
-
inline Result<Transaction> edit(const RevisionContext &context = {}) const¶
-
inline Result<Transaction> edit(const DecisionBase &base, const RevisionContext &context = {}) const¶
-
inline Result<ProductionId> id() const¶
-
inline Result<QueryPage<Asset>> assets(std::uint32_t limit, std::optional<std::string_view> cursor = std::nullopt) const¶
-
inline Result<QueryPage<MediaRoot>> mediaRoots(std::uint32_t limit, std::optional<std::string_view> cursor = std::nullopt) const¶
-
inline Result<std::vector<Representation>> representations(const AssetId &asset_id) const¶
-
inline Result<QueryPage<Representation>> representations(const AssetId &asset_id, std::uint32_t limit, std::optional<std::string_view> cursor = std::nullopt) const¶
-
inline Result<Representation> representation(const RepresentationId &representation_id) const¶
-
inline Result<QueryPage<Representation>> representationsUsingResource(const ResourceId &resource_id, std::uint32_t limit, std::optional<std::string_view> cursor = std::nullopt) const¶
-
inline Result<QueryPage<Representation>> representationsUnderMediaRoot(std::string_view root_name, std::uint32_t limit, std::optional<std::string_view> cursor = std::nullopt) const¶
-
inline Result<QueryPage<ResourceId>> resources(const RepresentationId &representation_id, std::uint32_t limit, std::optional<std::string_view> cursor = std::nullopt) const¶
-
inline Result<QueryPage<ResourceLocator>> locators(const ResourceId &resource_id, std::uint32_t limit, std::optional<std::string_view> cursor = std::nullopt) const¶
-
inline Result<QueryPage<KnownMediaMatch>> findKnownMedia(const std::filesystem::path &path, std::uint32_t limit, std::optional<std::string_view> cursor = std::nullopt) const¶
-
inline Result<QueryPage<KnownMediaMatch>> findKnownMedia(const LocatorIdentity &locator, std::uint32_t limit, std::optional<std::string_view> cursor = std::nullopt) const¶
-
inline Result<QueryPage<KnownMediaMatch>> findKnownMedia(const Fingerprint &fingerprint, std::uint32_t limit, std::optional<std::string_view> cursor = std::nullopt) const¶
-
inline Result<QueryPage<RepresentationId>> unresolvedMedia(std::uint32_t limit, std::optional<std::string_view> cursor = std::nullopt) const¶
-
inline Result<std::optional<DependencySet>> dependencySet(const RepresentationId &representation_id) const¶
-
inline Result<QueryPage<DependencyMatch>> dependencies(const RepresentationId &representation_id, std::uint32_t max_depth, std::uint32_t max_representations, std::uint32_t limit, std::optional<std::string_view> cursor = std::nullopt) const¶
-
inline Result<QueryPage<DependencyMatch>> dependents(const ObjectRef &target, std::uint32_t max_depth, std::uint32_t max_representations, std::uint32_t limit, std::optional<std::string_view> cursor = std::nullopt) const¶
-
inline Result<std::vector<ExternalIdentifier>> externalIdentifiers(const ObjectRef &target) const¶
-
inline Result<std::vector<ObjectRef>> findByExternalIdentifier(std::string_view scheme, std::string_view value, std::optional<std::string_view> qualifier = std::nullopt) const¶
-
inline Result<QueryPage<MetadataAssertion>> queryMetadata(std::string_view vocabulary, std::string_view property, std::uint32_t limit, std::optional<std::string_view> cursor = std::nullopt) const¶
-
inline Result<QueryPage<MetadataAssertion>> queryMetadata(std::string_view vocabulary, std::string_view property, const MetadataValue &exact_value, std::uint32_t limit, std::optional<std::string_view> cursor = std::nullopt) const¶
-
inline Result<ContentVerification> verifyResource(const ResourceId &resource_id, std::string_view path, const std::optional<SequenceNaming> &sequence_naming = std::nullopt) const¶
-
inline Result<std::vector<RepresentationResolution>> resolveAsset(const AssetId &asset_id) const¶
-
inline Result<std::vector<RepresentationResolution>> resolveAsset(const AssetId &asset_id, const ResolutionOptions &options) const¶
-
inline Result<std::vector<RepresentationResolution>> resolveAssets(const std::vector<AssetId> &asset_ids) const¶
-
inline Result<std::vector<RepresentationResolution>> resolveAssets(const std::vector<AssetId> &asset_ids, const ResolutionOptions &options) const¶
-
inline Result<QueryPage<Job>> jobs(std::uint32_t limit, std::optional<std::string_view> cursor = std::nullopt, std::optional<JobState> state = std::nullopt, std::optional<std::string_view> kind = std::nullopt) const¶
-
inline Result<std::vector<RegenerationJobPlan>> planRegeneration(const std::vector<RepresentationId> &artifact_representation_ids) const¶
-
inline Result<std::vector<Activity>> activitiesProducing(const RepresentationId &representation_id) const¶
-
inline Result<std::vector<Activity>> activitiesConsuming(const RepresentationId &representation_id) const¶
-
inline Result<QueryPage<Activity>> activitiesProducing(const RepresentationId &representation_id, std::uint32_t limit, std::optional<std::string_view> cursor = std::nullopt) const¶
-
inline Result<QueryPage<Activity>> activitiesConsuming(const RepresentationId &representation_id, std::uint32_t limit, std::optional<std::string_view> cursor = std::nullopt) const¶
-
inline Result<QueryPage<RepresentationId>> outputsByActivityKind(std::string_view kind, std::uint32_t limit, std::optional<std::string_view> cursor = std::nullopt) const¶
-
inline Result<QueryPage<RepresentationId>> outputsByTool(const ToolIdentity &tool, std::uint32_t limit, std::optional<std::string_view> cursor = std::nullopt) const¶
-
inline Result<std::vector<RepresentationId>> ancestors(const RepresentationId &representation_id) const¶
-
inline Result<std::vector<RepresentationId>> descendants(const RepresentationId &representation_id) const¶
-
inline Result<QueryPage<ObjectMatch>> ancestors(const RepresentationId &representation_id, std::uint32_t max_depth, std::uint32_t max_representations, std::uint32_t limit, std::optional<std::string_view> cursor = std::nullopt) const¶
-
inline Result<QueryPage<ObjectMatch>> descendants(const RepresentationId &representation_id, std::uint32_t max_depth, std::uint32_t max_representations, std::uint32_t limit, std::optional<std::string_view> cursor = std::nullopt) const¶
-
inline Result<ArtifactEvaluation> evaluateArtifact(const RepresentationId &representation_id, std::uint32_t max_depth = 64, std::uint32_t max_representations = 1000) const¶
-
inline Result<ArtifactReproducibility> artifactReproducibility(const RepresentationId &representation_id) const¶
-
inline Result<QueryPage<RepresentationId>> staleArtifacts(std::uint32_t evaluation_max_depth, std::uint32_t evaluation_max_representations, std::uint32_t limit, std::optional<std::string_view> cursor = std::nullopt, std::optional<RepresentationId> source_representation_id = std::nullopt) const¶
-
inline Result<std::vector<Revision>> changesSince(std::uint64_t sequence, std::uint32_t limit = 100) const¶
-
inline Result<FilteredRevisionPage> changesSinceFiltered(std::uint64_t sequence, const std::vector<RevisionEventKind> &kinds, std::uint32_t limit = 100) const¶
-
inline Result<RevisionWaiter> revisionWaiter() const¶
-
inline Result<QueryPage<ObjectRef>> objectsChangedSince(std::uint64_t sequence, std::uint32_t limit, std::optional<std::string_view> cursor = std::nullopt) const¶
-
inline Result<std::vector<RevisionEvent>> revisionEvents(const RevisionId &revision_id) const¶
-
inline Result<std::vector<MetadataAssertion>> metadata(const ObjectRef &target) const¶
-
inline explicit operator bool() const noexcept¶
Public Static Functions
-
static inline Result<ExchangePosition> validateCheckpoint(const std::filesystem::path &path, const ExchangeLimits &limits = {})¶
-
static inline Result<Production> importCheckpoint(const std::filesystem::path &path, const std::filesystem::path &destination, const ExchangeLimits &limits = {})¶
-
static inline Result<Production> create(std::string_view path)¶
-
template<class Path, std::enable_if_t<std::is_same_v<Path, std::filesystem::path>, int> = 0>
static inline Result<Production> create(const Path &path)¶
-
static inline Result<Production> create(std::string_view path, std::string_view display_name)¶
-
template<class Path, std::enable_if_t<std::is_same_v<Path, std::filesystem::path>, int> = 0>
static inline Result<Production> create(const Path &path, std::string_view display_name)¶
-
static inline Result<Production> open(std::string_view path)¶
-
template<class Path, std::enable_if_t<std::is_same_v<Path, std::filesystem::path>, int> = 0>
static inline Result<Production> open(const Path &path)¶
Private Types
-
using ActivityQuery = pp_error_code_t (*)(const pp_production_t*, pp_representation_id_t, pp_activity_set_t**, pp_error_t**)¶
-
using ProvenanceQuery = pp_error_code_t (*)(const pp_production_t*, pp_representation_id_t, pp_object_ref_set_t**, pp_error_t**)¶
-
using ActivityPageQuery = pp_error_code_t (*)(const pp_production_t*, pp_representation_id_t, std::uint32_t, const char*, pp_activity_set_t**, pp_error_t**)¶
-
using ProvenancePageQuery = pp_error_code_t (*)(const pp_production_t*, pp_representation_id_t, std::uint32_t, std::uint32_t, std::uint32_t, const char*, pp_object_query_set_t**, pp_error_t**)¶
Private Functions
-
inline Result<std::vector<RepresentationResolution>> resolveAssets(const std::vector<AssetId> &asset_ids, const pp_resolution_options_t *options) const¶
-
inline explicit Production(pp_production_t *production) noexcept¶
-
inline Result<Transaction> begin_edit(const pp_decision_base_t *base, const RevisionContext &context) const¶
-
inline Result<std::vector<Activity>> activities_for_representation(const RepresentationId &representation_id, ActivityQuery query) const¶
-
inline Result<QueryPage<Activity>> activity_page_for_representation(const RepresentationId &representation_id, std::uint32_t limit, const std::optional<std::string_view> &cursor, ActivityPageQuery query) const¶
-
inline Result<QueryPage<ObjectMatch>> provenance_page(const RepresentationId &representation_id, std::uint32_t max_depth, std::uint32_t max_representations, std::uint32_t limit, const std::optional<std::string_view> &cursor, ProvenancePageQuery query) const¶
-
inline Result<QueryPage<MetadataAssertion>> query_metadata_impl(std::string_view vocabulary, std::string_view property, const pp_metadata_input_t *exact_value, std::uint32_t limit, const std::optional<std::string_view> &cursor) const¶
-
inline Result<std::vector<RepresentationId>> provenance_relatives(const RepresentationId &representation_id, ProvenanceQuery query) const¶
Private Members
-
pp_production_t *production_ = nullptr¶
Private Static Functions
-
static inline Result<Production> create_impl(std::string_view path, const char *display_name)¶
-
inline Result<SubmissionResult> submitProposal(const Proposal &proposal, const std::vector<std::reference_wrapper<const JobLease>> &leases = {}, const std::vector<std::string> &private_tokens = {}) const¶
-
class ProductionId¶
- #include <postproject.hpp>
Public Functions
Public Static Functions
-
static inline Result<ProductionId> fromString(std::string_view text)¶
Friends
-
inline friend constexpr bool operator==(const ProductionId &left, const ProductionId &right) noexcept¶
-
inline friend constexpr bool operator!=(const ProductionId &left, const ProductionId &right) noexcept¶
-
inline friend bool operator<(const ProductionId &left, const ProductionId &right) noexcept¶
-
static inline Result<ProductionId> fromString(std::string_view text)¶
-
class Proposal¶
- #include <postproject.hpp>
Public Static Functions
Private Functions
-
inline explicit Proposal(pp_proposal_t *proposal)¶
Private Members
-
pp_proposal_t *proposal_ = nullptr¶
Friends
- friend class Transaction
- friend class Production
-
inline explicit Proposal(pp_proposal_t *proposal)¶
-
struct ProtocolBase¶
- #include <postproject.hpp>
-
template<typename T>
struct QueryPage¶ - #include <postproject.hpp>
-
class ReadSession¶
- #include <postproject.hpp>
Public Functions
-
inline Result<std::vector<RegenerationJobPlan>> planRegeneration(const std::vector<RepresentationId> &artifact_representation_ids) const¶
-
inline Result<QueryPage<RevisionEvent>> revisionEvents(const RevisionId &revision_id, std::uint32_t limit, std::optional<std::string_view> cursor = std::nullopt) const¶
-
inline Result<FilteredRevisionPage> changesSinceFiltered(std::uint64_t sequence, const std::vector<RevisionEventKind> &kinds, std::uint32_t limit = 100) const¶
-
inline Result<std::vector<Revision>> changesSince(std::uint64_t sequence, std::uint32_t limit = 100) const¶
-
inline Result<QueryPage<Activity>> activitiesProducing(const RepresentationId &representation_id, std::uint32_t limit, std::optional<std::string_view> cursor = std::nullopt) const¶
-
inline Result<QueryPage<Activity>> activitiesConsuming(const RepresentationId &representation_id, std::uint32_t limit, std::optional<std::string_view> cursor = std::nullopt) const¶
-
inline Result<QueryPage<RepresentationId>> outputsByActivityKind(std::string_view kind, std::uint32_t limit, std::optional<std::string_view> cursor = std::nullopt) const¶
-
inline Result<QueryPage<RepresentationId>> outputsByTool(const ToolIdentity &tool, std::uint32_t limit, std::optional<std::string_view> cursor = std::nullopt) const¶
-
inline Result<QueryPage<ObjectMatch>> ancestors(const RepresentationId &representation_id, std::uint32_t max_depth, std::uint32_t max_representations, std::uint32_t limit, std::optional<std::string_view> cursor = std::nullopt) const¶
-
inline Result<QueryPage<ObjectMatch>> descendants(const RepresentationId &representation_id, std::uint32_t max_depth, std::uint32_t max_representations, std::uint32_t limit, std::optional<std::string_view> cursor = std::nullopt) const¶
-
inline Result<QueryPage<RepresentationId>> staleArtifacts(std::uint32_t evaluation_max_depth, std::uint32_t evaluation_max_representations, std::uint32_t limit, std::optional<std::string_view> cursor = std::nullopt, std::optional<RepresentationId> source_representation_id = std::nullopt) const¶
-
inline Result<QueryPage<Representation>> representationsUnderMediaRoot(std::string_view root_name, std::uint32_t limit, std::optional<std::string_view> cursor = std::nullopt) const¶
-
inline Result<QueryPage<RepresentationId>> unresolvedMedia(std::uint32_t limit, std::optional<std::string_view> cursor = std::nullopt) const¶
-
inline Result<QueryPage<ObjectRef>> objectsChangedSince(std::uint64_t sequence, std::uint32_t limit, std::optional<std::string_view> cursor = std::nullopt) const¶
-
inline Result<std::optional<DependencySet>> dependencySet(const RepresentationId &representation_id) const¶
-
inline Result<QueryPage<DependencyMatch>> dependencies(const RepresentationId &representation_id, std::uint32_t max_depth, std::uint32_t max_representations, std::uint32_t limit, std::optional<std::string_view> cursor = std::nullopt) const¶
-
inline Result<QueryPage<DependencyMatch>> dependents(const ObjectRef &target, std::uint32_t max_depth, std::uint32_t max_representations, std::uint32_t limit, std::optional<std::string_view> cursor = std::nullopt) const¶
-
inline Result<ArtifactEvaluation> evaluateArtifact(const RepresentationId &representation_id, std::uint32_t max_depth = 64, std::uint32_t max_representations = 1000) const¶
-
inline Result<ArtifactReproducibility> artifactReproducibility(const RepresentationId &representation_id) const¶
-
inline Result<QueryPage<Job>> jobs(std::uint32_t limit, std::optional<std::string_view> cursor = std::nullopt, std::optional<JobState> state = std::nullopt, std::optional<std::string_view> kind = std::nullopt) const¶
-
inline Result<ContentVerification> verifyResource(const ResourceId &resource_id, std::string_view path, const std::optional<SequenceNaming> &sequence_naming = std::nullopt) const¶
-
inline Result<std::vector<RepresentationResolution>> resolveAsset(const AssetId &asset_id) const¶
-
inline Result<std::vector<RepresentationResolution>> resolveAsset(const AssetId &asset_id, const ResolutionOptions &options) const¶
-
inline Result<std::vector<RepresentationResolution>> resolveAssets(const std::vector<AssetId> &asset_ids) const¶
-
inline Result<std::vector<RepresentationResolution>> resolveAssets(const std::vector<AssetId> &asset_ids, const ResolutionOptions &options) const¶
-
inline Result<std::vector<MetadataAssertion>> metadata(const ObjectRef &target) const¶
-
inline Result<QueryPage<MetadataAssertion>> queryMetadata(std::string_view vocabulary, std::string_view property, std::uint32_t limit, std::optional<std::string_view> cursor = std::nullopt) const¶
-
inline Result<QueryPage<MetadataAssertion>> queryMetadata(std::string_view vocabulary, std::string_view property, const MetadataValue &exact_value, std::uint32_t limit, std::optional<std::string_view> cursor = std::nullopt) const¶
-
inline Result<QueryPage<Representation>> representationsUsingResource(const ResourceId &resource_id, std::uint32_t limit, std::optional<std::string_view> cursor = std::nullopt) const¶
-
inline Result<QueryPage<ResourceId>> resources(const RepresentationId &representation_id, std::uint32_t limit, std::optional<std::string_view> cursor = std::nullopt) const¶
-
inline Result<QueryPage<ResourceLocator>> locators(const ResourceId &resource_id, std::uint32_t limit, std::optional<std::string_view> cursor = std::nullopt) const¶
-
inline Result<QueryPage<MediaRoot>> mediaRoots(std::uint32_t limit, std::optional<std::string_view> cursor = std::nullopt) const¶
-
inline Result<std::vector<ExternalIdentifier>> externalIdentifiers(const ObjectRef &target) const¶
-
inline Result<std::vector<ObjectRef>> findByExternalIdentifier(std::string_view scheme, std::string_view value, std::optional<std::string_view> qualifier = std::nullopt) const¶
-
inline Result<QueryPage<KnownMediaMatch>> findKnownMedia(const std::filesystem::path &path, std::uint32_t limit, std::optional<std::string_view> cursor = std::nullopt) const¶
-
inline Result<QueryPage<KnownMediaMatch>> findKnownMedia(const LocatorIdentity &locator, std::uint32_t limit, std::optional<std::string_view> cursor = std::nullopt) const¶
-
inline Result<QueryPage<KnownMediaMatch>> findKnownMedia(const Fingerprint &fingerprint, std::uint32_t limit, std::optional<std::string_view> cursor = std::nullopt) const¶
-
ReadSession(const ReadSession&) = delete¶
-
ReadSession &operator=(const ReadSession&) = delete¶
-
inline ReadSession(ReadSession &&other) noexcept¶
-
inline ReadSession &operator=(ReadSession &&other) noexcept¶
-
inline ~ReadSession()¶
-
inline Result<DecisionBase> decisionBase() const¶
-
inline Result<Transaction> edit(const RevisionContext &context = {}) const¶
-
inline Result<QueryPage<Asset>> assets(std::uint32_t limit, std::optional<std::string_view> cursor = std::nullopt) const¶
-
inline Result<QueryPage<Representation>> representations(const AssetId &asset_id, std::uint32_t limit, std::optional<std::string_view> cursor = std::nullopt) const¶
-
inline Result<Representation> representation(const RepresentationId &representation_id) const¶
Private Functions
-
inline Result<std::vector<RepresentationResolution>> resolveAssets(const std::vector<AssetId> &asset_ids, const pp_resolution_options_t *options) const¶
-
inline Result<QueryPage<MetadataAssertion>> query_metadata_impl(std::string_view vocabulary, std::string_view property, const pp_metadata_input_t *exact_value, std::uint32_t limit, const std::optional<std::string_view> &cursor) const¶
-
inline explicit ReadSession(pp_read_session_t *session) noexcept¶
Private Members
-
pp_read_session_t *session_ = nullptr¶
Friends
- friend class Production
-
inline Result<std::vector<RegenerationJobPlan>> planRegeneration(const std::vector<RepresentationId> &artifact_representation_ids) const¶
-
struct RegenerationJobPlan¶
- #include <postproject.hpp>
Public Members
-
RepresentationId artifact_representation_id¶
-
std::vector<RegenerationParameter> parameters¶
-
RepresentationId artifact_representation_id¶
-
struct RegenerationParameter¶
- #include <postproject.hpp>
-
struct RegisteredOutputs¶
- #include <postproject.hpp>
-
struct RelinkLocation¶
- #include <postproject.hpp>
-
struct RelinkSelection¶
- #include <postproject.hpp>
Public Members
-
DecisionBase base¶
-
RepresentationId representation_id¶
-
std::vector<RelinkLocation> locations¶
-
DecisionBase base¶
-
struct Representation¶
- #include <postproject.hpp>
Public Functions
-
inline ContentStructureKind structureKind() const noexcept¶
-
inline std::vector<RepresentationMember> members() const¶
-
inline const ImageSequenceDescriptor *imageSequence() const noexcept¶
Public Members
-
RepresentationKind kind¶
-
RepresentationContent content¶
-
std::vector<Fingerprint> fingerprints¶
-
inline ContentStructureKind structureKind() const noexcept¶
-
struct RepresentationAddedEvent¶
- #include <postproject.hpp>
-
class RepresentationContent¶
- #include <postproject.hpp>
Owned content whose kind and payload cannot disagree.
Input alternatives are request records; create() validates them before retaining a value.
Public Functions
-
RepresentationContent(const RepresentationContent&) = default¶
-
RepresentationContent(RepresentationContent&&) noexcept = default¶
-
RepresentationContent &operator=(RepresentationContent&&) noexcept = default¶
-
inline RepresentationContent &operator=(const RepresentationContent &other)¶
-
inline const RepresentationContentValue &value() const noexcept¶
-
inline ContentStructureKind structureKind() const noexcept¶
-
inline std::vector<RepresentationMember> members() const¶
-
inline const ImageSequenceDescriptor *imageSequence() const noexcept¶
Public Static Functions
-
static inline Result<RepresentationContent> create(RepresentationContentValue value)¶
Private Functions
-
inline explicit RepresentationContent(RepresentationContentValue value)¶
Private Members
-
RepresentationContentValue value_¶
-
RepresentationContent(const RepresentationContent&) = default¶
-
struct RepresentationFingerprintObservedEvent¶
- #include <postproject.hpp>
-
class RepresentationId¶
- #include <postproject.hpp>
Public Functions
Public Static Functions
-
static inline Result<RepresentationId> fromString(std::string_view text)¶
Friends
-
inline friend constexpr bool operator==(const RepresentationId &left, const RepresentationId &right) noexcept¶
-
inline friend constexpr bool operator!=(const RepresentationId &left, const RepresentationId &right) noexcept¶
-
inline friend bool operator<(const RepresentationId &left, const RepresentationId &right) noexcept¶
-
static inline Result<RepresentationId> fromString(std::string_view text)¶
-
struct RepresentationMember¶
- #include <postproject.hpp>
-
struct RepresentationResolution¶
- #include <postproject.hpp>
Public Functions
-
inline RepresentationResolution(AssetId asset, RepresentationId representation, RepresentationAvailability available, std::vector<ResourceResolution> resolved, std::vector<AvailabilityIssue> diagnostics, Result<RelinkSelection> selected = Error(ErrorCode::conflict, "resolution has no verified selection"))¶
-
inline Result<RelinkSelection> selectVerified() const¶
Public Members
-
RepresentationId representation_id¶
-
RepresentationAvailability availability¶
-
std::vector<ResourceResolution> resources¶
-
std::vector<AvailabilityIssue> issues¶
Private Members
-
Result<RelinkSelection> verified_selection_¶
-
inline RepresentationResolution(AssetId asset, RepresentationId representation, RepresentationAvailability available, std::vector<ResourceResolution> resolved, std::vector<AvailabilityIssue> diagnostics, Result<RelinkSelection> selected = Error(ErrorCode::conflict, "resolution has no verified selection"))¶
-
struct RepresentationResourceAddedEvent¶
- #include <postproject.hpp>
Public Members
-
RepresentationId representation_id¶
-
ResourceId resource_id¶
-
std::uint32_t structural_position¶
-
RepresentationId representation_id¶
-
struct ReproducibilityInputMissing¶
- #include <postproject.hpp>
-
struct ReproducibilityParametersMissing¶
- #include <postproject.hpp>
Public Members
-
ActivityId activity_id¶
-
ActivityId activity_id¶
-
class ReproducibilityProducerAmbiguous¶
- #include <postproject.hpp>
Public Functions
-
inline std::uint32_t activityCount() const noexcept¶
Public Static Functions
-
static inline Result<ReproducibilityProducerAmbiguous> create(std::uint32_t count)¶
Private Functions
-
inline explicit ReproducibilityProducerAmbiguous(std::uint32_t count)¶
Private Members
-
std::uint32_t activity_count_¶
-
inline std::uint32_t activityCount() const noexcept¶
-
struct ReproducibilityProducerMissing¶
- #include <postproject.hpp>
-
struct ReproducibilityToolMissing¶
- #include <postproject.hpp>
Public Members
-
ActivityId activity_id¶
-
ActivityId activity_id¶
-
class RequestId¶
- #include <postproject.hpp>
Public Functions
-
struct RequestIdentity¶
- #include <postproject.hpp>
-
struct ResolutionCandidate¶
- #include <postproject.hpp>
-
struct ResolutionConfig¶
- #include <postproject.hpp>
Public Members
-
std::vector<std::pair<std::string, std::filesystem::path>> root_mappings¶
-
std::vector<std::filesystem::path> search_directories¶
-
VerificationMode verification = VerificationMode::presence¶
-
std::uint32_t max_depth = 64¶
-
std::uint64_t max_entries_per_directory = 100000¶
-
const CancelToken *cancel_token = nullptr¶
-
std::vector<std::pair<std::string, std::filesystem::path>> root_mappings¶
-
class ResolutionOptions¶
- #include <postproject.hpp>
Public Functions
-
ResolutionOptions(const ResolutionOptions&) = delete¶
-
ResolutionOptions &operator=(const ResolutionOptions&) = delete¶
-
inline ResolutionOptions(ResolutionOptions &&other) noexcept¶
-
inline ResolutionOptions &operator=(ResolutionOptions &&other) noexcept¶
-
inline ~ResolutionOptions()¶
Public Static Functions
-
static inline Result<ResolutionOptions> create(const ResolutionConfig &config = {})¶
Private Functions
-
inline explicit ResolutionOptions(pp_resolution_options_t *options) noexcept¶
Private Members
-
pp_resolution_options_t *options_¶
Friends
- friend class Production
- friend class ReadSession
-
ResolutionOptions(const ResolutionOptions&) = delete¶
-
class ResolutionOutcome¶
- #include <postproject.hpp>
Checked owned resolution; applicable candidates are borrowed from its case.
Public Functions
-
ResolutionOutcome(const ResolutionOutcome&) = default¶
-
ResolutionOutcome(ResolutionOutcome&&) noexcept = default¶
-
inline ResolutionOutcome &operator=(const ResolutionOutcome &other)¶
-
ResolutionOutcome &operator=(ResolutionOutcome&&) noexcept = default¶
-
inline const ResolutionOutcomeValue &value() const noexcept¶
-
inline ResourceResolutionState state() const noexcept¶
-
inline const std::vector<ResolutionCandidate> &candidates() const noexcept¶
Public Static Functions
-
static inline Result<ResolutionOutcome> create(ResolutionOutcomeValue value)¶
Private Functions
-
inline explicit ResolutionOutcome(ResolutionOutcomeValue value)¶
Private Members
-
ResolutionOutcomeValue value_¶
Private Static Functions
-
static inline const std::vector<ResolutionCandidate> *candidateValues(const ResolutionOutcomeValue &value) noexcept¶
-
ResolutionOutcome(const ResolutionOutcome&) = default¶
-
struct Resource¶
- #include <postproject.hpp>
Public Members
-
ResourceId id¶
-
std::optional<std::uint64_t> file_size¶
-
std::optional<std::int64_t> modified_at_unix_micros¶
-
std::vector<Fingerprint> fingerprints¶
-
ResourceId id¶
-
struct ResourceAddedEvent¶
- #include <postproject.hpp>
Public Members
-
ResourceId resource_id¶
-
ResourceId resource_id¶
-
struct ResourceAmbiguous¶
- #include <postproject.hpp>
Public Members
-
std::vector<ResolutionCandidate> candidates¶
-
std::vector<ResolutionCandidate> candidates¶
-
struct ResourceErrorIssue¶
- #include <postproject.hpp>
-
struct ResourceFileFactsObservedEvent¶
- #include <postproject.hpp>
Public Members
-
ResourceId resource_id¶
-
ResourceId resource_id¶
-
struct ResourceFingerprintObservedEvent¶
- #include <postproject.hpp>
-
class ResourceId¶
- #include <postproject.hpp>
Public Functions
Public Static Functions
-
static inline Result<ResourceId> fromString(std::string_view text)¶
Friends
-
inline friend constexpr bool operator==(const ResourceId &left, const ResourceId &right) noexcept¶
-
inline friend constexpr bool operator!=(const ResourceId &left, const ResourceId &right) noexcept¶
-
inline friend bool operator<(const ResourceId &left, const ResourceId &right) noexcept¶
-
static inline Result<ResourceId> fromString(std::string_view text)¶
-
struct ResourceLocator¶
- #include <postproject.hpp>
-
struct ResourceOffline¶
- #include <postproject.hpp>
-
struct ResourceOnlineAtKnownLocator¶
- #include <postproject.hpp>
Public Members
-
std::vector<ResolutionCandidate> candidates¶
-
std::vector<ResolutionCandidate> candidates¶
-
struct ResourceResolution¶
- #include <postproject.hpp>
Public Functions
-
inline ResourceResolutionState state() const noexcept¶
-
inline const std::vector<ResolutionCandidate> &candidates() const noexcept¶
-
inline ResourceResolutionState state() const noexcept¶
-
struct ResourceResolutionFailure¶
- #include <postproject.hpp>
-
struct ResourceResolvedExact¶
- #include <postproject.hpp>
Public Members
-
std::vector<ResolutionCandidate> candidates¶
-
std::vector<ResolutionCandidate> candidates¶
-
struct ResourceResolvedProbable¶
- #include <postproject.hpp>
Public Members
-
std::vector<ResolutionCandidate> candidates¶
-
std::vector<ResolutionCandidate> candidates¶
-
template<typename T>
class Result¶ - #include <postproject.hpp>
Public Functions
-
template<typename U, typename = std::enable_if_t<std::is_constructible_v<T, U&&> && !std::is_same_v<std::decay_t<U>, T> && !std::is_same_v<std::decay_t<U>, Error> && !std::is_same_v<std::decay_t<U>, Result>>>
inline Result(U &&value)¶
-
inline bool has_value() const noexcept¶
-
inline explicit operator bool() const noexcept¶
Private Functions
-
inline void check() const¶
-
template<typename U, typename = std::enable_if_t<std::is_constructible_v<T, U&&> && !std::is_same_v<std::decay_t<U>, T> && !std::is_same_v<std::decay_t<U>, Error> && !std::is_same_v<std::decay_t<U>, Result>>>
-
template<>
class Result¶ - #include <postproject.hpp>
Public Functions
-
Result() = default¶
-
inline Result(Error error)
-
inline bool has_value() const noexcept
-
inline explicit operator bool() const noexcept
-
inline Error &error() &
-
inline const Error &error() const &
-
inline Error &&error() &&
-
inline const Error &&error() const &&
-
inline void value() const¶
-
template<typename F>
inline auto and_then(F &&f) const &
-
template<typename F>
inline auto and_then(F &&f) &&
-
template<typename F>
inline auto transform(F &&f) const &
-
template<typename F>
inline auto transform(F &&f) &&
-
Result() = default¶
-
struct Revision¶
- #include <postproject.hpp>
Public Members
-
RevisionId id¶
-
std::uint64_t sequence¶
-
TransactionId transaction_id¶
-
std::int64_t committed_at_unix_micros¶
-
std::optional<OriginIdentity> origin¶
-
std::optional<std::string> message¶
-
RevisionId id¶
-
struct RevisionContext¶
- #include <postproject.hpp>
-
struct RevisionEvent¶
- #include <postproject.hpp>
-
class RevisionId¶
- #include <postproject.hpp>
Public Functions
Public Static Functions
-
static inline Result<RevisionId> fromString(std::string_view text)¶
Friends
-
inline friend constexpr bool operator==(const RevisionId &left, const RevisionId &right) noexcept¶
-
inline friend constexpr bool operator!=(const RevisionId &left, const RevisionId &right) noexcept¶
-
inline friend bool operator<(const RevisionId &left, const RevisionId &right) noexcept¶
-
static inline Result<RevisionId> fromString(std::string_view text)¶
-
class RevisionObserver¶
- #include <postproject.hpp>
Public Types
-
using Callback = std::function<void(const Revision&, const std::vector<RevisionEvent>&)>¶
Public Functions
-
inline RevisionObserver(const Production &production, std::uint64_t after_sequence, Callback callback, std::vector<RevisionEventKind> kinds = {})¶
-
RevisionObserver(const RevisionObserver&) = delete¶
-
RevisionObserver &operator=(const RevisionObserver&) = delete¶
-
RevisionObserver(RevisionObserver&&) = delete¶
-
RevisionObserver &operator=(RevisionObserver&&) = delete¶
-
inline ~RevisionObserver()¶
-
inline void stop() noexcept¶
-
inline std::uint64_t cursor() const noexcept¶
Private Functions
-
inline void run() noexcept¶
Private Members
-
const Production &production_¶
-
std::optional<RevisionWaiter> waiter_¶
-
std::atomic<std::uint64_t> cursor_¶
-
std::vector<RevisionEventKind> kinds_¶
-
mutable std::mutex mutex_¶
-
std::thread thread_¶
Private Static Attributes
-
static constexpr std::uint32_t page_size = 100¶
-
using Callback = std::function<void(const Revision&, const std::vector<RevisionEvent>&)>¶
-
struct RevisionWait¶
- #include <postproject.hpp>
-
class RevisionWaiter¶
- #include <postproject.hpp>
Public Functions
-
RevisionWaiter(const RevisionWaiter&) = delete¶
-
RevisionWaiter &operator=(const RevisionWaiter&) = delete¶
-
inline RevisionWaiter(RevisionWaiter &&other) noexcept¶
-
inline RevisionWaiter &operator=(RevisionWaiter &&other) noexcept¶
-
inline ~RevisionWaiter()¶
-
inline Result<RevisionWait> wait(std::uint64_t after_sequence, std::uint32_t limit = 100, std::chrono::milliseconds timeout = max_revision_wait)¶
-
inline void cancel() noexcept¶
Private Functions
-
inline explicit RevisionWaiter(pp_revision_waiter_t *waiter) noexcept¶
Private Members
-
pp_revision_waiter_t *waiter_ = nullptr¶
Friends
- friend class Production
-
RevisionWaiter(const RevisionWaiter&) = delete¶
-
struct SequenceNaming¶
- #include <postproject.hpp>
Friends
-
inline friend bool operator==(const SequenceNaming &left, const SequenceNaming &right)¶
-
inline friend bool operator!=(const SequenceNaming &left, const SequenceNaming &right)¶
-
inline friend bool operator==(const SequenceNaming &left, const SequenceNaming &right)¶
-
struct SingleResourceContent¶
- #include <postproject.hpp>
Public Members
-
ResourceId resource_id¶
-
ResourceId resource_id¶
-
struct SubmissionOutcome¶
- #include <postproject.hpp>
-
struct SubmissionResult¶
- #include <postproject.hpp>
Public Functions
-
inline SubmissionResult(SubmissionOutcome facts, std::vector<JobLease> ownership)¶
-
SubmissionResult(const SubmissionResult&) = delete¶
-
SubmissionResult &operator=(const SubmissionResult&) = delete¶
-
SubmissionResult(SubmissionResult&&) noexcept = default¶
-
SubmissionResult &operator=(SubmissionResult&&) noexcept = default¶
-
inline SubmissionResult(SubmissionOutcome facts, std::vector<JobLease> ownership)¶
-
struct ToolIdentity¶
- #include <postproject.hpp>
-
class Transaction¶
- #include <postproject.hpp>
Public Functions
-
inline Result<Proposal> prepareProposal(const ClientId &client, const RequestId &request, const std::optional<ProtocolBase> &base = std::nullopt)¶
-
inline Result<ImportedMedia> importMedia(const MediaSource &source)¶
-
inline Result<ImportedMedia> importMedia(const MediaSource &source, std::string_view display_name)¶
-
inline Result<RepresentationId> addRepresentation(const AssetId &asset_id, RepresentationKind kind, const MediaSource &source)¶
-
inline Result<MediaRootId> addMediaRoot(std::string_view name, std::int32_t priority = 0)¶
-
inline Result<MediaRootId> addMediaRoot(std::string_view name, std::string_view label, std::int32_t priority = 0)¶
-
inline Result<void> setMediaRootEnabled(const MediaRootId &root_id, bool enabled)¶
-
inline Result<void> removeMediaRoot(const MediaRootId &root_id)¶
-
inline Result<void> confirmLocator(const ResourceId &resource_id, std::string_view uri, const std::optional<std::string> &root_name = std::nullopt, const std::optional<SequenceNaming> &sequence_naming = std::nullopt)¶
-
inline Result<void> confirmSelection(const RelinkSelection &selection)¶
-
inline Result<void> recordResourceFingerprint(const ResourceId &resource_id, const Fingerprint &fingerprint)¶
-
inline Result<void> recordRepresentationFingerprint(const RepresentationId &representation_id, const Fingerprint &fingerprint)¶
-
inline Result<ContentObservationOutcome> observeResourceContent(const ResourceId &resource_id, std::string_view path, const std::optional<SequenceNaming> &sequence_naming = std::nullopt)¶
-
inline Result<void> recordDependencySet(const RepresentationId &representation_id, const std::vector<Dependency> &dependencies)¶
-
inline Result<void> addExternalIdentifier(const ObjectRef &target, const ExternalIdentifier &identifier)¶
-
inline Result<void> removeExternalIdentifier(const ObjectRef &target, const ExternalIdentifier &identifier)¶
-
inline Result<void> addMetadataValue(const ObjectRef &target, std::string_view vocabulary, std::string_view property, const MetadataValue &value)¶
-
inline Result<void> removeMetadataProperty(const ObjectRef &target, std::string_view vocabulary, std::string_view property)¶
Removes all values of a property; requires a read-bound or based edit.
-
inline Result<JobId> requestJob(const JobRequest &request)¶
-
template<typename Rep, typename Period>
inline Result<JobLease> claimJobLease(const JobId &job_id, const ToolIdentity &tool, std::chrono::duration<Rep, Period> duration, const std::optional<AgentIdentity> &agent = std::nullopt)¶
-
template<typename Rep, typename Period>
inline Result<void> renewJobLease(const JobLease &lease, std::chrono::duration<Rep, Period> duration)¶
-
inline Result<void> completeJobLease(const JobLease &lease, const RepresentationId &output, const ActivityId &activity)¶
-
inline Result<ActivityId> createActivity(const ActivitySpec &spec, const std::vector<ActivityParameter> ¶meters = {})¶
-
inline Result<RegisteredOutputs> registerOutputs(const std::vector<OutputSource> &outputs, const ActivitySpec &spec, const std::vector<ActivityParameter> ¶meters = {})¶
-
inline Result<CommitReceipt> commit()¶
Commits atomically and returns this edit’s own revision, if any.
-
Transaction(const Transaction&) = delete¶
-
Transaction &operator=(const Transaction&) = delete¶
-
inline Transaction(Transaction &&other) noexcept¶
-
inline Transaction &operator=(Transaction &&other) noexcept¶
-
inline ~Transaction()¶
-
inline explicit operator bool() const noexcept¶
Private Functions
-
inline explicit Transaction(pp_transaction_t *transaction) noexcept¶
-
inline Result<ImportedMedia> import_media_impl(const MediaSource &source, const char *display_name)¶
-
inline Result<MediaRootId> add_media_root_impl(std::string_view name, const char *label, std::int32_t priority)¶
-
inline Result<void> mutate_external_identifier(bool remove, const ObjectRef &target, const ExternalIdentifier &identifier)¶
Private Members
-
pp_transaction_t *transaction_ = nullptr¶
Friends
- friend class Production
- friend class ReadSession
-
inline Result<Proposal> prepareProposal(const ClientId &client, const RequestId &request, const std::optional<ProtocolBase> &base = std::nullopt)¶
-
struct TransactionConflict¶
- #include <postproject.hpp>
Public Members
-
ConflictKey key¶
-
std::optional<RevisionId> base_revision_id¶
-
std::uint64_t base_revision_sequence¶
-
RevisionId superseding_revision_id¶
-
std::uint64_t superseding_revision_sequence¶
-
ConflictKey key¶
-
class TransactionId¶
- #include <postproject.hpp>
Public Functions
Public Static Functions
-
static inline Result<TransactionId> fromString(std::string_view text)¶
Friends
-
inline friend constexpr bool operator==(const TransactionId &left, const TransactionId &right) noexcept¶
-
inline friend constexpr bool operator!=(const TransactionId &left, const TransactionId &right) noexcept¶
-
inline friend bool operator<(const TransactionId &left, const TransactionId &right) noexcept¶
-
static inline Result<TransactionId> fromString(std::string_view text)¶
-
class Uuid¶
- #include <postproject.hpp>
Public Types
-
using Bytes = std::array<std::uint8_t, 16>¶
Public Functions
-
using Bytes = std::array<std::uint8_t, 16>¶
-
namespace detail¶
Typedefs
-
using ErrorHandle = std::unique_ptr<pp_error_t, ErrorDeleter>¶
-
using AssetSetHandle = std::unique_ptr<pp_asset_set_t, AssetSetDeleter>¶
-
using MediaRootSetHandle = std::unique_ptr<pp_media_root_set_t, MediaRootSetDeleter>¶
-
using ResolutionSetHandle = std::unique_ptr<pp_resolution_set_t, ResolutionSetDeleter>¶
-
using RepresentationSetHandle = std::unique_ptr<pp_representation_set_t, RepresentationSetDeleter>¶
-
using ExternalIdentifierSetHandle = std::unique_ptr<pp_external_identifier_set_t, ExternalIdentifierSetDeleter>¶
-
using ObjectRefSetHandle = std::unique_ptr<pp_object_ref_set_t, ObjectRefSetDeleter>¶
-
using ObjectQuerySetHandle = std::unique_ptr<pp_object_query_set_t, ObjectQuerySetDeleter>¶
-
using LocatorQuerySetHandle = std::unique_ptr<pp_locator_query_set_t, LocatorQuerySetDeleter>¶
-
using KnownMediaSetHandle = std::unique_ptr<pp_known_media_set_t, KnownMediaSetDeleter>¶
-
using DependencySetHandle = std::unique_ptr<pp_dependency_set_t, DependencySetDeleter>¶
-
using DependencyQuerySetHandle = std::unique_ptr<pp_dependency_query_set_t, DependencyQuerySetDeleter>¶
-
using ActivitySetHandle = std::unique_ptr<pp_activity_set_t, ActivitySetDeleter>¶
-
using JobSetHandle = std::unique_ptr<pp_job_set_t, JobSetDeleter>¶
-
using MetadataSetHandle = std::unique_ptr<pp_metadata_set_t, MetadataSetDeleter>¶
-
using RegenerationPlanSetHandle = std::unique_ptr<pp_regeneration_plan_set_t, RegenerationPlanSetDeleter>¶
-
using ArtifactEvaluationHandle = std::unique_ptr<pp_artifact_evaluation_t, ArtifactEvaluationDeleter>¶
-
using ArtifactReproducibilityHandle = std::unique_ptr<pp_artifact_reproducibility_t, ArtifactReproducibilityDeleter>¶
-
using RevisionSetHandle = std::unique_ptr<pp_revision_set_t, RevisionSetDeleter>¶
-
using RevisionEventSetHandle = std::unique_ptr<pp_revision_event_set_t, RevisionEventSetDeleter>¶
-
using MediaSourceHandle = std::unique_ptr<pp_media_source_t, MediaSourceDeleter>¶
-
using StringHandle = std::unique_ptr<char, StringDeleter>¶
-
using MetadataInputHandle = std::unique_ptr<pp_metadata_input_t, MetadataInputDeleter>¶
Functions
-
inline MediaRootId media_root_id(const pp_media_root_id_t &value)¶
-
inline RevisionId revision_id(const pp_revision_id_t &value)¶
-
inline TransactionId transaction_id(const pp_transaction_id_t &value)¶
-
inline std::optional<std::string> optional_string(const char *value)¶
-
inline Result<void> native_tag(std::uint32_t value, std::uint32_t first, std::uint32_t last, const char *label)¶
-
inline pp_media_root_id_t native_media_root_id(const MediaRootId &value)¶
-
inline ActivityId activity_id(const pp_activity_id_t &value)¶
-
inline pp_activity_id_t native_activity_id(const ActivityId &value)¶
-
inline RepresentationId representation_id(const pp_representation_id_t &value)¶
-
inline pp_representation_id_t native_representation_id(const RepresentationId &value)¶
-
inline ResourceId resource_id(const pp_resource_id_t &value)¶
-
inline pp_resource_id_t native_resource_id(const ResourceId &value)¶
-
inline ProductionId production_id(const pp_production_id_t &value)¶
-
inline pp_production_id_t native_production_id(const ProductionId &value)¶
-
inline pp_revision_id_t native_revision_id(const RevisionId &value)¶
-
inline pp_transaction_id_t native_transaction_id(const TransactionId &value)¶
-
inline std::optional<SequenceNaming> optional_naming(std::uint8_t present, const pp_sequence_naming_t &naming)¶
-
inline Result<std::optional<std::vector<std::uint8_t>>> optional_bytes(std::uint8_t present, const std::uint8_t *value, std::uint64_t length)¶
-
inline Result<std::optional<std::string>> checked_optional_string(const std::optional<std::string> &value, std::string_view label)¶
-
inline Result<EditContext> edit_context(const RevisionContext &context)¶
-
inline Result<std::optional<std::string>> checked_cursor(const std::optional<std::string_view> &cursor)¶
-
inline const char *optional_c_str(const std::optional<std::string> &value) noexcept¶
-
inline Result<Fingerprint> representation_fingerprint(const pp_representation_set_t *representations, std::uint64_t representation_index, std::uint64_t fingerprint_index)¶
-
inline Result<Fingerprint> resource_fingerprint(const pp_representation_set_t *representations, std::uint64_t representation_index, std::uint64_t resource_index, std::uint64_t fingerprint_index)¶
-
inline Result<Representation> representation(const pp_representation_set_t *representations, std::uint64_t index)¶
-
inline Result<std::optional<ActivityEdgeSnapshot>> activity_edge_snapshot(const pp_activity_set_t *activities, std::uint64_t activity_index, std::uint64_t edge_index, bool output)¶
-
inline Result<std::optional<DependencySet>> dependency_set(DependencySetHandle dependencies)¶
-
inline Result<QueryPage<DependencyMatch>> dependency_query_page(DependencyQuerySetHandle matches)¶
-
inline Result<QueryPage<MediaRoot>> media_root_page(MediaRootSetHandle roots)¶
-
inline Result<QueryPage<ObjectMatch>> object_query_page(ObjectQuerySetHandle objects)¶
-
inline QueryPage<ObjectRef> object_ref_page(QueryPage<ObjectMatch> page)¶
-
template<typename Id>
inline Result<QueryPage<Id>> object_id_page(QueryPage<ObjectMatch> page, ObjectKind kind)¶
-
inline Result<QueryPage<ResourceLocator>> locator_page(LocatorQuerySetHandle locators)¶
-
inline Result<QueryPage<Representation>> representation_page(RepresentationSetHandle representations)¶
-
inline Result<QueryPage<KnownMediaMatch>> known_media_page(KnownMediaSetHandle matches)¶
-
inline Result<QueryPage<Activity>> activity_page(ActivitySetHandle activities)¶
-
inline Result<RevisionEvent> revision_event(const pp_revision_event_set_t *events, std::uint64_t index)¶
-
inline Result<QueryPage<RevisionEvent>> revision_event_page(RevisionEventSetHandle events)¶
-
inline Result<Evidence> resource_evidence(const pp_resolution_set_t *resolutions, std::uint64_t representation_index, std::uint64_t resource_index, std::uint64_t evidence_index)¶
-
inline Result<Evidence> candidate_evidence(const pp_resolution_set_t *resolutions, std::uint64_t representation_index, std::uint64_t resource_index, std::uint64_t candidate_index, std::uint64_t evidence_index)¶
-
inline Result<ResourceResolution> resolution_resource(const pp_resolution_set_t *resolutions, std::uint64_t representation_index, std::uint64_t resource_index)¶
-
inline DecisionBase decision_base(const pp_decision_base_t &base)¶
-
inline Result<RelinkSelection> relink_selection(const pp_resolution_set_t *resolutions, std::uint64_t index, const std::vector<ResourceResolution> &resources)¶
-
inline Result<std::vector<RepresentationResolution>> resolution_values(ResolutionSetHandle resolutions)¶
-
inline Result<std::vector<ArtifactDependencyPathSegment>> artifact_dependency_path(const pp_artifact_reason_t &native)¶
-
inline Result<std::vector<std::uint8_t>> required_artifact_bytes(std::uint8_t present, const std::uint8_t *value, std::uint64_t length)¶
-
inline Result<ArtifactReason> checked_artifact_reason(ArtifactReasonPayload payload)¶
-
inline Result<ArtifactReason> artifact_reason(const pp_artifact_reason_t &native)¶
-
inline Result<ArtifactEvaluation> artifact_evaluation(ArtifactEvaluationHandle evaluation)¶
-
inline Result<ArtifactReproducibility> artifact_reproducibility(ArtifactReproducibilityHandle report)¶
-
inline Result<QueryPage<Job>> job_page(JobSetHandle jobs)¶
-
inline pp_decision_base_t native_decision_base(const DecisionBase &base)¶
-
inline Result<SubmissionOutcome> submission_outcome(pp_outcome_t *raw)¶
-
inline pp_protocol_base_t native_protocol_base(const ProtocolBase &base)¶
-
inline ProtocolBase protocol_base(const pp_protocol_base_t &base)¶
-
inline pp_exchange_position_t native_exchange_position(const ExchangePosition &position)¶
-
inline ExchangePosition exchange_position(const pp_exchange_position_t &position)¶
-
inline pp_exchange_limits_t native_exchange_limits(const ExchangeLimits &limits)¶
-
inline RequestIdentity request_identity(const pp_request_identity_t &identity)¶
-
inline pp_request_identity_t native_request_identity(const RequestIdentity &identity)¶
-
inline Result<MetadataInputHandle> checked_metadata_input(pp_error_code_t status, pp_metadata_input_t *input, pp_error_t *error)¶
-
inline Result<MetadataInputHandle> native_metadata_input(const MetadataValue &value)¶
-
inline Result<std::vector<pp_activity_edge_t>> activity_edges(const std::vector<ActivityEdgeInput> &edges)¶
-
inline Result<ActivityRecipe> activity_recipe(const ActivitySpec &spec, const std::vector<ActivityParameter> ¶meters)¶
-
inline Result<MetadataValue> metadata_value(const pp_metadata_value_t *value)¶
-
inline Result<QueryPage<MetadataAssertion>> metadata_page(MetadataSetHandle metadata)¶
-
inline Result<std::vector<RegenerationJobPlan>> regeneration_plans(RegenerationPlanSetHandle plans)¶
-
struct ActivityRecipe¶
- #include <postproject.hpp>
Public Functions
-
inline pp_activity_recipe_t native(const ActivitySpec &spec) const noexcept¶
Public Members
-
std::vector<pp_activity_edge_t> inputs¶
-
std::vector<MetadataInputHandle> values¶
-
std::vector<pp_activity_parameter_t> parameters¶
-
inline pp_activity_recipe_t native(const ActivitySpec &spec) const noexcept¶
-
struct ActivitySetDeleter¶
Public Functions
-
inline void operator()(pp_activity_set_t *activities) const noexcept¶
-
inline void operator()(pp_activity_set_t *activities) const noexcept¶
-
struct ArtifactEvaluationDeleter¶
Public Functions
-
inline void operator()(pp_artifact_evaluation_t *evaluation) const noexcept¶
-
inline void operator()(pp_artifact_evaluation_t *evaluation) const noexcept¶
-
struct ArtifactReproducibilityDeleter¶
Public Functions
-
inline void operator()(pp_artifact_reproducibility_t *report) const noexcept¶
-
inline void operator()(pp_artifact_reproducibility_t *report) const noexcept¶
-
struct AssetSetDeleter¶
Public Functions
-
inline void operator()(pp_asset_set_t *assets) const noexcept¶
-
inline void operator()(pp_asset_set_t *assets) const noexcept¶
-
struct DependencyQuerySetDeleter¶
Public Functions
-
inline void operator()(pp_dependency_query_set_t *matches) const noexcept¶
-
inline void operator()(pp_dependency_query_set_t *matches) const noexcept¶
-
struct DependencySetDeleter¶
Public Functions
-
inline void operator()(pp_dependency_set_t *dependencies) const noexcept¶
-
inline void operator()(pp_dependency_set_t *dependencies) const noexcept¶
-
struct ExternalIdentifierSetDeleter¶
Public Functions
-
inline void operator()(pp_external_identifier_set_t *identifiers) const noexcept¶
-
inline void operator()(pp_external_identifier_set_t *identifiers) const noexcept¶
-
struct KnownMediaSetDeleter¶
Public Functions
-
inline void operator()(pp_known_media_set_t *matches) const noexcept¶
-
inline void operator()(pp_known_media_set_t *matches) const noexcept¶
-
struct LocatorQuerySetDeleter¶
Public Functions
-
inline void operator()(pp_locator_query_set_t *locators) const noexcept¶
-
inline void operator()(pp_locator_query_set_t *locators) const noexcept¶
-
struct MediaRootSetDeleter¶
Public Functions
-
inline void operator()(pp_media_root_set_t *roots) const noexcept¶
-
inline void operator()(pp_media_root_set_t *roots) const noexcept¶
-
struct MediaSourceDeleter¶
Public Functions
-
inline void operator()(pp_media_source_t *source) const noexcept¶
-
inline void operator()(pp_media_source_t *source) const noexcept¶
-
struct MetadataInputDeleter¶
- #include <postproject.hpp>
Public Functions
-
inline void operator()(pp_metadata_input_t *input) const noexcept¶
-
inline void operator()(pp_metadata_input_t *input) const noexcept¶
-
struct MetadataSetDeleter¶
Public Functions
-
inline void operator()(pp_metadata_set_t *metadata) const noexcept¶
-
inline void operator()(pp_metadata_set_t *metadata) const noexcept¶
-
struct NativeNaming¶
Public Functions
-
inline const pp_sequence_naming_t *get()¶
Public Static Functions
-
static inline Result<NativeNaming> make(const std::optional<SequenceNaming> &naming)¶
-
inline const pp_sequence_naming_t *get()¶
-
struct ObjectQuerySetDeleter¶
Public Functions
-
inline void operator()(pp_object_query_set_t *objects) const noexcept¶
-
inline void operator()(pp_object_query_set_t *objects) const noexcept¶
-
struct ObjectRefSetDeleter¶
Public Functions
-
inline void operator()(pp_object_ref_set_t *objects) const noexcept¶
-
inline void operator()(pp_object_ref_set_t *objects) const noexcept¶
-
struct RegenerationPlanSetDeleter¶
Public Functions
-
inline void operator()(pp_regeneration_plan_set_t *plans) const noexcept¶
-
inline void operator()(pp_regeneration_plan_set_t *plans) const noexcept¶
-
struct RepresentationSetDeleter¶
Public Functions
-
inline void operator()(pp_representation_set_t *representations) const noexcept¶
-
inline void operator()(pp_representation_set_t *representations) const noexcept¶
-
struct ResolutionSetDeleter¶
Public Functions
-
inline void operator()(pp_resolution_set_t *resolutions) const noexcept¶
-
inline void operator()(pp_resolution_set_t *resolutions) const noexcept¶
-
struct RevisionEventSetDeleter¶
Public Functions
-
inline void operator()(pp_revision_event_set_t *events) const noexcept¶
-
inline void operator()(pp_revision_event_set_t *events) const noexcept¶
-
using ErrorHandle = std::unique_ptr<pp_error_t, ErrorDeleter>¶
-
using ActivityEdgeInput = std::variant<RepresentationId, std::pair<RepresentationId, std::string>>¶