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

Test CI #1

Open
wants to merge 44 commits into
base: main
Choose a base branch
from
Open

Test CI #1

wants to merge 44 commits into from

Commits on Nov 25, 2023

  1. index: add Image Index interface

    The OCI spec defines an Image Index concept to handle
    multiple manifests in an OCI image. This adds the interface
    for Image Index.
    
    Signed-off-by: Husni Faiz <[email protected]>
    husni-faiz committed Nov 25, 2023
    Configuration menu
    Copy the full SHA
    ad76a8f View commit details
    Browse the repository at this point in the history
  2. remote: index: function to create new index

    Signed-off-by: Husni Faiz <[email protected]>
    husni-faiz committed Nov 25, 2023
    Configuration menu
    Copy the full SHA
    aa12399 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    91150d7 View commit details
    Browse the repository at this point in the history
  4. index: optimize: get image from descriptor

    remote.Image uses descriptor to get the image. Getting the descriptor
    first and deriving the image from the descriptor is efficient instead
    of getting the descriptor twice.
    
    Signed-off-by: Husni Faiz <[email protected]>
    husni-faiz committed Nov 25, 2023
    Configuration menu
    Copy the full SHA
    28f3b88 View commit details
    Browse the repository at this point in the history
  5. index: check for image architecture

    Signed-off-by: Husni Faiz <[email protected]>
    husni-faiz committed Nov 25, 2023
    Configuration menu
    Copy the full SHA
    296a9a0 View commit details
    Browse the repository at this point in the history
  6. index: add default path to Save()

    Signed-off-by: Husni Faiz <[email protected]>
    husni-faiz committed Nov 25, 2023
    Configuration menu
    Copy the full SHA
    8996e24 View commit details
    Browse the repository at this point in the history
  7. index: add keychain to new index

    Signed-off-by: Husni Faiz <[email protected]>
    husni-faiz committed Nov 25, 2023
    Configuration menu
    Copy the full SHA
    6634a56 View commit details
    Browse the repository at this point in the history
  8. index: add image index types

    Signed-off-by: Husni Faiz <[email protected]>
    husni-faiz committed Nov 25, 2023
    Configuration menu
    Copy the full SHA
    aacdf1b View commit details
    Browse the repository at this point in the history
  9. indexOptions for creating image index

    Signed-off-by: Husni Faiz <[email protected]>
    husni-faiz committed Nov 25, 2023
    Configuration menu
    Copy the full SHA
    111426e View commit details
    Browse the repository at this point in the history
  10. index: path and mediatype options for creating index

    Signed-off-by: Husni Faiz <[email protected]>
    husni-faiz committed Nov 25, 2023
    Configuration menu
    Copy the full SHA
    6e53d36 View commit details
    Browse the repository at this point in the history
  11. index: add remove index method

    Signed-off-by: Husni Faiz <[email protected]>
    husni-faiz committed Nov 25, 2023
    Configuration menu
    Copy the full SHA
    01d9c2d View commit details
    Browse the repository at this point in the history
  12. remote: index: remove path option

    Signed-off-by: Husni Faiz <[email protected]>
    husni-faiz committed Nov 25, 2023
    Configuration menu
    Copy the full SHA
    aa2b4d7 View commit details
    Browse the repository at this point in the history
  13. remote: index: user docker mediatype by default

    Signed-off-by: Husni Faiz <[email protected]>
    husni-faiz committed Nov 25, 2023
    Configuration menu
    Copy the full SHA
    9d9b146 View commit details
    Browse the repository at this point in the history
  14. remote: index: remove saving to layout

    Signed-off-by: Husni Faiz <[email protected]>
    husni-faiz committed Nov 25, 2023
    Configuration menu
    Copy the full SHA
    9d3ba44 View commit details
    Browse the repository at this point in the history
  15. remote: index: save index to registry

    Signed-off-by: Husni Faiz <[email protected]>
    husni-faiz committed Nov 25, 2023
    Configuration menu
    Copy the full SHA
    3bfc69c View commit details
    Browse the repository at this point in the history
  16. index: local: annotate and add functionality

    Signed-off-by: Husni Faiz <[email protected]>
    husni-faiz committed Nov 25, 2023
    Configuration menu
    Copy the full SHA
    a4867ad View commit details
    Browse the repository at this point in the history
  17. remote/index: return error instead of calling panic

    Signed-off-by: Husni Faiz <[email protected]>
    husni-faiz committed Nov 25, 2023
    Configuration menu
    Copy the full SHA
    0b16a72 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    a0f69cf View commit details
    Browse the repository at this point in the history
  19. local/index: return error instead of calling panic

    Signed-off-by: Husni Faiz <[email protected]>
    husni-faiz committed Nov 25, 2023
    Configuration menu
    Copy the full SHA
    7b02b56 View commit details
    Browse the repository at this point in the history
  20. remote/new_index: validate index name

    Signed-off-by: Husni Faiz <[email protected]>
    husni-faiz committed Nov 25, 2023
    Configuration menu
    Copy the full SHA
    515b5d8 View commit details
    Browse the repository at this point in the history
  21. local/index: refactor interface functions to use the index path

    AppendManifest and AnnotateManifest functions are now refactored
    to be ImageIndex functions.
    
    Signed-off-by: Husni Faiz <[email protected]>
    husni-faiz committed Nov 25, 2023
    Configuration menu
    Copy the full SHA
    ef2826b View commit details
    Browse the repository at this point in the history
  22. local/index_options: create new index with IndexManifest

    Signed-off-by: Husni Faiz <[email protected]>
    husni-faiz committed Nov 25, 2023
    Configuration menu
    Copy the full SHA
    59d91ac View commit details
    Browse the repository at this point in the history
  23. remote/index_options: create new index with IndexManifest

    Signed-off-by: Husni Faiz <[email protected]>
    husni-faiz committed Nov 25, 2023
    Configuration menu
    Copy the full SHA
    74f6be7 View commit details
    Browse the repository at this point in the history
  24. remote/new_index: rename file

    Signed-off-by: Husni Faiz <[email protected]>
    husni-faiz committed Nov 25, 2023
    Configuration menu
    Copy the full SHA
    2e3286b View commit details
    Browse the repository at this point in the history
  25. get IndexManifest from ggcr index

    Signed-off-by: Husni Faiz <[email protected]>
    husni-faiz committed Nov 25, 2023
    Configuration menu
    Copy the full SHA
    519f329 View commit details
    Browse the repository at this point in the history
  26. Configuration menu
    Copy the full SHA
    3c0c640 View commit details
    Browse the repository at this point in the history
  27. remote/index: ImageIndexTest to be used in unit tests

    Signed-off-by: Husni Faiz <[email protected]>
    husni-faiz committed Nov 25, 2023
    Configuration menu
    Copy the full SHA
    da06d58 View commit details
    Browse the repository at this point in the history
  28. remote/index_test: setup a registry for test

    Signed-off-by: Husni Faiz <[email protected]>
    husni-faiz committed Nov 25, 2023
    Configuration menu
    Copy the full SHA
    7e3a12e View commit details
    Browse the repository at this point in the history
  29. remote/index_test: basic tests for remote index

    Signed-off-by: Husni Faiz <[email protected]>
    husni-faiz committed Nov 25, 2023
    Configuration menu
    Copy the full SHA
    b79b4a3 View commit details
    Browse the repository at this point in the history
  30. Configuration menu
    Copy the full SHA
    410d68c View commit details
    Browse the repository at this point in the history
  31. remote/new_index: use index in registry if already exists

    Signed-off-by: Husni Faiz <[email protected]>
    husni-faiz committed Nov 25, 2023
    Configuration menu
    Copy the full SHA
    f67e68a View commit details
    Browse the repository at this point in the history
  32. remote/index: remove ManifestSize unused function

    Signed-off-by: Husni Faiz <[email protected]>
    husni-faiz committed Nov 25, 2023
    Configuration menu
    Copy the full SHA
    22d75d2 View commit details
    Browse the repository at this point in the history
  33. index: add brief comments to all index functions

    Signed-off-by: Husni Faiz <[email protected]>
    husni-faiz committed Nov 25, 2023
    Configuration menu
    Copy the full SHA
    e3176ca View commit details
    Browse the repository at this point in the history
  34. index: remove returning error when platform information is missing

    Platform information is OPTIONAL if the target is plaform independent.
    See specification for more info:
    https://github.com/opencontainers/image-spec/blob/0b40f0f367c396cc5a7d6a2e8c8842271d3d3844/image-index.md#image-index-property-descriptions
    
    Signed-off-by: Husni Faiz <[email protected]>
    husni-faiz committed Nov 25, 2023
    Configuration menu
    Copy the full SHA
    0f6f9fb View commit details
    Browse the repository at this point in the history
  35. local/index: remove AppendManifet wrapper function

    Signed-off-by: Husni Faiz <[email protected]>
    husni-faiz committed Nov 25, 2023
    Configuration menu
    Copy the full SHA
    8db0812 View commit details
    Browse the repository at this point in the history
  36. local/index: save indent formatted json output

    Signed-off-by: Husni Faiz <[email protected]>
    husni-faiz committed Nov 25, 2023
    Configuration menu
    Copy the full SHA
    dcc8fb7 View commit details
    Browse the repository at this point in the history
  37. local/index save: use os module instead of layout package

    Signed-off-by: Husni Faiz <[email protected]>
    husni-faiz committed Nov 25, 2023
    Configuration menu
    Copy the full SHA
    40ae8a5 View commit details
    Browse the repository at this point in the history
  38. Configuration menu
    Copy the full SHA
    6135128 View commit details
    Browse the repository at this point in the history
  39. local/index: wrap GetIndexManifest errors

    Signed-off-by: Husni Faiz <[email protected]>
    husni-faiz committed Nov 25, 2023
    Configuration menu
    Copy the full SHA
    8eaf547 View commit details
    Browse the repository at this point in the history
  40. new_index: check for local index first

    Signed-off-by: Husni Faiz <[email protected]>
    husni-faiz committed Nov 25, 2023
    Configuration menu
    Copy the full SHA
    ef13a9f View commit details
    Browse the repository at this point in the history
  41. local/index: copy referenced images to same registry as index

    When creating a new local index, if the the referenced images are
    not in the same registry as the registry we intend to push the index
    we copy the images to the same registry as the index.
    
    NOTE: In future we plan to store the image reference names locally
    and only copy the images when push the index to registry.
    
    Signed-off-by: Husni Faiz <[email protected]>
    husni-faiz committed Nov 25, 2023
    Configuration menu
    Copy the full SHA
    2e2238f View commit details
    Browse the repository at this point in the history
  42. index: fix github action tests failing

    This fixes the following errors,
    - use strings.ReplaceAll method instead of strings.Replace
    - `infromation` is a misspelling of `information`
    - var-naming: don't use underscores in Go names
    - unnecessary conversion (unconvert)
    - ineffectual assignment to err
    - unnecessary trailing newline
    - unnecessary leading newline
    
    Signed-off-by: Husni Faiz <[email protected]>
    husni-faiz committed Nov 25, 2023
    Configuration menu
    Copy the full SHA
    bf70c7c View commit details
    Browse the repository at this point in the history
  43. fix linter error: io/ioutil deprecated

    Signed-off-by: Husni Faiz <[email protected]>
    husni-faiz committed Nov 25, 2023
    Configuration menu
    Copy the full SHA
    e4a31d7 View commit details
    Browse the repository at this point in the history
  44. Configuration menu
    Copy the full SHA
    2264178 View commit details
    Browse the repository at this point in the history