Copyright | (C) 2016 Awake Networks |
---|---|
License | Apache-2.0 |
Maintainer | Awake Networks <opensource@awakenetworks.com> |
Stability | stable |
Safe Haskell | None |
Language | Haskell2010 |
- type RegistryURI = URIRef Absolute
- type Username = Text
- type Password = Text
- type Layer = Text
- type StrippedDigest = Text
- type Manifest = ByteString
- type ImageConfigJSON = ByteString
- type RspBS = Response ByteString
- type Extension = String
- type RepoNamePart = Text
- type ImageNamePart = Text
- type ConfigDigest = Base32Digest
- data Options w = Options {}
- newtype Hocker a = Hocker {}
- runHocker :: Hocker a -> HockerMeta -> IO (Either HockerException a)
- data HockerMeta = HockerMeta {}
- newtype Base32Digest = Base32Digest Text
- newtype Base16Digest = Base16Digest Text
- data Credentials
- upperFirst :: String -> String
Documentation
type RegistryURI = URIRef Absolute Source #
Docker registry URI.
type StrippedDigest = Text Source #
SHA256 hash digest with the hash algorithm identifier prefix, stripped
type Manifest = ByteString Source #
Docker image manifest JSON.
type ImageConfigJSON = ByteString Source #
Docker image config JSON.
type RspBS = Response ByteString Source #
Wreq response type parameterized by the lazy bytestring type.
type RepoNamePart = Text Source #
RepoName is the part before the forward slash in a docker image
name, e.g: library
in library/debian
type ImageNamePart = Text Source #
ImageName is the part after the forward slash in a docker image
name, e.g: library
in library/debian
type ConfigDigest = Base32Digest Source #
Docker image config JSON file's sha256 hash digest in Nix's base32 encoding.
NB: it's very important to realize there's a significant difference between Nix's base32 encoding and the standard base32 encoding! (i.e, they're not compatible).
Generic top-level optparse-generic CLI args data type and specification.
NOTE: `hocker-layer` does not use this data type because it requires an additional layer sha256 hash digest argument.
Options | |
|
Hocker ExceptT
and ReaderT
transformer stack threading a
HockerMeta
data type.
runHocker :: Hocker a -> HockerMeta -> IO (Either HockerException a) Source #
data HockerMeta Source #
Red wagon record carrying around the environment as we fetch, transform, and assemble docker image artifacts.
newtype Base32Digest Source #
Newtype base32 encoding of a hash digest.
Please note, this base32 encoding is unique to Nix and not compatible with other base32 encodings.
newtype Base16Digest Source #
Newtype base16 encoding of a hash digest.
This encoding has no known idiosyncracies specific to Nix, it should be compatible with other tools and library's expectations.
data Credentials Source #
upperFirst :: String -> String Source #
upperFirst
uppercases the first letter of the string.