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

Add registry image pkg #76

Merged
merged 8 commits into from
Sep 7, 2021
Merged

Add registry image pkg #76

merged 8 commits into from
Sep 7, 2021

Commits on Sep 2, 2021

  1. Add registryimage pkg

    In order to assist in the creation of HCP Packer Registry Image metadata
    for various Artifacts. A new package is being added to assist in the
      creation of a registryimage.Image from an existing Artifact.
    
    The FromArtifact function provides a simple approach of extracting the
    required bits from an Artifact needed by the HCP Packer registry. The
    default values, which can be overwritten by the use of a
    ArtifactOverrideFunc , were selected to provide some standard defaults
    that are set to be available for most plugins were bundled
    with Packer prior to v1.7.0. When those defaults are not viable the
    package provider override funcs that can be used by the consumer for
    setting the appropriate values.
    
    For those  plugins that generate more than one registryimage.Image per
    Artifact one can construct a []registryimage.Image and return that
    information as the response of Packer core calling
    artifact.State(registryimage.ArtifactStateURI).
    Wilken Rivera committed Sep 2, 2021
    Configuration menu
    Copy the full SHA
    7b13739 View commit details
    Browse the repository at this point in the history
  2. Add FromMappedData func

    * Move pkg around to remove a bit of the stutter.
    * Add some example tests for a few of the functions provided by the
      package.
    Wilken Rivera committed Sep 2, 2021
    Configuration menu
    Copy the full SHA
    7ab6bae View commit details
    Browse the repository at this point in the history
  3. Init map if nil

    Wilken Rivera committed Sep 2, 2021
    Configuration menu
    Copy the full SHA
    22040a1 View commit details
    Browse the repository at this point in the history
  4. Add validate method to Image type

    Wilken Rivera committed Sep 2, 2021
    Configuration menu
    Copy the full SHA
    ddf6a33 View commit details
    Browse the repository at this point in the history
  5. update go mod files

    Wilken Rivera committed Sep 2, 2021
    Configuration menu
    Copy the full SHA
    f86c7cc View commit details
    Browse the repository at this point in the history
  6. Add stringer for image

    Wilken Rivera committed Sep 2, 2021
    Configuration menu
    Copy the full SHA
    ca76e04 View commit details
    Browse the repository at this point in the history
  7. Drop mapstructure tags

    Wilken Rivera committed Sep 2, 2021
    Configuration menu
    Copy the full SHA
    8464b03 View commit details
    Browse the repository at this point in the history

Commits on Sep 3, 2021

  1. Bump go modules

    Wilken Rivera committed Sep 3, 2021
    Configuration menu
    Copy the full SHA
    edcb734 View commit details
    Browse the repository at this point in the history