hocker-1.0.3: 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 Source #

Metadata needed for constructing a docker image.

Constructors

HockerImageMeta 

Fields

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.

type RefLayer = Text Source #

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 Source #

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

data ImageManifest Source #

A v1.2 docker image manifest.

Constructors

ImageManifest 

Fields

data ImageRepositories Source #

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 Source #

Constructors

ImageRepo 

Fields