github.com/alloyci/alloy-runner@v1.0.1-0.20180222164613-925503ccafd6/helpers/docker/machine.go (about)

     1  package docker_helpers
     2  
     3  import (
     4  	"time"
     5  )
     6  
     7  type Machine interface {
     8  	Create(driver, name string, opts ...string) error
     9  	Provision(name string) error
    10  	Remove(name string) error
    11  	Stop(name string, timeout time.Duration) error
    12  	List() (machines []string, err error)
    13  	Exist(name string) bool
    14  
    15  	CanConnect(name string) bool
    16  	Credentials(name string) (DockerCredentials, error)
    17  }