Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

correct documentation for OCI uploader and downloader #665

Closed
wants to merge 37 commits into from

Conversation

hilmarf
Copy link
Member

@hilmarf hilmarf commented Feb 19, 2024

Description

Please include a summary of the changes and the related issue. Please also include relevant motivation and context. List any dependencies that are required for this change.

What type of PR is this? (check all applicable)

  • 🍕 Feature
  • 🐛 Bug Fix
  • 📝 Documentation Update
  • 🎨 Style
  • 🧑‍💻 Code Refactor
  • 🔥 Performance Improvements
  • ✅ Test
  • 🤖 Build
  • 🔁 CI
  • 📦 Chore (Release)
  • ⏩ Revert

Related Tickets & Documents

  • Related Issue # (issue)
  • Closes # (issue)
  • Fixes # (issue)

Remove if not applicable

Screenshots

Added tests?

  • 👍 yes
  • 🙅 no, because they aren't needed
  • 🙋 no, because I need help
  • Separate ticket for tests # (issue/pr)

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

Added to documentation?

  • 📜 README.md
  • 🙅 no documentation needed

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

@hilmarf hilmarf requested a review from mandelsoft February 19, 2024 12:14
@github-actions github-actions bot added the size/s Small label Feb 19, 2024
@hilmarf hilmarf added area/documentation Documentation related documentation and removed size/s Small labels Feb 19, 2024
Copy link
Contributor

github-actions bot commented Feb 19, 2024

Mend Scan Summary: ❌

Repository: open-component-model/ocm

VIOLATION DESCRIPTION NUMBER OF VIOLATIONS
HIGH/CRITICAL SECURITY VULNERABILITIES 0
MAJOR UPDATES AVAILABLE 0
LICENSE REQUIRES REVIEW 0
HIGH RISK LICENSES 9
RESTRICTIED LICENSE FOR ON-PREMISE DELIVERY 1

Detailed Logs: mend-scan-> Generate Report
Mend UI

Copy link
Contributor

ocmbot bot commented Feb 19, 2024

Integration Tests for 34e6d22 run with result: Success ✅!

@github-actions github-actions bot added the size/m Medium label Feb 19, 2024
@hilmarf hilmarf marked this pull request as ready for review February 19, 2024 13:00
Copy link
Contributor

ocmbot bot commented Feb 19, 2024

Integration Tests for 34e6d22 run with result: Success ✅!

The following artifact media types are supported:
`+listformat.FormatList("", supportedMimeTypes...)+`
`+listformat.FormatList("", artdesc.ArchiveBlobTypes()...)+`
By default, it is registered for these mimetypes.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there is no default registration so far

It accepts a config with the following fields:
`+listformat.FormatMapElements("", AttributeDescription()),
`+listformat.FormatMapElements("", ociuploadattr.AttributeDescription())+`
Copy link
Contributor

@mandelsoft mandelsoft Feb 19, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ociupload belongs to the upload handler.

It should add, that if no mime types are configured the supported mimes types are used.

@mandelsoft
Copy link
Contributor

I just saw, that the text in the downloader tests still refer to upload.

Comment on lines -76 to -78
`+listformat.FormatMapElements("", ociuploadattr.AttributeDescription())+`
Alternatively, a single string value can be given representing an OCI repository
reference.`,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The deleted one is the upload description

@hilmarf hilmarf closed this Feb 19, 2024
@hilmarf hilmarf deleted the doc/oci_loader branch February 19, 2024 13:49
@hilmarf hilmarf restored the doc/oci_loader branch March 14, 2024 14:06
@hilmarf hilmarf deleted the doc/oci_loader branch March 18, 2024 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/documentation Documentation related size/m Medium
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants