Skip to content

Commit

Permalink
fix doc
Browse files Browse the repository at this point in the history
  • Loading branch information
mandelsoft committed Aug 24, 2022
1 parent 350ad27 commit ad4dd17
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/ocm/model.md
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ global identity triple to the following procedure:
[component descriptor](#component-descriptor) by using its
component identity and version name in
the desired [repository context](#repository-contexts)
- identify the artefact by is local identity (distinguish between [source](#sources)
- identify the artefact by its local [identity](#identity) (distinguish between [source](#sources)
and [resource](#resources))
- [apply](operations.md#access-methods) the described [access method](#artefact-access)

Expand Down
11 changes: 8 additions & 3 deletions docs/ocm/operations.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,15 @@ according to their [specifications](../formats/accessmethods/README.md).
The local access method is mapped to the local blob access provided by
the repository.

They have to support read access, only. At least a stream access for the
denoted blob is required.
They have to support read access, only. At least a media type and stream access
for the denoted blob is required.

- **`<method>.GetStream(AccessSpecification) (Byte Stream, error)`**
- **`<method>.GetMediaType(RepositoryContext, ComponentVersion, AccessSpecification) (string, error)`**

Provide the media type of the described artefact. It might explicitly be stored
as part of the access speficatio, or implicitly provided by the access method.

- **`<method>.GetStream(RepositoryContext, ComponentVersion, AccessSpecification) (Byte Stream, error)`**

Provide access to the blob content described by a dedicated access
specification.

0 comments on commit ad4dd17

Please sign in to comment.