forked from containers/skopeo
-
Notifications
You must be signed in to change notification settings - Fork 0
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 containers#992 from rhatdan/inspect
Make InspectOutput an external object
- Loading branch information
Showing
2 changed files
with
25 additions
and
18 deletions.
There are no files selected for viewing
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,23 @@ | ||
package inspect | ||
|
||
import ( | ||
"time" | ||
|
||
digest "github.com/opencontainers/go-digest" | ||
) | ||
|
||
// Output is the output format of (skopeo inspect), | ||
// primarily so that we can format it with a simple json.MarshalIndent. | ||
type Output struct { | ||
Name string `json:",omitempty"` | ||
Tag string `json:",omitempty"` | ||
Digest digest.Digest | ||
RepoTags []string | ||
Created *time.Time | ||
DockerVersion string | ||
Labels map[string]string | ||
Architecture string | ||
Os string | ||
Layers []string | ||
Env []string | ||
} |