Copyright | (C) 2016 Awake Networks |
---|---|
License | Apache-2.0 |
Maintainer | Awake Networks <opensource@awakenetworks.com> |
Stability | stable |
Safe Haskell | None |
Language | Haskell2010 |
- data HockerImageMeta = HockerImageMeta {}
- toDigest :: ByteString -> Maybe (Digest SHA256)
- showSHA :: Digest SHA256 -> String
- type RefLayer = Text
- type RepoTag = String
- data ImageManifest = ImageManifest {}
- data ImageRepositories = ImageRepositories [ImageRepo]
- data ImageRepo = ImageRepo {}
Documentation
data HockerImageMeta Source #
Metadata needed for constructing a docker image.
HockerImageMeta | |
|
toDigest :: ByteString -> Maybe (Digest SHA256) Source #
Parse a ByteString
into a SHA256
.
A digest value, as seen in the docker registry manifest, is the
hexadecimal encoding of a hashing function's digest with the
hashing function identifier prefixed onto the string. At this time
the only prefix used is sha256:
.
showSHA :: Digest SHA256 -> String Source #
Show a hexadecimal encoded SHA256
hash digest and prefix
sha256:
to it.
A layer hash digest from a docker image's config JSON. This hash is different from those found in the image's manifest JSON.
data ImageRepositories Source #
A map of ImageRepo
s. The repository names are the top-level
keys and their value is a map who's keys are the tags of the
repository with the hash-value of the layer that tag references.