mirror of
https://github.com/hanzoai/pack.git
synced 2026-09-30 23:43:13 +00:00
* refactor: update to go 1.21+ syntax and idioms
- Replace interface{} with any throughout the codebase.
- Use strings.SplitSeq and strings.CutPrefix for more efficient string processing.
- Utilize slices.Contains for cleaner slice membership checks.
- Use strings.Builder for efficient string concatenation.
- Adopt modern loop syntax (for range) for iteration.
- Remove redundant omitempty tags in struct definitions.
Generated-by: aiautocommit
* refactor: linting fix
* build: standardize commit messages for automation tasks
- Update commit messages in the upgrade task to follow conventional commit standards.
- Ensure consistency across automated fix, formatting, and snapshot update processes.
Generated-by: aiautocommit
* refactor: update commit messages in mise-upgrade task
Generated-by: aiautocommit
16 lines
566 B
Go
16 lines
566 B
Go
package buildkit
|
|
|
|
import specs "github.com/opencontainers/image-spec/specs-go/v1"
|
|
|
|
// Image is the JSON structure which describes some basic information about the image.
|
|
// This provides the `application/vnd.oci.image.config.v1+json` mediatype when marshalled to JSON.
|
|
type Image struct {
|
|
specs.Image
|
|
|
|
// Config defines the execution parameters which should be used as a base when running a container using the image.
|
|
Config specs.ImageConfig `json:"config"`
|
|
|
|
// Variant defines platform variant. To be added to OCI.
|
|
Variant string `json:"variant,omitempty"`
|
|
}
|