-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20027 from smarterclayton/layer
Add `oc image append` which adds layers to a schema1/2 image
- Loading branch information
Showing
31 changed files
with
2,143 additions
and
778 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package docker10 | ||
|
||
// Convert_DockerV1CompatibilityImage_to_DockerImageConfig takes a Docker registry digest | ||
// (schema 2.1) and converts it to the external API version of Image. | ||
func Convert_DockerV1CompatibilityImage_to_DockerImageConfig(in *DockerV1CompatibilityImage, out *DockerImageConfig) error { | ||
*out = DockerImageConfig{ | ||
ID: in.ID, | ||
Parent: in.Parent, | ||
Comment: in.Comment, | ||
Created: in.Created, | ||
Container: in.Container, | ||
DockerVersion: in.DockerVersion, | ||
Author: in.Author, | ||
Architecture: in.Architecture, | ||
Size: in.Size, | ||
OS: "linux", | ||
ContainerConfig: in.ContainerConfig, | ||
} | ||
if in.Config != nil { | ||
out.Config = &DockerConfig{} | ||
*out.Config = *in.Config | ||
} | ||
return nil | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
// Package docker10 is the docker10 version of the API. | ||
// Package docker10 provides types used by docker/distribution and moby/moby. | ||
// This package takes no dependency on external types. | ||
package docker10 |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.