Skip to content

Instantly share code, notes, and snippets.

@baude
Created May 7, 2018 18:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save baude/e44b802c07b0ef3d474ee34c6afbc4cf to your computer and use it in GitHub Desktop.
Save baude/e44b802c07b0ef3d474ee34c6afbc4cf to your computer and use it in GitHub Desktop.

Index

func ListContainerProcesses(name: string,opts: []string,) []string

func HistoryImage(name: string,) ImageHistory

func ImportImage(source: string,reference: string,message: string,changes: []string,) string

func GetContainerStats(name: string,) ContainerStats

func InspectImage(name: string,) string

func SearchImage(name: string,limit: int,) ImageSearch

func ListContainers() ListContainerData

func ExportImage(name: string,destination: string,compress: bool,)

func BuildImage() NotImplemented

func CreateImage() NotImplemented

func InspectContainer(name: string,) string

func StopContainer(name: string,timeout: int,) string

func KillContainer(name: string,signal: int,) string

func RenameContainer() NotImplemented

func UnpauseContainer(name: string,) string

func RemoveContainer(name: string,force: bool,) string

func PushImage(name: string,tag: string,tlsverify: bool,)

func DeleteUnusedImages() []string

func GetVersion() Version

func ListContainerChanges(name: string,) map[string]

func PauseContainer(name: string,) string

func DeleteStoppedContainers() []string

func TagImage(name: string,tagged: string,)

func CreateFromContainer() NotImplemented

func ExportContainer(name: string,path: string,) string

func ResizeContainerTty() NotImplemented

func StartContainer() NotImplemented

func RestartContainer(name: string,timeout: int,) string

func RemoveImage(name: string,force: bool,) string

func UpdateContainer() NotImplemented

func WaitContainer(name: string,) int

func PullImage(name: string,) string

func Ping() StringResponse

func GetContainer(name: string,) ListContainerData

func CreateContainer() NotImplemented

func GetContainerLogs(name: string,) []string

func AttachToContainer() NotImplemented

func ListImages() ImageInList

type ImageInList

type ImageSearch

type ListContainerData

type ContainerStats

type ContainerNameSpace

type Version

type NotImplemented

type StringResponse

type ImageHistory

type ContainerMount

type ContainerPortMappings

func ListContainerProcesses

func ListContainerProcesses(name: string,opts: []string,) []string

TODO: Should this be made into a streaming response as opposed to a one off?

func HistoryImage

func HistoryImage(name: string,) ImageHistory

func ImportImage

func ImportImage(source: string,reference: string,message: string,changes: []string,) string

func GetContainerStats

func GetContainerStats(name: string,) ContainerStats

func InspectImage

func InspectImage(name: string,) string

func SearchImage

func SearchImage(name: string,limit: int,) ImageSearch

func ListContainers

func ListContainers() ListContainerData

ListContainers returns a list of containers in no particular order. There are returned as an array of ListContainerData structs

func ExportImage

func ExportImage(name: string,destination: string,compress: bool,)

func BuildImage

func BuildImage() NotImplemented

func CreateImage

func CreateImage() NotImplemented

func InspectContainer

func InspectContainer(name: string,) string

func StopContainer

func StopContainer(name: string,timeout: int,) string

func KillContainer

func KillContainer(name: string,signal: int,) string

func RenameContainer

func RenameContainer() NotImplemented

func UnpauseContainer

func UnpauseContainer(name: string,) string

func RemoveContainer

func RemoveContainer(name: string,force: bool,) string

func PushImage

func PushImage(name: string,tag: string,tlsverify: bool,)

func DeleteUnusedImages

func DeleteUnusedImages() []string

func GetVersion

func GetVersion() Version

func ListContainerChanges

func ListContainerChanges(name: string,) map[string]

func PauseContainer

func PauseContainer(name: string,) string

func DeleteStoppedContainers

func DeleteStoppedContainers() []string

func TagImage

func TagImage(name: string,tagged: string,)

func CreateFromContainer

func CreateFromContainer() NotImplemented

func ExportContainer

func ExportContainer(name: string,path: string,) string

TODO: This should be made into a streaming response

func ResizeContainerTty

func ResizeContainerTty() NotImplemented

func StartContainer

func StartContainer() NotImplemented

func RestartContainer

func RestartContainer(name: string,timeout: int,) string

func RemoveImage

func RemoveImage(name: string,force: bool,) string

func UpdateContainer

func UpdateContainer() NotImplemented

func WaitContainer

func WaitContainer(name: string,) int

func PullImage

func PullImage(name: string,) string

func Ping

func Ping() StringResponse

func GetContainer

func GetContainer(name: string,) ListContainerData

func CreateContainer

func CreateContainer() NotImplemented

func GetContainerLogs

func GetContainerLogs(name: string,) []string

TODO: Should this be made into a streaming response as opposed to a one off?

func AttachToContainer

func AttachToContainer() NotImplemented

func ListImages

func ListImages() ImageInList

type ImageInList

ImageInList describes the structure that is returned in ListImages.

      id string

      parentId string

      repoTags []string

      repoDigests []string

      created string

      size int

      virtualSize int

      containers int

      labels map[string]

type ImageSearch

ImageSearch is the returned structure for SearchImage. It is returned in arrary form.

      description string

      is_official bool

      is_automated bool

      name string

      star_count int

type ListContainerData

ListContainer is the returned struct for an individual container

      id string

      image string

      imageid string

      command []string

      createdat string

      runningfor string

      status string

      ports ContainerPortMappings

      rootfssize int

      rwsize int

      names string

      labels map[string]

      mounts ContainerMount

      containerrunning bool

      namespaces ContainerNameSpace

type ContainerStats

ContainerStats is the return struct for the stats of a container

      id string

      name string

      cpu float

      cpu_nano int

      system_nano int

      mem_usage int

      mem_limit int

      mem_perc float

      net_input int

      net_output int

      block_output int

      block_input int

      pids int

type ContainerNameSpace

ContainerNamespace describes the namespace structure for an existing container

      user string

      uts string

      pidns string

      pid string

      cgroup string

      net string

      mnt string

      ipc string

type Version

Version is the structure returned by GetVersion

      version string

      go_version string

      git_commit string

      built int

      os_arch string

type NotImplemented

      comment string

type StringResponse

      message string

type ImageHistory

ImageHistory describes the returned structure from ImageHistory.

      id string

      created string

      createdBy string

      tags []string

      size int

      comment string

type ContainerMount

ContainerMount describes the struct for mounts in a container

      destination string

      type string

      source string

      options []string

type ContainerPortMappings

ContainerPortMappings describes the struct for portmappings in an existing container

      host_port string

      host_ip string

      protocol string

      container_port string

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment