docker

package
v0.74.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 35 Imported by: 0

README

Docker Service

This service is github.com/docker/docker/client.Client proxy

To check all supported method run

    endly -s="docker"

To check method contract run

    endly -s=docker:build

See also docker/ssh service

In addition to docker client method proxy methods, the following were implemented.

Usage
Compacting docker app image

To reduce final image size follow the following steps:

  1. Build app binary with all dependencies in the transient container
  2. Extract final app binary and static assets/dependencies to final build
  3. Build the final image using smallest available base image with prebuild app binary and assets in step 1.

Endly workfow implementing described steps.

  • endly -r=build
  • @build.yaml
    init:
      workingDir: $Pwd()
    pipeline:
      transient:
        build:
          action: docker:build
          path: transient
          noCache: true
          tag:
            image: helloworld
            version: '1.0-transient'
        deploy:
          action: docker:run
          image: 'helloworld:1.0-transient'
          name: helloworld
        extract:
          action: docker:copy
          assets:
            'helloworld:/app/helloworld': ${workingDir}/final/helloworld
        cleanup:
          action: docker:remove
          name: helloworld
          images:
            - 'helloworld:1.0-transient'
      final:
        build:
          action: docker:build
          path: final
          noCache: true
          tag:
            image: helloworld
            version: '1.0'
    
Docker run
  1. Running docker containers in the background
    • docker cli
    docker run --name endly -v /var/run/docker.sock:/var/run/docker.sock -v ~/e2e:/e2e -v ~/e2e/.secret/:/root/.secret/ -p 7722:22  -d endly/endly:latest-ubuntu16.04
    
    • equivalent endly workflow run.yaml
    • endly -r=run
    pipeline:
      run:
        action: docker:run
        image: endly/endly:latest-ubuntu16.04
        name: endly
        ports:
          7722: 22
        mount:
          /var/run/docker.sock: /var/run/docker.sock
          ~/e2e:/e2e: /e2e
          ~/e2e/.secret: /root/.secret
        env:
          ENDLY: test
    
  2. Running docker containers with gcr authentication
    • make sure google secrets are placed to ~/.secret/ i.e ~/.secret/gcr.json
    • @run.yaml
    • endly -r=run
    pipeline:
      run:
        action: docker:run
        credentials: gcr
        name: dbsync
        mount:
          ~/sync/config/: /config/
          ~/e2e/.secret: /root/.secret
        env:
          ENDLY: test
        image: us.gcr.io/tech-ops-poc/dbsync:1.12
        command: ["./sync", "-s","/config/"]
        ports:
          8082: 8082
    
Docker container status
  • docker cli
    docker ps | grep endly
  • equivalent endly
   endly docker:status name=endly
Docker build
pipeline:
  build:
    action: docker:build
    path: somePath
    noCache: true
    tag:
      image: helloworld
      version: '1.0'
Docker login
  • authenticate with docker:login
  • endly -r=run
  • @run.yaml
pipeline:
  auth:
    action: docker:login
    credentials: gcr
    repository: us.gcr.io/tech-ops-poc

  run:
    action: docker:run
    name: dbsync
    mount:
      ~/sync/config/: /config/
      ~/e2e/.secret: /root/.secret
    env:
      ENDLY: test
    image: us.gcr.io/tech-ops-poc/dbsync:1.12
    command: ["./sync", "-s","/config/"]
    ports:
      8082: 8082

  unauth:
    action: docker:logout
    repository: us.gcr.io/tech-ops-poc
Docker copy
  1. Copy from container folder
    • docker cp CONTAINTER:/folder/ dest
    • endly -r=copy
    • @copy.yaml
    pipeline:
      extract:
        action: docker:copy
        assets:
          'container:/folder/': dest
    
  2. Copy from container folder content (dot)
    • docker cp CONTAINTER:/folder/. dest
    • endly -r=copy
    • @copy.yaml
    pipeline:
      extract:
        action: docker:copy
        assets:
          'container:/folder/.': dest
    
  3. Copy to container
    • docker cp source CONTAINTER:/dest/
    • endly -r=copy
    • @copy.yaml
    pipeline:
      extract:
        action: docker:copy
        assets:
          source: 'container:/folder/'
    
  4. Multi asset copy
    pipeline:
      extract:
        action: docker:copy
        assets:
          source1: 'container:/folder1/'
          source2: 'container:/folder2/'
          'container:source3': /tmp/folder3
          'container:/app/app': /opt/app/
    
Docker push
  1. hub.docker.com
  • endly -r=build
  • @build.yaml
    init:
      version: '1.0'
      image: helloworld
    pipeline:
      build:
        action: docker:build
        path: .
        noCache: true
        tag:
          image: $image
          version: $version
      tag:
        action: docker:tag
        sourceTag:
          image: $image
          version: $version
        targetTag:
          image: $image
          username: myUser
          version: $version
      auth:
        action: docker:login
        repository: index.docker.io/myUser
        credentials: dockerHubmyUser
      pushImage:
        action: docker:push
        tag:
          image: $image
          username: myUser
          version: $version
    
  1. Google Cloud Registry
  • endly -r=build
  • @build.yaml
    init:
      version: '1.0'
      image: helloworld
    pipeline:
      build:
        action: docker:build
        path: .
        noCache: true
        tag:
          image: $image
          version: $version
      tag:
        action: docker:tag
        sourceTag:
          image: $image
          version: $version
        targetTag:
          image: $image
          registry: us.gcr.io
          username: myUser
          version: $version
      auth:
        action: docker:login
        repository: us.gcr.io/myUser
        credentials: gcr
      pushImage:
        action: docker:push
        tag:
          image: $image
          registry: us.gcr.io
          username: myUser
          version: $version
    
Global parameters
  • APIVersion (default 1.37)

Documentation

Index

Constants

View Source
const (
	//ServiceID aws Simple Queue Service ID.
	ServiceID = "docker"
)

Variables

This section is empty.

Functions

func AsTarReader

func AsTarReader(resource *location.Resource, includeOwnerDir bool) (io.Reader, error)

AsTarReader creates a tar reader for supplied URL

func BuildRoutes

func BuildRoutes(service interface{}, clientProvider func(context *endly.Context) (*CtxClient, error)) ([]*endly.Route, error)

BuildRoutes build proxy routes

func IsContainerUp

func IsContainerUp(container *types.Container) bool

func New

func New() endly.Service

New creates a new Docker service.

func UnTar

func UnTar(reader *tar.Reader, dest string) error

UnTar write archive content to dest

Types

type BuildCachePruneRequest

type BuildCachePruneRequest struct {
	Opts types.BuildCachePruneOptions
	// contains filtered or unexported fields
}

BuildCachePruneRequest represents request

func (*BuildCachePruneRequest) Call

func (r *BuildCachePruneRequest) Call() (result interface{}, err error)

Call calls service

func (*BuildCachePruneRequest) GetId

func (r *BuildCachePruneRequest) GetId() string

GetId returns request id

func (*BuildCachePruneRequest) SetContext

func (r *BuildCachePruneRequest) SetContext(ctx context.Context)

SetContext sets context

func (*BuildCachePruneRequest) SetService

func (r *BuildCachePruneRequest) SetService(service interface{}) error

SetService sets service

type BuildCancelRequest

type BuildCancelRequest struct {
	Id string
	// contains filtered or unexported fields
}

BuildCancelRequest represents request

func (*BuildCancelRequest) Call

func (r *BuildCancelRequest) Call() (result interface{}, err error)

Call calls service

func (*BuildCancelRequest) GetId

func (r *BuildCancelRequest) GetId() string

GetId returns request id

func (*BuildCancelRequest) SetContext

func (r *BuildCancelRequest) SetContext(ctx context.Context)

SetContext sets context

func (*BuildCancelRequest) SetService

func (r *BuildCancelRequest) SetService(service interface{}) error

SetService sets service

type BuildRequest

type BuildRequest struct {
	Tag                     *Tag   `required:"true" description:"build docker tag"`
	Path                    string `description:"location of dockerfile"`
	types.ImageBuildOptions `json:",inline" yaml:",inline"`
	Mem                     string
}

BuildRequest represents docker build request

func (*BuildRequest) Init

func (r *BuildRequest) Init() error

type BuildResponse

type BuildResponse struct {
	ImageID string
	Stdout  []string
}

BuildResponse represents image SessionID

type CheckpointCreateRequest

type CheckpointCreateRequest struct {
	Container                     string
	types.CheckpointCreateOptions `json:",inline" yaml:",inline"`
	// contains filtered or unexported fields
}

CheckpointCreateRequest represents request

func (*CheckpointCreateRequest) Call

func (r *CheckpointCreateRequest) Call() (result interface{}, err error)

Call calls service

func (*CheckpointCreateRequest) GetId

func (r *CheckpointCreateRequest) GetId() string

GetId returns request id

func (*CheckpointCreateRequest) SetContext

func (r *CheckpointCreateRequest) SetContext(ctx context.Context)

SetContext sets context

func (*CheckpointCreateRequest) SetService

func (r *CheckpointCreateRequest) SetService(service interface{}) error

SetService sets service

type CheckpointDeleteRequest

type CheckpointDeleteRequest struct {
	ContainerID                   string
	types.CheckpointDeleteOptions `json:",inline" yaml:",inline"`
	// contains filtered or unexported fields
}

CheckpointDeleteRequest represents request

func (*CheckpointDeleteRequest) Call

func (r *CheckpointDeleteRequest) Call() (result interface{}, err error)

Call calls service

func (*CheckpointDeleteRequest) GetId

func (r *CheckpointDeleteRequest) GetId() string

GetId returns request id

func (*CheckpointDeleteRequest) SetContext

func (r *CheckpointDeleteRequest) SetContext(ctx context.Context)

SetContext sets context

func (*CheckpointDeleteRequest) SetService

func (r *CheckpointDeleteRequest) SetService(service interface{}) error

SetService sets service

type CheckpointListRequest

type CheckpointListRequest struct {
	Container                   string
	types.CheckpointListOptions `json:",inline" yaml:",inline"`
	// contains filtered or unexported fields
}

CheckpointListRequest represents request

func (*CheckpointListRequest) Call

func (r *CheckpointListRequest) Call() (result interface{}, err error)

Call calls service

func (*CheckpointListRequest) GetId

func (r *CheckpointListRequest) GetId() string

GetId returns request id

func (*CheckpointListRequest) SetContext

func (r *CheckpointListRequest) SetContext(ctx context.Context)

SetContext sets context

func (*CheckpointListRequest) SetService

func (r *CheckpointListRequest) SetService(service interface{}) error

SetService sets service

type ConfigCreateRequest

type ConfigCreateRequest struct {
	Config swarm.ConfigSpec
	// contains filtered or unexported fields
}

ConfigCreateRequest represents request

func (*ConfigCreateRequest) Call

func (r *ConfigCreateRequest) Call() (result interface{}, err error)

Call calls service

func (*ConfigCreateRequest) GetId

func (r *ConfigCreateRequest) GetId() string

GetId returns request id

func (*ConfigCreateRequest) SetContext

func (r *ConfigCreateRequest) SetContext(ctx context.Context)

SetContext sets context

func (*ConfigCreateRequest) SetService

func (r *ConfigCreateRequest) SetService(service interface{}) error

SetService sets service

type ConfigListRequest

type ConfigListRequest struct {
	types.ConfigListOptions `json:",inline" yaml:",inline"`
	// contains filtered or unexported fields
}

ConfigListRequest represents request

func (*ConfigListRequest) Call

func (r *ConfigListRequest) Call() (result interface{}, err error)

Call calls service

func (*ConfigListRequest) GetId

func (r *ConfigListRequest) GetId() string

GetId returns request id

func (*ConfigListRequest) SetContext

func (r *ConfigListRequest) SetContext(ctx context.Context)

SetContext sets context

func (*ConfigListRequest) SetService

func (r *ConfigListRequest) SetService(service interface{}) error

SetService sets service

type ConfigRemoveRequest

type ConfigRemoveRequest struct {
	Id string
	// contains filtered or unexported fields
}

ConfigRemoveRequest represents request

func (*ConfigRemoveRequest) Call

func (r *ConfigRemoveRequest) Call() (result interface{}, err error)

Call calls service

func (*ConfigRemoveRequest) GetId

func (r *ConfigRemoveRequest) GetId() string

GetId returns request id

func (*ConfigRemoveRequest) SetContext

func (r *ConfigRemoveRequest) SetContext(ctx context.Context)

SetContext sets context

func (*ConfigRemoveRequest) SetService

func (r *ConfigRemoveRequest) SetService(service interface{}) error

SetService sets service

type ConfigUpdateRequest

type ConfigUpdateRequest struct {
	Id      string
	Version swarm.Version
	Config  swarm.ConfigSpec
	// contains filtered or unexported fields
}

ConfigUpdateRequest represents request

func (*ConfigUpdateRequest) Call

func (r *ConfigUpdateRequest) Call() (result interface{}, err error)

Call calls service

func (*ConfigUpdateRequest) GetId

func (r *ConfigUpdateRequest) GetId() string

GetId returns request id

func (*ConfigUpdateRequest) SetContext

func (r *ConfigUpdateRequest) SetContext(ctx context.Context)

SetContext sets context

func (*ConfigUpdateRequest) SetService

func (r *ConfigUpdateRequest) SetService(service interface{}) error

SetService sets service

type ContainerAttachRequest

type ContainerAttachRequest struct {
	Container                    string
	types.ContainerAttachOptions `json:",inline" yaml:",inline"`
	// contains filtered or unexported fields
}

ContainerAttachRequest represents request

func (*ContainerAttachRequest) Call

func (r *ContainerAttachRequest) Call() (result interface{}, err error)

Call calls service

func (*ContainerAttachRequest) GetId

func (r *ContainerAttachRequest) GetId() string

GetId returns request id

func (*ContainerAttachRequest) SetContext

func (r *ContainerAttachRequest) SetContext(ctx context.Context)

SetContext sets context

func (*ContainerAttachRequest) SetService

func (r *ContainerAttachRequest) SetService(service interface{}) error

SetService sets service

type ContainerCommitRequest

type ContainerCommitRequest struct {
	Container                    string
	types.ContainerCommitOptions `json:",inline" yaml:",inline"`
	// contains filtered or unexported fields
}

ContainerCommitRequest represents request

func (*ContainerCommitRequest) Call

func (r *ContainerCommitRequest) Call() (result interface{}, err error)

Call calls service

func (*ContainerCommitRequest) GetId

func (r *ContainerCommitRequest) GetId() string

GetId returns request id

func (*ContainerCommitRequest) SetContext

func (r *ContainerCommitRequest) SetContext(ctx context.Context)

SetContext sets context

func (*ContainerCommitRequest) SetService

func (r *ContainerCommitRequest) SetService(service interface{}) error

SetService sets service

type ContainerCreateRequest

type ContainerCreateRequest struct {
	Config           *container.Config
	HostConfig       *container.HostConfig
	NetworkingConfig *network.NetworkingConfig
	ContainerName    string
	// contains filtered or unexported fields
}

ContainerCreateRequest represents request

func (*ContainerCreateRequest) Call

func (r *ContainerCreateRequest) Call() (result interface{}, err error)

Call calls service

func (*ContainerCreateRequest) GetId

func (r *ContainerCreateRequest) GetId() string

GetId returns request id

func (*ContainerCreateRequest) SetContext

func (r *ContainerCreateRequest) SetContext(ctx context.Context)

SetContext sets context

func (*ContainerCreateRequest) SetService

func (r *ContainerCreateRequest) SetService(service interface{}) error

SetService sets service

type ContainerDiffRequest

type ContainerDiffRequest struct {
	ContainerID string
	// contains filtered or unexported fields
}

ContainerDiffRequest represents request

func (*ContainerDiffRequest) Call

func (r *ContainerDiffRequest) Call() (result interface{}, err error)

Call calls service

func (*ContainerDiffRequest) GetId

func (r *ContainerDiffRequest) GetId() string

GetId returns request id

func (*ContainerDiffRequest) SetContext

func (r *ContainerDiffRequest) SetContext(ctx context.Context)

SetContext sets context

func (*ContainerDiffRequest) SetService

func (r *ContainerDiffRequest) SetService(service interface{}) error

SetService sets service

type ContainerExecAttachRequest

type ContainerExecAttachRequest struct {
	ExecID string
	Config types.ExecStartCheck
	// contains filtered or unexported fields
}

ContainerExecAttachRequest represents request

func (*ContainerExecAttachRequest) Call

func (r *ContainerExecAttachRequest) Call() (result interface{}, err error)

Call calls service

func (*ContainerExecAttachRequest) GetId

GetId returns request id

func (*ContainerExecAttachRequest) SetContext

func (r *ContainerExecAttachRequest) SetContext(ctx context.Context)

SetContext sets context

func (*ContainerExecAttachRequest) SetService

func (r *ContainerExecAttachRequest) SetService(service interface{}) error

SetService sets service

type ContainerExecCreateRequest

type ContainerExecCreateRequest struct {
	Container string
	Config    types.ExecConfig
	// contains filtered or unexported fields
}

ContainerExecCreateRequest represents request

func (*ContainerExecCreateRequest) Call

func (r *ContainerExecCreateRequest) Call() (result interface{}, err error)

Call calls service

func (*ContainerExecCreateRequest) GetId

GetId returns request id

func (*ContainerExecCreateRequest) SetContext

func (r *ContainerExecCreateRequest) SetContext(ctx context.Context)

SetContext sets context

func (*ContainerExecCreateRequest) SetService

func (r *ContainerExecCreateRequest) SetService(service interface{}) error

SetService sets service

type ContainerExecInspectRequest

type ContainerExecInspectRequest struct {
	ExecID string
	// contains filtered or unexported fields
}

ContainerExecInspectRequest represents request

func (*ContainerExecInspectRequest) Call

func (r *ContainerExecInspectRequest) Call() (result interface{}, err error)

Call calls service

func (*ContainerExecInspectRequest) GetId

GetId returns request id

func (*ContainerExecInspectRequest) SetContext

func (r *ContainerExecInspectRequest) SetContext(ctx context.Context)

SetContext sets context

func (*ContainerExecInspectRequest) SetService

func (r *ContainerExecInspectRequest) SetService(service interface{}) error

SetService sets service

type ContainerExecResizeRequest

type ContainerExecResizeRequest struct {
	ExecID              string
	types.ResizeOptions `json:",inline" yaml:",inline"`
	// contains filtered or unexported fields
}

ContainerExecResizeRequest represents request

func (*ContainerExecResizeRequest) Call

func (r *ContainerExecResizeRequest) Call() (result interface{}, err error)

Call calls service

func (*ContainerExecResizeRequest) GetId

GetId returns request id

func (*ContainerExecResizeRequest) SetContext

func (r *ContainerExecResizeRequest) SetContext(ctx context.Context)

SetContext sets context

func (*ContainerExecResizeRequest) SetService

func (r *ContainerExecResizeRequest) SetService(service interface{}) error

SetService sets service

type ContainerExecStartRequest

type ContainerExecStartRequest struct {
	ExecID string
	Config types.ExecStartCheck
	// contains filtered or unexported fields
}

ContainerExecStartRequest represents request

func (*ContainerExecStartRequest) Call

func (r *ContainerExecStartRequest) Call() (result interface{}, err error)

Call calls service

func (*ContainerExecStartRequest) GetId

func (r *ContainerExecStartRequest) GetId() string

GetId returns request id

func (*ContainerExecStartRequest) SetContext

func (r *ContainerExecStartRequest) SetContext(ctx context.Context)

SetContext sets context

func (*ContainerExecStartRequest) SetService

func (r *ContainerExecStartRequest) SetService(service interface{}) error

SetService sets service

type ContainerExportRequest

type ContainerExportRequest struct {
	ContainerID string
	// contains filtered or unexported fields
}

ContainerExportRequest represents request

func (*ContainerExportRequest) Call

func (r *ContainerExportRequest) Call() (result interface{}, err error)

Call calls service

func (*ContainerExportRequest) GetId

func (r *ContainerExportRequest) GetId() string

GetId returns request id

func (*ContainerExportRequest) SetContext

func (r *ContainerExportRequest) SetContext(ctx context.Context)

SetContext sets context

func (*ContainerExportRequest) SetService

func (r *ContainerExportRequest) SetService(service interface{}) error

SetService sets service

type ContainerInspectRequest

type ContainerInspectRequest struct {
	ContainerID string
	// contains filtered or unexported fields
}

ContainerInspectRequest represents request

func (*ContainerInspectRequest) Call

func (r *ContainerInspectRequest) Call() (result interface{}, err error)

Call calls service

func (*ContainerInspectRequest) GetId

func (r *ContainerInspectRequest) GetId() string

GetId returns request id

func (*ContainerInspectRequest) SetContext

func (r *ContainerInspectRequest) SetContext(ctx context.Context)

SetContext sets context

func (*ContainerInspectRequest) SetService

func (r *ContainerInspectRequest) SetService(service interface{}) error

SetService sets service

type ContainerKillRequest

type ContainerKillRequest struct {
	ContainerID string
	Signal      string
	// contains filtered or unexported fields
}

ContainerKillRequest represents request

func (*ContainerKillRequest) Call

func (r *ContainerKillRequest) Call() (result interface{}, err error)

Call calls service

func (*ContainerKillRequest) GetId

func (r *ContainerKillRequest) GetId() string

GetId returns request id

func (*ContainerKillRequest) SetContext

func (r *ContainerKillRequest) SetContext(ctx context.Context)

SetContext sets context

func (*ContainerKillRequest) SetService

func (r *ContainerKillRequest) SetService(service interface{}) error

SetService sets service

type ContainerListRequest

type ContainerListRequest struct {
	types.ContainerListOptions `json:",inline" yaml:",inline"`
	// contains filtered or unexported fields
}

ContainerListRequest represents request

func (*ContainerListRequest) Call

func (r *ContainerListRequest) Call() (result interface{}, err error)

Call calls service

func (*ContainerListRequest) GetId

func (r *ContainerListRequest) GetId() string

GetId returns request id

func (*ContainerListRequest) SetContext

func (r *ContainerListRequest) SetContext(ctx context.Context)

SetContext sets context

func (*ContainerListRequest) SetService

func (r *ContainerListRequest) SetService(service interface{}) error

SetService sets service

type ContainerLogsRequest

type ContainerLogsRequest struct {
	Container                  string
	types.ContainerLogsOptions `json:",inline" yaml:",inline"`
	// contains filtered or unexported fields
}

ContainerLogsRequest represents request

func (*ContainerLogsRequest) Call

func (r *ContainerLogsRequest) Call() (result interface{}, err error)

Call calls service

func (*ContainerLogsRequest) GetId

func (r *ContainerLogsRequest) GetId() string

GetId returns request id

func (*ContainerLogsRequest) SetContext

func (r *ContainerLogsRequest) SetContext(ctx context.Context)

SetContext sets context

func (*ContainerLogsRequest) SetService

func (r *ContainerLogsRequest) SetService(service interface{}) error

SetService sets service

type ContainerPauseRequest

type ContainerPauseRequest struct {
	ContainerID string
	// contains filtered or unexported fields
}

ContainerPauseRequest represents request

func (*ContainerPauseRequest) Call

func (r *ContainerPauseRequest) Call() (result interface{}, err error)

Call calls service

func (*ContainerPauseRequest) GetId

func (r *ContainerPauseRequest) GetId() string

GetId returns request id

func (*ContainerPauseRequest) SetContext

func (r *ContainerPauseRequest) SetContext(ctx context.Context)

SetContext sets context

func (*ContainerPauseRequest) SetService

func (r *ContainerPauseRequest) SetService(service interface{}) error

SetService sets service

type ContainerRemoveRequest

type ContainerRemoveRequest struct {
	ContainerID                  string
	types.ContainerRemoveOptions `json:",inline" yaml:",inline"`
	// contains filtered or unexported fields
}

ContainerRemoveRequest represents request

func (*ContainerRemoveRequest) Call

func (r *ContainerRemoveRequest) Call() (result interface{}, err error)

Call calls service

func (*ContainerRemoveRequest) GetId

func (r *ContainerRemoveRequest) GetId() string

GetId returns request id

func (*ContainerRemoveRequest) SetContext

func (r *ContainerRemoveRequest) SetContext(ctx context.Context)

SetContext sets context

func (*ContainerRemoveRequest) SetService

func (r *ContainerRemoveRequest) SetService(service interface{}) error

SetService sets service

type ContainerRenameRequest

type ContainerRenameRequest struct {
	ContainerID      string
	NewContainerName string
	// contains filtered or unexported fields
}

ContainerRenameRequest represents request

func (*ContainerRenameRequest) Call

func (r *ContainerRenameRequest) Call() (result interface{}, err error)

Call calls service

func (*ContainerRenameRequest) GetId

func (r *ContainerRenameRequest) GetId() string

GetId returns request id

func (*ContainerRenameRequest) SetContext

func (r *ContainerRenameRequest) SetContext(ctx context.Context)

SetContext sets context

func (*ContainerRenameRequest) SetService

func (r *ContainerRenameRequest) SetService(service interface{}) error

SetService sets service

type ContainerResizeRequest

type ContainerResizeRequest struct {
	ContainerID         string
	types.ResizeOptions `json:",inline" yaml:",inline"`
	// contains filtered or unexported fields
}

ContainerResizeRequest represents request

func (*ContainerResizeRequest) Call

func (r *ContainerResizeRequest) Call() (result interface{}, err error)

Call calls service

func (*ContainerResizeRequest) GetId

func (r *ContainerResizeRequest) GetId() string

GetId returns request id

func (*ContainerResizeRequest) SetContext

func (r *ContainerResizeRequest) SetContext(ctx context.Context)

SetContext sets context

func (*ContainerResizeRequest) SetService

func (r *ContainerResizeRequest) SetService(service interface{}) error

SetService sets service

type ContainerRestartRequest

type ContainerRestartRequest struct {
	ContainerID string
	Timeout     *time.Duration
	// contains filtered or unexported fields
}

ContainerRestartRequest represents request

func (*ContainerRestartRequest) Call

func (r *ContainerRestartRequest) Call() (result interface{}, err error)

Call calls service

func (*ContainerRestartRequest) GetId

func (r *ContainerRestartRequest) GetId() string

GetId returns request id

func (*ContainerRestartRequest) SetContext

func (r *ContainerRestartRequest) SetContext(ctx context.Context)

SetContext sets context

func (*ContainerRestartRequest) SetService

func (r *ContainerRestartRequest) SetService(service interface{}) error

SetService sets service

type ContainerStartRequest

type ContainerStartRequest struct {
	ContainerID                 string
	types.ContainerStartOptions `json:",inline" yaml:",inline"`
	// contains filtered or unexported fields
}

ContainerStartRequest represents request

func (*ContainerStartRequest) Call

func (r *ContainerStartRequest) Call() (result interface{}, err error)

Call calls service

func (*ContainerStartRequest) GetId

func (r *ContainerStartRequest) GetId() string

GetId returns request id

func (*ContainerStartRequest) SetContext

func (r *ContainerStartRequest) SetContext(ctx context.Context)

SetContext sets context

func (*ContainerStartRequest) SetService

func (r *ContainerStartRequest) SetService(service interface{}) error

SetService sets service

type ContainerStatPathRequest

type ContainerStatPathRequest struct {
	ContainerID string
	Path        string
	// contains filtered or unexported fields
}

ContainerStatPathRequest represents request

func (*ContainerStatPathRequest) Call

func (r *ContainerStatPathRequest) Call() (result interface{}, err error)

Call calls service

func (*ContainerStatPathRequest) GetId

func (r *ContainerStatPathRequest) GetId() string

GetId returns request id

func (*ContainerStatPathRequest) SetContext

func (r *ContainerStatPathRequest) SetContext(ctx context.Context)

SetContext sets context

func (*ContainerStatPathRequest) SetService

func (r *ContainerStatPathRequest) SetService(service interface{}) error

SetService sets service

type ContainerStatsRequest

type ContainerStatsRequest struct {
	ContainerID string
	Stream      bool
	// contains filtered or unexported fields
}

ContainerStatsRequest represents request

func (*ContainerStatsRequest) Call

func (r *ContainerStatsRequest) Call() (result interface{}, err error)

Call calls service

func (*ContainerStatsRequest) GetId

func (r *ContainerStatsRequest) GetId() string

GetId returns request id

func (*ContainerStatsRequest) SetContext

func (r *ContainerStatsRequest) SetContext(ctx context.Context)

SetContext sets context

func (*ContainerStatsRequest) SetService

func (r *ContainerStatsRequest) SetService(service interface{}) error

SetService sets service

type ContainerStopRequest

type ContainerStopRequest struct {
	ContainerID string
	Timeout     *time.Duration
	// contains filtered or unexported fields
}

ContainerStopRequest represents request

func (*ContainerStopRequest) Call

func (r *ContainerStopRequest) Call() (result interface{}, err error)

Call calls service

func (*ContainerStopRequest) GetId

func (r *ContainerStopRequest) GetId() string

GetId returns request id

func (*ContainerStopRequest) SetContext

func (r *ContainerStopRequest) SetContext(ctx context.Context)

SetContext sets context

func (*ContainerStopRequest) SetService

func (r *ContainerStopRequest) SetService(service interface{}) error

SetService sets service

type ContainerTopRequest

type ContainerTopRequest struct {
	ContainerID string
	Arguments   []string
	// contains filtered or unexported fields
}

ContainerTopRequest represents request

func (*ContainerTopRequest) Call

func (r *ContainerTopRequest) Call() (result interface{}, err error)

Call calls service

func (*ContainerTopRequest) GetId

func (r *ContainerTopRequest) GetId() string

GetId returns request id

func (*ContainerTopRequest) SetContext

func (r *ContainerTopRequest) SetContext(ctx context.Context)

SetContext sets context

func (*ContainerTopRequest) SetService

func (r *ContainerTopRequest) SetService(service interface{}) error

SetService sets service

type ContainerUnpauseRequest

type ContainerUnpauseRequest struct {
	ContainerID string
	// contains filtered or unexported fields
}

ContainerUnpauseRequest represents request

func (*ContainerUnpauseRequest) Call

func (r *ContainerUnpauseRequest) Call() (result interface{}, err error)

Call calls service

func (*ContainerUnpauseRequest) GetId

func (r *ContainerUnpauseRequest) GetId() string

GetId returns request id

func (*ContainerUnpauseRequest) SetContext

func (r *ContainerUnpauseRequest) SetContext(ctx context.Context)

SetContext sets context

func (*ContainerUnpauseRequest) SetService

func (r *ContainerUnpauseRequest) SetService(service interface{}) error

SetService sets service

type ContainerUpdateRequest

type ContainerUpdateRequest struct {
	ContainerID  string
	UpdateConfig container.UpdateConfig
	// contains filtered or unexported fields
}

ContainerUpdateRequest represents request

func (*ContainerUpdateRequest) Call

func (r *ContainerUpdateRequest) Call() (result interface{}, err error)

Call calls service

func (*ContainerUpdateRequest) GetId

func (r *ContainerUpdateRequest) GetId() string

GetId returns request id

func (*ContainerUpdateRequest) SetContext

func (r *ContainerUpdateRequest) SetContext(ctx context.Context)

SetContext sets context

func (*ContainerUpdateRequest) SetService

func (r *ContainerUpdateRequest) SetService(service interface{}) error

SetService sets service

type ContainerWaitRequest

type ContainerWaitRequest struct {
	ContainerID string
	Condition   container.WaitCondition
	// contains filtered or unexported fields
}

ContainerWaitRequest represents request

func (*ContainerWaitRequest) Call

func (r *ContainerWaitRequest) Call() (result interface{}, err error)

Call calls service

func (*ContainerWaitRequest) GetId

func (r *ContainerWaitRequest) GetId() string

GetId returns request id

func (*ContainerWaitRequest) SetContext

func (r *ContainerWaitRequest) SetContext(ctx context.Context)

SetContext sets context

func (*ContainerWaitRequest) SetService

func (r *ContainerWaitRequest) SetService(service interface{}) error

SetService sets service

type ContainersPruneRequest

type ContainersPruneRequest struct {
	PruneFilters filters.Args
	// contains filtered or unexported fields
}

ContainersPruneRequest represents request

func (*ContainersPruneRequest) Call

func (r *ContainersPruneRequest) Call() (result interface{}, err error)

Call calls service

func (*ContainersPruneRequest) GetId

func (r *ContainersPruneRequest) GetId() string

GetId returns request id

func (*ContainersPruneRequest) SetContext

func (r *ContainersPruneRequest) SetContext(ctx context.Context)

SetContext sets context

func (*ContainersPruneRequest) SetService

func (r *ContainersPruneRequest) SetService(service interface{}) error

SetService sets service

type ContractAdapter

type ContractAdapter interface {
	SetService(service interface{}) error
	SetContext(ctx context.Context)
	Call() (result interface{}, err error)
	GetId() string
}

ContractAdapter represents a contract adapter

type CopyRequest

type CopyRequest struct {
	Assets map[string]string
}

PushResponse represents a docker push request

func (*CopyRequest) Validate

func (r *CopyRequest) Validate() error

type CopyResponse

type CopyResponse struct{}

CopyResponse represents a copy response

type CopyToContainerRequest

type CopyToContainerRequest struct {
	ContainerID                  string
	DstPath                      string
	Content                      io.Reader
	types.CopyToContainerOptions `json:",inline" yaml:",inline"`
	// contains filtered or unexported fields
}

CopyToContainerRequest represents request

func (*CopyToContainerRequest) Call

func (r *CopyToContainerRequest) Call() (result interface{}, err error)

Call calls service

func (*CopyToContainerRequest) GetId

func (r *CopyToContainerRequest) GetId() string

GetId returns request id

func (*CopyToContainerRequest) SetContext

func (r *CopyToContainerRequest) SetContext(ctx context.Context)

SetContext sets context

func (*CopyToContainerRequest) SetService

func (r *CopyToContainerRequest) SetService(service interface{}) error

SetService sets service

type CtxClient

type CtxClient struct {
	Client     *client.Client
	Context    context.Context
	APIVersion string
	AuthToken  map[string]string
}

CtxClient represents generic docker client

func GetCtxClient

func GetCtxClient(ctx *endly.Context) (*CtxClient, error)

GetCtxClient get or creates a new kubernetess client.

type DataAux

type DataAux struct {
	Tag    string
	Digest string
	Size   int
}

type DataError

type DataError struct {
	Message string `json:"message"`
}

DataError represent data error

type DataStream

type DataStream struct {
	Stream      string     `json:"stream"`
	Progress    string     `json:"progress"`
	Status      string     `json:"status"`
	Id          string     `json:"id"`
	ErrorDetail *DataError `json:"errorDetail"`
	Aux         *DataAux   `json:"aux"`
	Error       string     `json:"error"`
}

DataStream represents a data strem

func (*DataStream) Data

func (s *DataStream) Data() string

type DialHijackRequest

type DialHijackRequest struct {
	Url   string
	Proto string
	Meta  map[string][]string
	// contains filtered or unexported fields
}

DialHijackRequest represents request

func (*DialHijackRequest) Call

func (r *DialHijackRequest) Call() (result interface{}, err error)

Call calls service

func (*DialHijackRequest) GetId

func (r *DialHijackRequest) GetId() string

GetId returns request id

func (*DialHijackRequest) SetContext

func (r *DialHijackRequest) SetContext(ctx context.Context)

SetContext sets context

func (*DialHijackRequest) SetService

func (r *DialHijackRequest) SetService(service interface{}) error

SetService sets service

type DiskUsageRequest

type DiskUsageRequest struct {
	// contains filtered or unexported fields
}

DiskUsageRequest represents request

func (*DiskUsageRequest) Call

func (r *DiskUsageRequest) Call() (result interface{}, err error)

Call calls service

func (*DiskUsageRequest) GetId

func (r *DiskUsageRequest) GetId() string

GetId returns request id

func (*DiskUsageRequest) SetContext

func (r *DiskUsageRequest) SetContext(ctx context.Context)

SetContext sets context

func (*DiskUsageRequest) SetService

func (r *DiskUsageRequest) SetService(service interface{}) error

SetService sets service

type DistributionInspectRequest

type DistributionInspectRequest struct {
	Image               string
	EncodedRegistryAuth string
	// contains filtered or unexported fields
}

DistributionInspectRequest represents request

func (*DistributionInspectRequest) Call

func (r *DistributionInspectRequest) Call() (result interface{}, err error)

Call calls service

func (*DistributionInspectRequest) GetId

GetId returns request id

func (*DistributionInspectRequest) SetContext

func (r *DistributionInspectRequest) SetContext(ctx context.Context)

SetContext sets context

func (*DistributionInspectRequest) SetService

func (r *DistributionInspectRequest) SetService(service interface{}) error

SetService sets service

type EventsRequest

type EventsRequest struct {
	types.EventsOptions `json:",inline" yaml:",inline"`
	// contains filtered or unexported fields
}

EventsRequest represents request

func (*EventsRequest) Call

func (r *EventsRequest) Call() (result interface{}, err error)

Call calls service

func (*EventsRequest) GetId

func (r *EventsRequest) GetId() string

GetId returns request id

func (*EventsRequest) SetContext

func (r *EventsRequest) SetContext(ctx context.Context)

SetContext sets context

func (*EventsRequest) SetService

func (r *EventsRequest) SetService(service interface{}) error

SetService sets service

type ImageBuildRequest

type ImageBuildRequest struct {
	BuildContext            io.Reader
	types.ImageBuildOptions `json:",inline" yaml:",inline"`
	// contains filtered or unexported fields
}

ImageBuildRequest represents request

func (*ImageBuildRequest) Call

func (r *ImageBuildRequest) Call() (result interface{}, err error)

Call calls service

func (*ImageBuildRequest) GetId

func (r *ImageBuildRequest) GetId() string

GetId returns request id

func (*ImageBuildRequest) SetContext

func (r *ImageBuildRequest) SetContext(ctx context.Context)

SetContext sets context

func (*ImageBuildRequest) SetService

func (r *ImageBuildRequest) SetService(service interface{}) error

SetService sets service

type ImageCreateRequest

type ImageCreateRequest struct {
	ParentReference          string
	types.ImageCreateOptions `json:",inline" yaml:",inline"`
	// contains filtered or unexported fields
}

ImageCreateRequest represents request

func (*ImageCreateRequest) Call

func (r *ImageCreateRequest) Call() (result interface{}, err error)

Call calls service

func (*ImageCreateRequest) GetId

func (r *ImageCreateRequest) GetId() string

GetId returns request id

func (*ImageCreateRequest) SetContext

func (r *ImageCreateRequest) SetContext(ctx context.Context)

SetContext sets context

func (*ImageCreateRequest) SetService

func (r *ImageCreateRequest) SetService(service interface{}) error

SetService sets service

type ImageHistoryRequest

type ImageHistoryRequest struct {
	ImageID string
	// contains filtered or unexported fields
}

ImageHistoryRequest represents request

func (*ImageHistoryRequest) Call

func (r *ImageHistoryRequest) Call() (result interface{}, err error)

Call calls service

func (*ImageHistoryRequest) GetId

func (r *ImageHistoryRequest) GetId() string

GetId returns request id

func (*ImageHistoryRequest) SetContext

func (r *ImageHistoryRequest) SetContext(ctx context.Context)

SetContext sets context

func (*ImageHistoryRequest) SetService

func (r *ImageHistoryRequest) SetService(service interface{}) error

SetService sets service

type ImageImportRequest

type ImageImportRequest struct {
	types.ImageImportSource
	Ref     string
	Options types.ImageImportOptions `json:",inline" yaml:",inline"`
	// contains filtered or unexported fields
}

ImageImportRequest represents request

func (*ImageImportRequest) Call

func (r *ImageImportRequest) Call() (result interface{}, err error)

Call calls service

func (*ImageImportRequest) GetId

func (r *ImageImportRequest) GetId() string

GetId returns request id

func (*ImageImportRequest) SetContext

func (r *ImageImportRequest) SetContext(ctx context.Context)

SetContext sets context

func (*ImageImportRequest) SetService

func (r *ImageImportRequest) SetService(service interface{}) error

SetService sets service

type ImageListRequest

type ImageListRequest struct {
	types.ImageListOptions `json:",inline" yaml:",inline"`
	// contains filtered or unexported fields
}

ImageListRequest represents request

func (*ImageListRequest) Call

func (r *ImageListRequest) Call() (result interface{}, err error)

Call calls service

func (*ImageListRequest) GetId

func (r *ImageListRequest) GetId() string

GetId returns request id

func (*ImageListRequest) SetContext

func (r *ImageListRequest) SetContext(ctx context.Context)

SetContext sets context

func (*ImageListRequest) SetService

func (r *ImageListRequest) SetService(service interface{}) error

SetService sets service

type ImageLoadRequest

type ImageLoadRequest struct {
	Input io.Reader
	Quiet bool
	// contains filtered or unexported fields
}

ImageLoadRequest represents request

func (*ImageLoadRequest) Call

func (r *ImageLoadRequest) Call() (result interface{}, err error)

Call calls service

func (*ImageLoadRequest) GetId

func (r *ImageLoadRequest) GetId() string

GetId returns request id

func (*ImageLoadRequest) SetContext

func (r *ImageLoadRequest) SetContext(ctx context.Context)

SetContext sets context

func (*ImageLoadRequest) SetService

func (r *ImageLoadRequest) SetService(service interface{}) error

SetService sets service

type ImagePullRequest

type ImagePullRequest struct {
	RefStr                 string
	types.ImagePullOptions `json:",inline" yaml:",inline"`
	// contains filtered or unexported fields
}

ImagePullRequest represents request

func (*ImagePullRequest) Call

func (r *ImagePullRequest) Call() (result interface{}, err error)

Call calls service

func (*ImagePullRequest) GetId

func (r *ImagePullRequest) GetId() string

GetId returns request id

func (*ImagePullRequest) SetContext

func (r *ImagePullRequest) SetContext(ctx context.Context)

SetContext sets context

func (*ImagePullRequest) SetService

func (r *ImagePullRequest) SetService(service interface{}) error

SetService sets service

type ImagePushRequest

type ImagePushRequest struct {
	Image                  string
	types.ImagePushOptions `json:",inline" yaml:",inline"`
	// contains filtered or unexported fields
}

ImagePushRequest represents request

func (*ImagePushRequest) Call

func (r *ImagePushRequest) Call() (result interface{}, err error)

Call calls service

func (*ImagePushRequest) GetId

func (r *ImagePushRequest) GetId() string

GetId returns request id

func (*ImagePushRequest) SetContext

func (r *ImagePushRequest) SetContext(ctx context.Context)

SetContext sets context

func (*ImagePushRequest) SetService

func (r *ImagePushRequest) SetService(service interface{}) error

SetService sets service

type ImageRemoveRequest

type ImageRemoveRequest struct {
	ImageID                  string
	types.ImageRemoveOptions `json:",inline" yaml:",inline"`
	// contains filtered or unexported fields
}

ImageRemoveRequest represents request

func (*ImageRemoveRequest) Call

func (r *ImageRemoveRequest) Call() (result interface{}, err error)

Call calls service

func (*ImageRemoveRequest) GetId

func (r *ImageRemoveRequest) GetId() string

GetId returns request id

func (*ImageRemoveRequest) SetContext

func (r *ImageRemoveRequest) SetContext(ctx context.Context)

SetContext sets context

func (*ImageRemoveRequest) SetService

func (r *ImageRemoveRequest) SetService(service interface{}) error

SetService sets service

type ImageSaveRequest

type ImageSaveRequest struct {
	ImageIDs []string
	// contains filtered or unexported fields
}

ImageSaveRequest represents request

func (*ImageSaveRequest) Call

func (r *ImageSaveRequest) Call() (result interface{}, err error)

Call calls service

func (*ImageSaveRequest) GetId

func (r *ImageSaveRequest) GetId() string

GetId returns request id

func (*ImageSaveRequest) SetContext

func (r *ImageSaveRequest) SetContext(ctx context.Context)

SetContext sets context

func (*ImageSaveRequest) SetService

func (r *ImageSaveRequest) SetService(service interface{}) error

SetService sets service

type ImageSearchRequest

type ImageSearchRequest struct {
	Term                     string
	types.ImageSearchOptions `json:",inline" yaml:",inline"`
	// contains filtered or unexported fields
}

ImageSearchRequest represents request

func (*ImageSearchRequest) Call

func (r *ImageSearchRequest) Call() (result interface{}, err error)

Call calls service

func (*ImageSearchRequest) GetId

func (r *ImageSearchRequest) GetId() string

GetId returns request id

func (*ImageSearchRequest) SetContext

func (r *ImageSearchRequest) SetContext(ctx context.Context)

SetContext sets context

func (*ImageSearchRequest) SetService

func (r *ImageSearchRequest) SetService(service interface{}) error

SetService sets service

type ImageTagRequest

type ImageTagRequest struct {
	Source string
	Target string
	// contains filtered or unexported fields
}

ImageTagRequest represents request

func (*ImageTagRequest) Call

func (r *ImageTagRequest) Call() (result interface{}, err error)

Call calls service

func (*ImageTagRequest) GetId

func (r *ImageTagRequest) GetId() string

GetId returns request id

func (*ImageTagRequest) SetContext

func (r *ImageTagRequest) SetContext(ctx context.Context)

SetContext sets context

func (*ImageTagRequest) SetService

func (r *ImageTagRequest) SetService(service interface{}) error

SetService sets service

type ImagesPruneRequest

type ImagesPruneRequest struct {
	PruneFilters filters.Args
	// contains filtered or unexported fields
}

ImagesPruneRequest represents request

func (*ImagesPruneRequest) Call

func (r *ImagesPruneRequest) Call() (result interface{}, err error)

Call calls service

func (*ImagesPruneRequest) GetId

func (r *ImagesPruneRequest) GetId() string

GetId returns request id

func (*ImagesPruneRequest) SetContext

func (r *ImagesPruneRequest) SetContext(ctx context.Context)

SetContext sets context

func (*ImagesPruneRequest) SetService

func (r *ImagesPruneRequest) SetService(service interface{}) error

SetService sets service

type InfoRequest

type InfoRequest struct {
	// contains filtered or unexported fields
}

InfoRequest represents request

func (*InfoRequest) Call

func (r *InfoRequest) Call() (result interface{}, err error)

Call calls service

func (*InfoRequest) GetId

func (r *InfoRequest) GetId() string

GetId returns request id

func (*InfoRequest) SetContext

func (r *InfoRequest) SetContext(ctx context.Context)

SetContext sets context

func (*InfoRequest) SetService

func (r *InfoRequest) SetService(service interface{}) error

SetService sets service

type InspectRequest

type InspectRequest StatusRequest

InspectRequest represents a docker inspect request, target name refers to container name

func (*InspectRequest) AsStatusRequest

func (r *InspectRequest) AsStatusRequest() *StatusRequest

StatusRequest returns status request

type InspectResponse

type InspectResponse struct {
	Info []types.ContainerJSON //you can extract any instance default, for instance to get Ip you can use Info[0].NetworkSettings.IPAddress in the variable action post from key
}

InspectResponse represents a docker inspect request

type LoginRequest

type LoginRequest struct {
	Credentials string `required:"true" description:"credentials path"`
	Repository  string `required:"true" description:"repository url"`
}

LoginRequest represents a docker pull request

func (*LoginRequest) Validate

func (r *LoginRequest) Validate() error

type LoginResponse

type LoginResponse struct {
}

LoginResponse represents login response

type LogoutRequest

type LogoutRequest struct {
	Repository string `required:"true" description:"repository URL"`
}

LogoutRequest represents a docker logout request

type LogoutResponse

type LogoutResponse struct{}

LogoutResponse represents a docker logout response

type LogsRequest

type LogsRequest struct {
	StatusRequest
	*types.ContainerLogsOptions
}

LogsRequest represents docker runner container logs to take stdout

func (*LogsRequest) AsStatusRequest

func (r *LogsRequest) AsStatusRequest() *StatusRequest

StatusRequest returns status request

func (*LogsRequest) Init

func (r *LogsRequest) Init() error

StatusRequest returns status request

type LogsResponse

type LogsResponse struct {
	Stdout string
}

LogsResponse represents docker container logs response

type NegotiateAPIVersionRequest

type NegotiateAPIVersionRequest struct {
	// contains filtered or unexported fields
}

NegotiateAPIVersionRequest represents request

func (*NegotiateAPIVersionRequest) Call

func (r *NegotiateAPIVersionRequest) Call() (result interface{}, err error)

Call calls service

func (*NegotiateAPIVersionRequest) GetId

GetId returns request id

func (*NegotiateAPIVersionRequest) SetContext

func (r *NegotiateAPIVersionRequest) SetContext(ctx context.Context)

SetContext sets context

func (*NegotiateAPIVersionRequest) SetService

func (r *NegotiateAPIVersionRequest) SetService(service interface{}) error

SetService sets service

type NetworkConnectRequest

type NetworkConnectRequest struct {
	NetworkID   string
	ContainerID string
	Config      *network.EndpointSettings
	// contains filtered or unexported fields
}

NetworkConnectRequest represents request

func (*NetworkConnectRequest) Call

func (r *NetworkConnectRequest) Call() (result interface{}, err error)

Call calls service

func (*NetworkConnectRequest) GetId

func (r *NetworkConnectRequest) GetId() string

GetId returns request id

func (*NetworkConnectRequest) SetContext

func (r *NetworkConnectRequest) SetContext(ctx context.Context)

SetContext sets context

func (*NetworkConnectRequest) SetService

func (r *NetworkConnectRequest) SetService(service interface{}) error

SetService sets service

type NetworkCreateRequest

type NetworkCreateRequest struct {
	Name                string
	types.NetworkCreate `json:",inline" yaml:",inline"`
	// contains filtered or unexported fields
}

NetworkCreateRequest represents request

func (*NetworkCreateRequest) Call

func (r *NetworkCreateRequest) Call() (result interface{}, err error)

Call calls service

func (*NetworkCreateRequest) GetId

func (r *NetworkCreateRequest) GetId() string

GetId returns request id

func (*NetworkCreateRequest) SetContext

func (r *NetworkCreateRequest) SetContext(ctx context.Context)

SetContext sets context

func (*NetworkCreateRequest) SetService

func (r *NetworkCreateRequest) SetService(service interface{}) error

SetService sets service

type NetworkDisconnectRequest

type NetworkDisconnectRequest struct {
	NetworkID   string
	ContainerID string
	Force       bool
	// contains filtered or unexported fields
}

NetworkDisconnectRequest represents request

func (*NetworkDisconnectRequest) Call

func (r *NetworkDisconnectRequest) Call() (result interface{}, err error)

Call calls service

func (*NetworkDisconnectRequest) GetId

func (r *NetworkDisconnectRequest) GetId() string

GetId returns request id

func (*NetworkDisconnectRequest) SetContext

func (r *NetworkDisconnectRequest) SetContext(ctx context.Context)

SetContext sets context

func (*NetworkDisconnectRequest) SetService

func (r *NetworkDisconnectRequest) SetService(service interface{}) error

SetService sets service

type NetworkInspectRequest

type NetworkInspectRequest struct {
	NetworkID                   string
	types.NetworkInspectOptions `json:",inline" yaml:",inline"`
	// contains filtered or unexported fields
}

NetworkInspectRequest represents request

func (*NetworkInspectRequest) Call

func (r *NetworkInspectRequest) Call() (result interface{}, err error)

Call calls service

func (*NetworkInspectRequest) GetId

func (r *NetworkInspectRequest) GetId() string

GetId returns request id

func (*NetworkInspectRequest) SetContext

func (r *NetworkInspectRequest) SetContext(ctx context.Context)

SetContext sets context

func (*NetworkInspectRequest) SetService

func (r *NetworkInspectRequest) SetService(service interface{}) error

SetService sets service

type NetworkListRequest

type NetworkListRequest struct {
	types.NetworkListOptions `json:",inline" yaml:",inline"`
	// contains filtered or unexported fields
}

NetworkListRequest represents request

func (*NetworkListRequest) Call

func (r *NetworkListRequest) Call() (result interface{}, err error)

Call calls service

func (*NetworkListRequest) GetId

func (r *NetworkListRequest) GetId() string

GetId returns request id

func (*NetworkListRequest) SetContext

func (r *NetworkListRequest) SetContext(ctx context.Context)

SetContext sets context

func (*NetworkListRequest) SetService

func (r *NetworkListRequest) SetService(service interface{}) error

SetService sets service

type NetworkRemoveRequest

type NetworkRemoveRequest struct {
	NetworkID string
	// contains filtered or unexported fields
}

NetworkRemoveRequest represents request

func (*NetworkRemoveRequest) Call

func (r *NetworkRemoveRequest) Call() (result interface{}, err error)

Call calls service

func (*NetworkRemoveRequest) GetId

func (r *NetworkRemoveRequest) GetId() string

GetId returns request id

func (*NetworkRemoveRequest) SetContext

func (r *NetworkRemoveRequest) SetContext(ctx context.Context)

SetContext sets context

func (*NetworkRemoveRequest) SetService

func (r *NetworkRemoveRequest) SetService(service interface{}) error

SetService sets service

type NetworksPruneRequest

type NetworksPruneRequest struct {
	PruneFilters filters.Args
	// contains filtered or unexported fields
}

NetworksPruneRequest represents request

func (*NetworksPruneRequest) Call

func (r *NetworksPruneRequest) Call() (result interface{}, err error)

Call calls service

func (*NetworksPruneRequest) GetId

func (r *NetworksPruneRequest) GetId() string

GetId returns request id

func (*NetworksPruneRequest) SetContext

func (r *NetworksPruneRequest) SetContext(ctx context.Context)

SetContext sets context

func (*NetworksPruneRequest) SetService

func (r *NetworksPruneRequest) SetService(service interface{}) error

SetService sets service

type NodeListRequest

type NodeListRequest struct {
	types.NodeListOptions `json:",inline" yaml:",inline"`
	// contains filtered or unexported fields
}

NodeListRequest represents request

func (*NodeListRequest) Call

func (r *NodeListRequest) Call() (result interface{}, err error)

Call calls service

func (*NodeListRequest) GetId

func (r *NodeListRequest) GetId() string

GetId returns request id

func (*NodeListRequest) SetContext

func (r *NodeListRequest) SetContext(ctx context.Context)

SetContext sets context

func (*NodeListRequest) SetService

func (r *NodeListRequest) SetService(service interface{}) error

SetService sets service

type NodeRemoveRequest

type NodeRemoveRequest struct {
	NodeID                  string
	types.NodeRemoveOptions `json:",inline" yaml:",inline"`
	// contains filtered or unexported fields
}

NodeRemoveRequest represents request

func (*NodeRemoveRequest) Call

func (r *NodeRemoveRequest) Call() (result interface{}, err error)

Call calls service

func (*NodeRemoveRequest) GetId

func (r *NodeRemoveRequest) GetId() string

GetId returns request id

func (*NodeRemoveRequest) SetContext

func (r *NodeRemoveRequest) SetContext(ctx context.Context)

SetContext sets context

func (*NodeRemoveRequest) SetService

func (r *NodeRemoveRequest) SetService(service interface{}) error

SetService sets service

type NodeUpdateRequest

type NodeUpdateRequest struct {
	NodeID  string
	Version swarm.Version
	Node    swarm.NodeSpec
	// contains filtered or unexported fields
}

NodeUpdateRequest represents request

func (*NodeUpdateRequest) Call

func (r *NodeUpdateRequest) Call() (result interface{}, err error)

Call calls service

func (*NodeUpdateRequest) GetId

func (r *NodeUpdateRequest) GetId() string

GetId returns request id

func (*NodeUpdateRequest) SetContext

func (r *NodeUpdateRequest) SetContext(ctx context.Context)

SetContext sets context

func (*NodeUpdateRequest) SetService

func (r *NodeUpdateRequest) SetService(service interface{}) error

SetService sets service

type OutputEvent

type OutputEvent struct {
	*msg.OutputEvent
}

OutputEvent represents an output event

type PingRequest

type PingRequest struct {
	// contains filtered or unexported fields
}

PingRequest represents request

func (*PingRequest) Call

func (r *PingRequest) Call() (result interface{}, err error)

Call calls service

func (*PingRequest) GetId

func (r *PingRequest) GetId() string

GetId returns request id

func (*PingRequest) SetContext

func (r *PingRequest) SetContext(ctx context.Context)

SetContext sets context

func (*PingRequest) SetService

func (r *PingRequest) SetService(service interface{}) error

SetService sets service

type PluginCreateRequest

type PluginCreateRequest struct {
	CreateContext             io.Reader
	types.PluginCreateOptions `json:",inline" yaml:",inline"`
	// contains filtered or unexported fields
}

PluginCreateRequest represents request

func (*PluginCreateRequest) Call

func (r *PluginCreateRequest) Call() (result interface{}, err error)

Call calls service

func (*PluginCreateRequest) GetId

func (r *PluginCreateRequest) GetId() string

GetId returns request id

func (*PluginCreateRequest) SetContext

func (r *PluginCreateRequest) SetContext(ctx context.Context)

SetContext sets context

func (*PluginCreateRequest) SetService

func (r *PluginCreateRequest) SetService(service interface{}) error

SetService sets service

type PluginDisableRequest

type PluginDisableRequest struct {
	Name                       string
	types.PluginDisableOptions `json:",inline" yaml:",inline"`
	// contains filtered or unexported fields
}

PluginDisableRequest represents request

func (*PluginDisableRequest) Call

func (r *PluginDisableRequest) Call() (result interface{}, err error)

Call calls service

func (*PluginDisableRequest) GetId

func (r *PluginDisableRequest) GetId() string

GetId returns request id

func (*PluginDisableRequest) SetContext

func (r *PluginDisableRequest) SetContext(ctx context.Context)

SetContext sets context

func (*PluginDisableRequest) SetService

func (r *PluginDisableRequest) SetService(service interface{}) error

SetService sets service

type PluginEnableRequest

type PluginEnableRequest struct {
	Name                      string
	types.PluginEnableOptions `json:",inline" yaml:",inline"`
	// contains filtered or unexported fields
}

PluginEnableRequest represents request

func (*PluginEnableRequest) Call

func (r *PluginEnableRequest) Call() (result interface{}, err error)

Call calls service

func (*PluginEnableRequest) GetId

func (r *PluginEnableRequest) GetId() string

GetId returns request id

func (*PluginEnableRequest) SetContext

func (r *PluginEnableRequest) SetContext(ctx context.Context)

SetContext sets context

func (*PluginEnableRequest) SetService

func (r *PluginEnableRequest) SetService(service interface{}) error

SetService sets service

type PluginInstallRequest

type PluginInstallRequest struct {
	Name                       string
	types.PluginInstallOptions `json:",inline" yaml:",inline"`
	// contains filtered or unexported fields
}

PluginInstallRequest represents request

func (*PluginInstallRequest) Call

func (r *PluginInstallRequest) Call() (result interface{}, err error)

Call calls service

func (*PluginInstallRequest) GetId

func (r *PluginInstallRequest) GetId() string

GetId returns request id

func (*PluginInstallRequest) SetContext

func (r *PluginInstallRequest) SetContext(ctx context.Context)

SetContext sets context

func (*PluginInstallRequest) SetService

func (r *PluginInstallRequest) SetService(service interface{}) error

SetService sets service

type PluginListRequest

type PluginListRequest struct {
	Filter filters.Args
	// contains filtered or unexported fields
}

PluginListRequest represents request

func (*PluginListRequest) Call

func (r *PluginListRequest) Call() (result interface{}, err error)

Call calls service

func (*PluginListRequest) GetId

func (r *PluginListRequest) GetId() string

GetId returns request id

func (*PluginListRequest) SetContext

func (r *PluginListRequest) SetContext(ctx context.Context)

SetContext sets context

func (*PluginListRequest) SetService

func (r *PluginListRequest) SetService(service interface{}) error

SetService sets service

type PluginPushRequest

type PluginPushRequest struct {
	Name         string
	RegistryAuth string
	// contains filtered or unexported fields
}

PluginPushRequest represents request

func (*PluginPushRequest) Call

func (r *PluginPushRequest) Call() (result interface{}, err error)

Call calls service

func (*PluginPushRequest) GetId

func (r *PluginPushRequest) GetId() string

GetId returns request id

func (*PluginPushRequest) SetContext

func (r *PluginPushRequest) SetContext(ctx context.Context)

SetContext sets context

func (*PluginPushRequest) SetService

func (r *PluginPushRequest) SetService(service interface{}) error

SetService sets service

type PluginRemoveRequest

type PluginRemoveRequest struct {
	Name                      string
	types.PluginRemoveOptions `json:",inline" yaml:",inline"`
	// contains filtered or unexported fields
}

PluginRemoveRequest represents request

func (*PluginRemoveRequest) Call

func (r *PluginRemoveRequest) Call() (result interface{}, err error)

Call calls service

func (*PluginRemoveRequest) GetId

func (r *PluginRemoveRequest) GetId() string

GetId returns request id

func (*PluginRemoveRequest) SetContext

func (r *PluginRemoveRequest) SetContext(ctx context.Context)

SetContext sets context

func (*PluginRemoveRequest) SetService

func (r *PluginRemoveRequest) SetService(service interface{}) error

SetService sets service

type PluginSetRequest

type PluginSetRequest struct {
	Name string
	Args []string
	// contains filtered or unexported fields
}

PluginSetRequest represents request

func (*PluginSetRequest) Call

func (r *PluginSetRequest) Call() (result interface{}, err error)

Call calls service

func (*PluginSetRequest) GetId

func (r *PluginSetRequest) GetId() string

GetId returns request id

func (*PluginSetRequest) SetContext

func (r *PluginSetRequest) SetContext(ctx context.Context)

SetContext sets context

func (*PluginSetRequest) SetService

func (r *PluginSetRequest) SetService(service interface{}) error

SetService sets service

type PluginUpgradeRequest

type PluginUpgradeRequest struct {
	Name                       string
	types.PluginInstallOptions `json:",inline" yaml:",inline"`
	// contains filtered or unexported fields
}

PluginUpgradeRequest represents request

func (*PluginUpgradeRequest) Call

func (r *PluginUpgradeRequest) Call() (result interface{}, err error)

Call calls service

func (*PluginUpgradeRequest) GetId

func (r *PluginUpgradeRequest) GetId() string

GetId returns request id

func (*PluginUpgradeRequest) SetContext

func (r *PluginUpgradeRequest) SetContext(ctx context.Context)

SetContext sets context

func (*PluginUpgradeRequest) SetService

func (r *PluginUpgradeRequest) SetService(service interface{}) error

SetService sets service

type PullRequest

type PullRequest struct {
	Credentials            string
	Image                  string
	types.ImagePullOptions `json:",inline" yaml:",inline"`
}

PullRequest represents pull request

func (*PullRequest) Init

func (r *PullRequest) Init() error

type PullResponse

type PullResponse struct {
	types.ImageSummary
	Stdout []string
}

PullResponse represents pull response

type PushRequest

type PushRequest struct {
	Credentials string
	Tag         *Tag `required:"true"`
}

PushRequest represents a docker push request

type PushResponse

type PushResponse struct {
	Stdout []string
}

PushResponse represents push response

type RegistryLoginRequest

type RegistryLoginRequest struct {
	Auth types.AuthConfig
	// contains filtered or unexported fields
}

RegistryLoginRequest represents request

func (*RegistryLoginRequest) Call

func (r *RegistryLoginRequest) Call() (result interface{}, err error)

Call calls service

func (*RegistryLoginRequest) GetId

func (r *RegistryLoginRequest) GetId() string

GetId returns request id

func (*RegistryLoginRequest) SetContext

func (r *RegistryLoginRequest) SetContext(ctx context.Context)

SetContext sets context

func (*RegistryLoginRequest) SetService

func (r *RegistryLoginRequest) SetService(service interface{}) error

SetService sets service

type RemoveRequest

type RemoveRequest StatusRequest

RemoveRequest represents docker remove request

func (*RemoveRequest) AsStatusRequest

func (r *RemoveRequest) AsStatusRequest() *StatusRequest

StatusRequest returns status request

type RemoveResponse

type RemoveResponse StatusResponse

RemoveResponse represents remove response

type RunRequest

type RunRequest struct {
	Credentials                 string `description:"credentials"`
	Name                        string
	Image                       string            `required:"true" description:"container image to runAdapter" example:"mysql:5.6"`
	Port                        string            `description:"publish a container’s port(s) to the host, docker -p option"`
	Env                         map[string]string `description:"set docker container an environment variable, docker -e KEY=VAL  option"`
	Mount                       map[string]string `description:"bind mount a volume, docker -v option"`
	Ports                       map[string]string `description:"publish a container’s port(s) to the host, docker -p option"`
	Workdir                     string            `description:"working directory inside the container, docker -w option"`
	Reuse                       bool              `description:"reuse existing container if exists, otherwise always removes"`
	Cmd                         []string
	Entrypoint                  []string
	types.ContainerCreateConfig `json:",inline" yaml:",inline"`
	Secrets                     map[secret.Key]secret.Resource `description:"map of secrets used within env"`
	types.ImagePullOptions
}

RunRequest represents a docker runAdapter request

func (*RunRequest) CreateContainerRequest

func (r *RunRequest) CreateContainerRequest() *ContainerCreateRequest

func (*RunRequest) Init

func (r *RunRequest) Init() error

func (*RunRequest) Validate

func (r *RunRequest) Validate() error

type RunResponse

type RunResponse struct {
	ContainerID string
	Status      string
	Stdout      string
}

type SecretCreateRequest

type SecretCreateRequest struct {
	Secret swarm.SecretSpec
	// contains filtered or unexported fields
}

SecretCreateRequest represents request

func (*SecretCreateRequest) Call

func (r *SecretCreateRequest) Call() (result interface{}, err error)

Call calls service

func (*SecretCreateRequest) GetId

func (r *SecretCreateRequest) GetId() string

GetId returns request id

func (*SecretCreateRequest) SetContext

func (r *SecretCreateRequest) SetContext(ctx context.Context)

SetContext sets context

func (*SecretCreateRequest) SetService

func (r *SecretCreateRequest) SetService(service interface{}) error

SetService sets service

type SecretListRequest

type SecretListRequest struct {
	types.SecretListOptions `json:",inline" yaml:",inline"`
	// contains filtered or unexported fields
}

SecretListRequest represents request

func (*SecretListRequest) Call

func (r *SecretListRequest) Call() (result interface{}, err error)

Call calls service

func (*SecretListRequest) GetId

func (r *SecretListRequest) GetId() string

GetId returns request id

func (*SecretListRequest) SetContext

func (r *SecretListRequest) SetContext(ctx context.Context)

SetContext sets context

func (*SecretListRequest) SetService

func (r *SecretListRequest) SetService(service interface{}) error

SetService sets service

type SecretRemoveRequest

type SecretRemoveRequest struct {
	Id string
	// contains filtered or unexported fields
}

SecretRemoveRequest represents request

func (*SecretRemoveRequest) Call

func (r *SecretRemoveRequest) Call() (result interface{}, err error)

Call calls service

func (*SecretRemoveRequest) GetId

func (r *SecretRemoveRequest) GetId() string

GetId returns request id

func (*SecretRemoveRequest) SetContext

func (r *SecretRemoveRequest) SetContext(ctx context.Context)

SetContext sets context

func (*SecretRemoveRequest) SetService

func (r *SecretRemoveRequest) SetService(service interface{}) error

SetService sets service

type SecretUpdateRequest

type SecretUpdateRequest struct {
	Id      string
	Version swarm.Version
	Secret  swarm.SecretSpec
	// contains filtered or unexported fields
}

SecretUpdateRequest represents request

func (*SecretUpdateRequest) Call

func (r *SecretUpdateRequest) Call() (result interface{}, err error)

Call calls service

func (*SecretUpdateRequest) GetId

func (r *SecretUpdateRequest) GetId() string

GetId returns request id

func (*SecretUpdateRequest) SetContext

func (r *SecretUpdateRequest) SetContext(ctx context.Context)

SetContext sets context

func (*SecretUpdateRequest) SetService

func (r *SecretUpdateRequest) SetService(service interface{}) error

SetService sets service

type ServerVersionRequest

type ServerVersionRequest struct {
	// contains filtered or unexported fields
}

ServerVersionRequest represents request

func (*ServerVersionRequest) Call

func (r *ServerVersionRequest) Call() (result interface{}, err error)

Call calls service

func (*ServerVersionRequest) GetId

func (r *ServerVersionRequest) GetId() string

GetId returns request id

func (*ServerVersionRequest) SetContext

func (r *ServerVersionRequest) SetContext(ctx context.Context)

SetContext sets context

func (*ServerVersionRequest) SetService

func (r *ServerVersionRequest) SetService(service interface{}) error

SetService sets service

type ServiceCreateRequest

type ServiceCreateRequest struct {
	swarm.ServiceSpec
	Options types.ServiceCreateOptions `json:",inline" yaml:",inline"`
	// contains filtered or unexported fields
}

ServiceCreateRequest represents request

func (*ServiceCreateRequest) Call

func (r *ServiceCreateRequest) Call() (result interface{}, err error)

Call calls service

func (*ServiceCreateRequest) GetId

func (r *ServiceCreateRequest) GetId() string

GetId returns request id

func (*ServiceCreateRequest) SetContext

func (r *ServiceCreateRequest) SetContext(ctx context.Context)

SetContext sets context

func (*ServiceCreateRequest) SetService

func (r *ServiceCreateRequest) SetService(service interface{}) error

SetService sets service

type ServiceListRequest

type ServiceListRequest struct {
	types.ServiceListOptions `json:",inline" yaml:",inline"`
	// contains filtered or unexported fields
}

ServiceListRequest represents request

func (*ServiceListRequest) Call

func (r *ServiceListRequest) Call() (result interface{}, err error)

Call calls service

func (*ServiceListRequest) GetId

func (r *ServiceListRequest) GetId() string

GetId returns request id

func (*ServiceListRequest) SetContext

func (r *ServiceListRequest) SetContext(ctx context.Context)

SetContext sets context

func (*ServiceListRequest) SetService

func (r *ServiceListRequest) SetService(service interface{}) error

SetService sets service

type ServiceLogsRequest

type ServiceLogsRequest struct {
	ServiceID                  string
	types.ContainerLogsOptions `json:",inline" yaml:",inline"`
	// contains filtered or unexported fields
}

ServiceLogsRequest represents request

func (*ServiceLogsRequest) Call

func (r *ServiceLogsRequest) Call() (result interface{}, err error)

Call calls service

func (*ServiceLogsRequest) GetId

func (r *ServiceLogsRequest) GetId() string

GetId returns request id

func (*ServiceLogsRequest) SetContext

func (r *ServiceLogsRequest) SetContext(ctx context.Context)

SetContext sets context

func (*ServiceLogsRequest) SetService

func (r *ServiceLogsRequest) SetService(service interface{}) error

SetService sets service

type ServiceRemoveRequest

type ServiceRemoveRequest struct {
	ServiceID string
	// contains filtered or unexported fields
}

ServiceRemoveRequest represents request

func (*ServiceRemoveRequest) Call

func (r *ServiceRemoveRequest) Call() (result interface{}, err error)

Call calls service

func (*ServiceRemoveRequest) GetId

func (r *ServiceRemoveRequest) GetId() string

GetId returns request id

func (*ServiceRemoveRequest) SetContext

func (r *ServiceRemoveRequest) SetContext(ctx context.Context)

SetContext sets context

func (*ServiceRemoveRequest) SetService

func (r *ServiceRemoveRequest) SetService(service interface{}) error

SetService sets service

type ServiceUpdateRequest

type ServiceUpdateRequest struct {
	ServiceID string
	swarm.Version
	Service swarm.ServiceSpec
	Options types.ServiceUpdateOptions `json:",inline" yaml:",inline"`
	// contains filtered or unexported fields
}

ServiceUpdateRequest represents request

func (*ServiceUpdateRequest) Call

func (r *ServiceUpdateRequest) Call() (result interface{}, err error)

Call calls service

func (*ServiceUpdateRequest) GetId

func (r *ServiceUpdateRequest) GetId() string

GetId returns request id

func (*ServiceUpdateRequest) SetContext

func (r *ServiceUpdateRequest) SetContext(ctx context.Context)

SetContext sets context

func (*ServiceUpdateRequest) SetService

func (r *ServiceUpdateRequest) SetService(service interface{}) error

SetService sets service

type StartRequest

type StartRequest StatusRequest

StartRequest start request

func (*StartRequest) AsStatusRequest

func (r *StartRequest) AsStatusRequest() *StatusRequest

StatusRequest returns status request

type StartResponse

type StartResponse StopResponse

StartResponse represents docker start response

type StatusRequest

type StatusRequest struct {
	Name   string
	Names  []string
	Images []string
	IDs    []string
}

StatusRequest represents a docker check container status request

func (*StatusRequest) Init

func (r *StatusRequest) Init() error

type StatusResponse

type StatusResponse struct {
	Containers []types.Container
}

StatusResponse represents status response

type StopRequest

type StopRequest StatusRequest

StopRequest represents docker stop running images/containers request

func (*StopRequest) AsStatusRequest

func (r *StopRequest) AsStatusRequest() *StatusRequest

StatusRequest returns status request

type StopResponse

type StopResponse StatusResponse

StopImagesResponse represents docker stop images response

type SwarmGetUnlockKeyRequest

type SwarmGetUnlockKeyRequest struct {
	// contains filtered or unexported fields
}

SwarmGetUnlockKeyRequest represents request

func (*SwarmGetUnlockKeyRequest) Call

func (r *SwarmGetUnlockKeyRequest) Call() (result interface{}, err error)

Call calls service

func (*SwarmGetUnlockKeyRequest) GetId

func (r *SwarmGetUnlockKeyRequest) GetId() string

GetId returns request id

func (*SwarmGetUnlockKeyRequest) SetContext

func (r *SwarmGetUnlockKeyRequest) SetContext(ctx context.Context)

SetContext sets context

func (*SwarmGetUnlockKeyRequest) SetService

func (r *SwarmGetUnlockKeyRequest) SetService(service interface{}) error

SetService sets service

type SwarmInitRequest

type SwarmInitRequest struct {
	Req swarm.InitRequest
	// contains filtered or unexported fields
}

SwarmInitRequest represents request

func (*SwarmInitRequest) Call

func (r *SwarmInitRequest) Call() (result interface{}, err error)

Call calls service

func (*SwarmInitRequest) GetId

func (r *SwarmInitRequest) GetId() string

GetId returns request id

func (*SwarmInitRequest) SetContext

func (r *SwarmInitRequest) SetContext(ctx context.Context)

SetContext sets context

func (*SwarmInitRequest) SetService

func (r *SwarmInitRequest) SetService(service interface{}) error

SetService sets service

type SwarmInspectRequest

type SwarmInspectRequest struct {
	// contains filtered or unexported fields
}

SwarmInspectRequest represents request

func (*SwarmInspectRequest) Call

func (r *SwarmInspectRequest) Call() (result interface{}, err error)

Call calls service

func (*SwarmInspectRequest) GetId

func (r *SwarmInspectRequest) GetId() string

GetId returns request id

func (*SwarmInspectRequest) SetContext

func (r *SwarmInspectRequest) SetContext(ctx context.Context)

SetContext sets context

func (*SwarmInspectRequest) SetService

func (r *SwarmInspectRequest) SetService(service interface{}) error

SetService sets service

type SwarmJoinRequest

type SwarmJoinRequest struct {
	Req swarm.JoinRequest
	// contains filtered or unexported fields
}

SwarmJoinRequest represents request

func (*SwarmJoinRequest) Call

func (r *SwarmJoinRequest) Call() (result interface{}, err error)

Call calls service

func (*SwarmJoinRequest) GetId

func (r *SwarmJoinRequest) GetId() string

GetId returns request id

func (*SwarmJoinRequest) SetContext

func (r *SwarmJoinRequest) SetContext(ctx context.Context)

SetContext sets context

func (*SwarmJoinRequest) SetService

func (r *SwarmJoinRequest) SetService(service interface{}) error

SetService sets service

type SwarmLeaveRequest

type SwarmLeaveRequest struct {
	Force bool
	// contains filtered or unexported fields
}

SwarmLeaveRequest represents request

func (*SwarmLeaveRequest) Call

func (r *SwarmLeaveRequest) Call() (result interface{}, err error)

Call calls service

func (*SwarmLeaveRequest) GetId

func (r *SwarmLeaveRequest) GetId() string

GetId returns request id

func (*SwarmLeaveRequest) SetContext

func (r *SwarmLeaveRequest) SetContext(ctx context.Context)

SetContext sets context

func (*SwarmLeaveRequest) SetService

func (r *SwarmLeaveRequest) SetService(service interface{}) error

SetService sets service

type SwarmUnlockRequest

type SwarmUnlockRequest struct {
	Req swarm.UnlockRequest
	// contains filtered or unexported fields
}

SwarmUnlockRequest represents request

func (*SwarmUnlockRequest) Call

func (r *SwarmUnlockRequest) Call() (result interface{}, err error)

Call calls service

func (*SwarmUnlockRequest) GetId

func (r *SwarmUnlockRequest) GetId() string

GetId returns request id

func (*SwarmUnlockRequest) SetContext

func (r *SwarmUnlockRequest) SetContext(ctx context.Context)

SetContext sets context

func (*SwarmUnlockRequest) SetService

func (r *SwarmUnlockRequest) SetService(service interface{}) error

SetService sets service

type SwarmUpdateRequest

type SwarmUpdateRequest struct {
	Version swarm.Version
	Swarm   swarm.Spec
	Flags   swarm.UpdateFlags
	// contains filtered or unexported fields
}

SwarmUpdateRequest represents request

func (*SwarmUpdateRequest) Call

func (r *SwarmUpdateRequest) Call() (result interface{}, err error)

Call calls service

func (*SwarmUpdateRequest) GetId

func (r *SwarmUpdateRequest) GetId() string

GetId returns request id

func (*SwarmUpdateRequest) SetContext

func (r *SwarmUpdateRequest) SetContext(ctx context.Context)

SetContext sets context

func (*SwarmUpdateRequest) SetService

func (r *SwarmUpdateRequest) SetService(service interface{}) error

SetService sets service

type Tag

type Tag struct {
	Username string
	Registry string
	Image    string
	Version  string
}

Tag represent a docker tag

func NewTag

func NewTag(imageTag string) *Tag

NewTag returns new tag

func (*Tag) Repository

func (t *Tag) Repository() string

func (*Tag) String

func (t *Tag) String() string

String stringify docker tag

type TagRequest

type TagRequest struct {
	SourceTag *Tag `required:"true"`
	TargetTag *Tag `required:"true"`
}

TagRequest represents docker tag request

type TagResponse

type TagResponse struct {
	Stdout string
}

TagResponse represents docker tag response

type TaskListRequest

type TaskListRequest struct {
	types.TaskListOptions `json:",inline" yaml:",inline"`
	// contains filtered or unexported fields
}

TaskListRequest represents request

func (*TaskListRequest) Call

func (r *TaskListRequest) Call() (result interface{}, err error)

Call calls service

func (*TaskListRequest) GetId

func (r *TaskListRequest) GetId() string

GetId returns request id

func (*TaskListRequest) SetContext

func (r *TaskListRequest) SetContext(ctx context.Context)

SetContext sets context

func (*TaskListRequest) SetService

func (r *TaskListRequest) SetService(service interface{}) error

SetService sets service

type TaskLogsRequest

type TaskLogsRequest struct {
	TaskID                     string
	types.ContainerLogsOptions `json:",inline" yaml:",inline"`
	// contains filtered or unexported fields
}

TaskLogsRequest represents request

func (*TaskLogsRequest) Call

func (r *TaskLogsRequest) Call() (result interface{}, err error)

Call calls service

func (*TaskLogsRequest) GetId

func (r *TaskLogsRequest) GetId() string

GetId returns request id

func (*TaskLogsRequest) SetContext

func (r *TaskLogsRequest) SetContext(ctx context.Context)

SetContext sets context

func (*TaskLogsRequest) SetService

func (r *TaskLogsRequest) SetService(service interface{}) error

SetService sets service

type VolumeCreateRequest

type VolumeCreateRequest struct {
	volumetypes.VolumeCreateBody `json:",inline" yaml:",inline"`
	// contains filtered or unexported fields
}

VolumeCreateRequest represents request

func (*VolumeCreateRequest) Call

func (r *VolumeCreateRequest) Call() (result interface{}, err error)

Call calls service

func (*VolumeCreateRequest) GetId

func (r *VolumeCreateRequest) GetId() string

GetId returns request id

func (*VolumeCreateRequest) SetContext

func (r *VolumeCreateRequest) SetContext(ctx context.Context)

SetContext sets context

func (*VolumeCreateRequest) SetService

func (r *VolumeCreateRequest) SetService(service interface{}) error

SetService sets service

type VolumeInspectRequest

type VolumeInspectRequest struct {
	VolumeID string
	// contains filtered or unexported fields
}

VolumeInspectRequest represents request

func (*VolumeInspectRequest) Call

func (r *VolumeInspectRequest) Call() (result interface{}, err error)

Call calls service

func (*VolumeInspectRequest) GetId

func (r *VolumeInspectRequest) GetId() string

GetId returns request id

func (*VolumeInspectRequest) SetContext

func (r *VolumeInspectRequest) SetContext(ctx context.Context)

SetContext sets context

func (*VolumeInspectRequest) SetService

func (r *VolumeInspectRequest) SetService(service interface{}) error

SetService sets service

type VolumeListRequest

type VolumeListRequest struct {
	Filter filters.Args
	// contains filtered or unexported fields
}

VolumeListRequest represents request

func (*VolumeListRequest) Call

func (r *VolumeListRequest) Call() (result interface{}, err error)

Call calls service

func (*VolumeListRequest) GetId

func (r *VolumeListRequest) GetId() string

GetId returns request id

func (*VolumeListRequest) SetContext

func (r *VolumeListRequest) SetContext(ctx context.Context)

SetContext sets context

func (*VolumeListRequest) SetService

func (r *VolumeListRequest) SetService(service interface{}) error

SetService sets service

type VolumeRemoveRequest

type VolumeRemoveRequest struct {
	VolumeID string
	Force    bool
	// contains filtered or unexported fields
}

VolumeRemoveRequest represents request

func (*VolumeRemoveRequest) Call

func (r *VolumeRemoveRequest) Call() (result interface{}, err error)

Call calls service

func (*VolumeRemoveRequest) GetId

func (r *VolumeRemoveRequest) GetId() string

GetId returns request id

func (*VolumeRemoveRequest) SetContext

func (r *VolumeRemoveRequest) SetContext(ctx context.Context)

SetContext sets context

func (*VolumeRemoveRequest) SetService

func (r *VolumeRemoveRequest) SetService(service interface{}) error

SetService sets service

type VolumesPruneRequest

type VolumesPruneRequest struct {
	PruneFilters filters.Args
	// contains filtered or unexported fields
}

VolumesPruneRequest represents request

func (*VolumesPruneRequest) Call

func (r *VolumesPruneRequest) Call() (result interface{}, err error)

Call calls service

func (*VolumesPruneRequest) GetId

func (r *VolumesPruneRequest) GetId() string

GetId returns request id

func (*VolumesPruneRequest) SetContext

func (r *VolumesPruneRequest) SetContext(ctx context.Context)

SetContext sets context

func (*VolumesPruneRequest) SetService

func (r *VolumesPruneRequest) SetService(service interface{}) error

SetService sets service

Directories

Path Synopsis
test

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL