bookclerk_library::entities::remote_plugin_consents

Development These docs follow the development version and change with every merge.

Last updated View as Markdown

SeaORM entity for remote_plugin_consents: on a branch node, this install's operator consent for each owner plugin a library wants to run here (written by control_plane::remote_consents).

Item Kind Summary
Model struct Row shape for one owner plugin of one library.
ColumnIter struct An iterator over the variants of [Column]
Entity struct Generated by sea-orm-macros
PrimaryKeyIter struct An iterator over the variants of [PrimaryKey]
ActiveModel struct Generated by sea-orm-macros
RelationIter struct An iterator over the variants of [Relation]
Column enum Generated by sea-orm-macros
PrimaryKey enum Generated by sea-orm-macros
Relation enum Declared SeaORM relations (none).

Structs

Model

pub struct Model {
    pub parent_library_id: String,
    pub plugin_key: String,
    pub requested_version: String,
    pub requested_grant_json: String,
    pub requested_artifact_url: String,
    pub requested_artifact_sha256: String,
    pub requested_artifact_payload_sha256: String,
    pub version: Option<String>,
    pub approved_request_json: Option<String>,
    pub approved_artifact_url: Option<String>,
    pub approved_artifact_sha256: Option<String>,
    pub approved_artifact_payload_sha256: Option<String>,
    pub grant_json: Option<String>,
    pub approved_at: Option<String>,
    pub approved_by: Option<String>,
    pub revoked_at: Option<String>,
    pub updated_at: String,
}

Row shape for one owner plugin of one library.

Fields

  • parent_library_id: Library id the plugin belongs to.
  • plugin_key: Canonical plugin key.
  • requested_version: Version the owner currently deploys here.
  • requested_grant_json: The owner's approved grant (JSON) for that version.
  • requested_artifact_url: URL of the archive the owner deploys to this host (the artifact for this host's target).
  • requested_artifact_sha256: SHA-256 of that archive, as the owner states it.
  • requested_artifact_payload_sha256: Payload-root digest of the tree that archive unpacks to, as the owner states it (the plugins/.versions/<digest> cache key).
  • version: Version this install's operator approved; None until approved.
  • approved_request_json: The owner's grant as it stood when the operator approved; a later request outside it needs approval again.
  • approved_artifact_url: The archive URL as it stood when the operator approved; another URL needs approval again.
  • approved_artifact_sha256: The archive SHA-256 as it stood when the operator approved.
  • approved_artifact_payload_sha256: The payload-root digest as it stood when the operator approved.
  • grant_json: The grant this install's operator consented to (JSON), never wider than approved_request_json.
  • approved_at: RFC 3339 approval time.
  • approved_by: Audit identity of the approver (platform for an automatic approval of a bundled platform plugin).
  • revoked_at: RFC 3339 time this install's operator revoked the approval; while set, no automatic approval is given (only an operator approval clears it).
  • updated_at: RFC 3339 time of the last write.

Model::into_ex

pub fn into_ex(self) -> Self

Generated by sea-orm-macros

Implements: Clone, Debug, Eq, From<Model>, FromQueryResult, IntoActiveModel<ActiveModel>, ModelTrait, PartialEq, TryFrom<ActiveModel>, TryIntoModel<Model>

ColumnIter

pub struct ColumnIter {
    /* private fields */
}

An iterator over the variants of Column

Implements: Clone, Debug, DoubleEndedIterator, ExactSizeIterator, FusedIterator, Iterator

Entity

pub struct Entity;

Generated by sea-orm-macros

Implements: Clone, Copy, Debug, Default, EntityName, EntityTrait, Iden, IdenStatic

PrimaryKeyIter

pub struct PrimaryKeyIter {
    /* private fields */
}

An iterator over the variants of PrimaryKey

Implements: Clone, Debug, DoubleEndedIterator, ExactSizeIterator, FusedIterator, Iterator

ActiveModel

pub struct ActiveModel {
    pub parent_library_id: ActiveValue<String>,
    pub plugin_key: ActiveValue<String>,
    pub requested_version: ActiveValue<String>,
    pub requested_grant_json: ActiveValue<String>,
    pub requested_artifact_url: ActiveValue<String>,
    pub requested_artifact_sha256: ActiveValue<String>,
    pub requested_artifact_payload_sha256: ActiveValue<String>,
    pub version: ActiveValue<Option<String>>,
    pub approved_request_json: ActiveValue<Option<String>>,
    pub approved_artifact_url: ActiveValue<Option<String>>,
    pub approved_artifact_sha256: ActiveValue<Option<String>>,
    pub approved_artifact_payload_sha256: ActiveValue<Option<String>>,
    pub grant_json: ActiveValue<Option<String>>,
    pub approved_at: ActiveValue<Option<String>>,
    pub approved_by: ActiveValue<Option<String>>,
    pub revoked_at: ActiveValue<Option<String>>,
    pub updated_at: ActiveValue<String>,
}

Generated by sea-orm-macros

Fields

  • parent_library_id: Generated by sea-orm-macros
  • plugin_key: Generated by sea-orm-macros
  • requested_version: Generated by sea-orm-macros
  • requested_grant_json: Generated by sea-orm-macros
  • requested_artifact_url: Generated by sea-orm-macros
  • requested_artifact_sha256: Generated by sea-orm-macros
  • requested_artifact_payload_sha256: Generated by sea-orm-macros
  • version: Generated by sea-orm-macros
  • approved_request_json: Generated by sea-orm-macros
  • approved_artifact_url: Generated by sea-orm-macros
  • approved_artifact_sha256: Generated by sea-orm-macros
  • approved_artifact_payload_sha256: Generated by sea-orm-macros
  • grant_json: Generated by sea-orm-macros
  • approved_at: Generated by sea-orm-macros
  • approved_by: Generated by sea-orm-macros
  • revoked_at: Generated by sea-orm-macros
  • updated_at: Generated by sea-orm-macros

Implements: ActiveModelBehavior, ActiveModelTrait, Clone, Debug, Default, From<Model>, IntoActiveModel<ActiveModel>, PartialEq, TryFrom<ActiveModel>, TryIntoModel<Model>

RelationIter

pub struct RelationIter {
    /* private fields */
}

An iterator over the variants of Relation

Implements: Clone, Debug, DoubleEndedIterator, ExactSizeIterator, FusedIterator, Iterator

Enums

Column

pub enum Column {
    ParentLibraryId,
    PluginKey,
    RequestedVersion,
    RequestedGrantJson,
    RequestedArtifactUrl,
    RequestedArtifactSha256,
    RequestedArtifactPayloadSha256,
    Version,
    ApprovedRequestJson,
    ApprovedArtifactUrl,
    ApprovedArtifactSha256,
    ApprovedArtifactPayloadSha256,
    GrantJson,
    ApprovedAt,
    ApprovedBy,
    RevokedAt,
    UpdatedAt,
}

Generated by sea-orm-macros

Variants

  • ParentLibraryId: Generated by sea-orm-macros
  • PluginKey: Generated by sea-orm-macros
  • RequestedVersion: Generated by sea-orm-macros
  • RequestedGrantJson: Generated by sea-orm-macros
  • RequestedArtifactUrl: Generated by sea-orm-macros
  • RequestedArtifactSha256: Generated by sea-orm-macros
  • RequestedArtifactPayloadSha256: Generated by sea-orm-macros
  • Version: Generated by sea-orm-macros
  • ApprovedRequestJson: Generated by sea-orm-macros
  • ApprovedArtifactUrl: Generated by sea-orm-macros
  • ApprovedArtifactSha256: Generated by sea-orm-macros
  • ApprovedArtifactPayloadSha256: Generated by sea-orm-macros
  • GrantJson: Generated by sea-orm-macros
  • ApprovedAt: Generated by sea-orm-macros
  • ApprovedBy: Generated by sea-orm-macros
  • RevokedAt: Generated by sea-orm-macros
  • UpdatedAt: Generated by sea-orm-macros

Implements: Clone, ColumnTrait, Copy, Debug, FromStr, Iden, IdenStatic, IntoEnumIterator

PrimaryKey

pub enum PrimaryKey {
    ParentLibraryId,
    PluginKey,
}

Generated by sea-orm-macros

Variants

  • ParentLibraryId: Generated by sea-orm-macros
  • PluginKey: Generated by sea-orm-macros

Implements: Clone, Copy, Debug, Iden, IdenStatic, IntoEnumIterator, PrimaryKeyToColumn, PrimaryKeyTrait

Relation

pub enum Relation {}

Declared SeaORM relations (none).

Implements: Clone, Copy, Debug, IntoEnumIterator, RelationTrait

Generated from crates/bookclerk-library at main · View as Markdown