finos/morphir-host/metadata/grants does not have a README file

    GrantFormat

    pub(all) enum GrantFormat {
    IonText
    IonBinary
    Json
    }

    A caller-selected format. Ion is preferred; JSON is an explicit opt-out.

    GrantedService

    pub(all) struct GrantedService {
    node : String
    node_sha256 : String
    helper : String
    helper_bundle_sha256 : String
    service : String
    service_sha256 : String
    policy : String
    lock : String
    registry : String
    state : String
    release : String
    }

    Exact, separately authorized paths. Configuration is only a selection.

    Grants

    pub struct Grants {
    // private fields
    }

    Opaque authority from a host-selected file, never a discovered project file. Parsing and matching perform no filesystem access, probing or acquisition.

    Grants::decode

    fn Grants::decode(bytes : Bytes, format : GrantFormat, origin : String, system : String) -> Grants raise

    Decode a bounded, closed host grant document. Relative paths resolve from this explicitly selected file's absolute origin, not a project selection.

    Grants::select

    fn Grants::select(self : Grants, scope :
    ProjectMetadataScope
    , workspace : String, invocation : String) -> GrantedService raise

    Match this frozen project selection against independent exact grants. The workspace/invocation roots come from the owning host, not provider metadata.

    host_path

    fn host_path(path : String, base : String, system : String) -> String raise

    Resolve an explicit CLI host path from its invocation directory. This does not consult filesystem state, environment configuration or project metadata.

    Source Files