Skip to content

marghidanu/docr

Repository files navigation

docr

CI

Docker client for Crystal.

Description

Remaining issues:

  • Test all endpoint functions
  • Make sure models are complete
  • Extend client to support calls over network

PRs are always welcomed!

Installation

  1. Add the dependency to your shard.yml:

    dependencies:
      docr:
        github: marghidanu/docr
  2. Run shards install

Usage

require "docr"

Supported API calls

Containers

  • ContainerList
  • ContainerCreate
  • ContainerInspect
  • ContainerTop
  • ContainerLogs
  • ContainerChanges
  • ContainerStats
  • ContainerStart
  • ContainerStop
  • ContainerRestart
  • ContainerKill
  • ContainerUpdate
  • ContainerRename
  • ContainerPause
  • ContainerUnpause
  • ContainerAttach
  • ContainerWait
  • ContainerDelete

Images

  • ImageList
  • ImageBuild
  • ImageCreate
  • ImageInspect
  • ImageHistory
  • ImagePush
  • ImageTag
  • ImageDelete

Networks

  • NetworkList
  • NetworkCreate
  • NetworkInspect
  • NetworkConnect
  • NetworkDisconnect
  • NetworkDelete

Volumes

  • VolumeList
  • VolumeCreate
  • VolumeInspect
  • VolumeDelete

Exec

  • ContainerExec
  • ExecStart
  • ExecInspect

System

  • SystemAuth
  • SystemInfo
  • SystemVersion
  • SystemPing
  • SystemEvents
  • SystemDataUsage

Contributors