hocker-1.0.5: Interact with the docker registry and generate nix build instructions

Copyright(C) 2016 Awake Networks
LicenseApache-2.0
MaintainerAwake Networks <opensource@awakenetworks.com>
Stabilitystable
Safe HaskellNone
LanguageHaskell2010

Data.Docker.Image.Types

Description

 

Synopsis

Documentation

data HockerImageMeta #

Metadata needed for constructing a docker image.

Constructors

HockerImageMeta 

Fields

toDigest :: ByteString -> Maybe (Digest SHA256) #

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 #

Show a hexadecimal encoded SHA256 hash digest and prefix sha256: to it.

type RefLayer = Text #

A layer hash digest from a docker image's config JSON. This hash is different from those found in the image's manifest JSON.

type RepoTag = String #

A String representing the full repository tag, e.g: library/debian.

data ImageManifest #

A v1.2 docker image manifest.

Constructors

ImageManifest 

Fields

data ImageRepositories #

A map of ImageRepos. 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.

data ImageRepo #

Constructors

ImageRepo 

Fields