Skip to content
This repository has been archived by the owner on May 3, 2022. It is now read-only.

Commit

Permalink
Add mediaType to LocationRef and use ImagePlatform in Bundle (#620)
Browse files Browse the repository at this point in the history
  • Loading branch information
radu-matei authored Feb 11, 2019
1 parent ea8bd52 commit dfb8ec8
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions pkg/bundle/bundle.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,18 +59,19 @@ func (b Bundle) WriteTo(w io.Writer) (int64, error) {

// LocationRef specifies a location within the invocation package
type LocationRef struct {
Path string `json:"path" mapstructure:"path"`
Field string `json:"field" mapstructure:"field"`
Path string `json:"path" mapstructure:"path"`
Field string `json:"field" mapstructure:"field"`
MediaType string `json:"mediaType" mapstructure:"mediaType"`
}

// BaseImage contains fields shared across image types
type BaseImage struct {
ImageType string `json:"imageType" mapstructure:"imageType"`
Image string `json:"image" mapstructure:"image"`
Digest string `json:"digest,omitempty" mapstructure:"digest"`
Size uint64 `json:"size,omitempty" mapstructure:"size"`
Platform string `json:"platform,omitempty" mapstructure:"platform"`
MediaType string `json:"mediaType,omitempty" mapstructure:"mediaType"`
ImageType string `json:"imageType" mapstructure:"imageType"`
Image string `json:"image" mapstructure:"image"`
Digest string `json:"digest,omitempty" mapstructure:"digest"`
Size uint64 `json:"size,omitempty" mapstructure:"size"`
Platform ImagePlatform `json:"platform,omitempty" mapstructure:"platform"`
MediaType string `json:"mediaType,omitempty" mapstructure:"mediaType"`
}

// ImagePlatform indicates what type of platform an image is built for
Expand Down

0 comments on commit dfb8ec8

Please sign in to comment.