Documentation
¶
Index ¶
- func AllocStream(c *rpc.Client, addr string) (id uint32, conn net.Conn, err error)
- func CallAll(addrs []string, f func(c *rpc.Client, addr string) (interface{}, error)) (map[string]interface{}, error)
- func Dial(network, address string) (*rpc.Client, error)
- func Exec(addrs []string, container string, cmd []string, interactive, tty bool) error
- func ListContainers(addrs []string, all bool) (map[string]interface{}, error)
- func ListIPAddrs() ([]string, error)
- func ListImages(addrs []string) (map[string]interface{}, error)
- func ListenAndServe(c *config.Config) error
- func LoadImage(addrs []string, r io.Reader, compress bool, bwlimit uint64) error
- func LoadImageUsingPipeline(addrs []string, r io.Reader, compress bool, bwlimit uint64) error
- func Logs(addrs []string, container string, follow bool, tail string) error
- func PullImage(addrs []string, image string) error
- func RemoveContainer(addrs []string, container string, force bool) error
- func RemoveImage(addrs []string, name string) error
- func RestartContainer(addrs []string, container string, timeout uint) error
- func ShortHostname(s string, omitPort bool) string
- func StartContainer(addrs []string, container string) error
- func StopContainer(addrs []string, container string, timeout uint) error
- type AllocResponse
- type ByNetworkType
- type Capability
- type Craft
- type Docker
- func (d *Docker) Exec(req ExecRequest, resp *Empty) (err error)
- func (d *Docker) ListContainers(req ListContainersRequest, resp *ListContainersResponse) error
- func (d *Docker) ListImages(req Empty, resp *ListImagesResponse) (err error)
- func (d *Docker) LoadImage(req LoadImageRequest, resp *Empty) error
- func (d *Docker) Logs(req LogsRequest, resp *Empty) error
- func (d *Docker) PullImage(req PullImageRequest, resp *Empty) error
- func (d *Docker) RemoveContainer(req RemoveContainerRequest, resp *Empty) error
- func (d *Docker) RemoveImage(req string, resp *Empty) error
- func (d *Docker) RestartContainer(req RestartContainerRequest, resp *Empty) error
- func (d *Docker) StartContainer(req string, resp *Empty) error
- func (d *Docker) StopContainer(req StopContainerRequest, resp *Empty) error
- type Empty
- type Error
- type ExLink
- type ExecRequest
- type ListContainersRequest
- type ListContainersResponse
- type ListImagesResponse
- type LoadImageRequest
- type LogsRequest
- type PullImageRequest
- type RemoveContainerRequest
- type RestartContainerRequest
- type StopContainerRequest
- type StreamConn
- type SubmitRequest
- type SubmitResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllocStream ¶
func ListIPAddrs ¶
func ListImages ¶
func ListenAndServe ¶
func LoadImageUsingPipeline ¶
func RemoveImage ¶
func ShortHostname ¶
func StartContainer ¶
Types ¶
type AllocResponse ¶
type AllocResponse struct {
ID uint32
}
type ByNetworkType ¶
func (ByNetworkType) Len ¶
func (s ByNetworkType) Len() int
func (ByNetworkType) Less ¶
func (s ByNetworkType) Less(i, j int) bool
func (ByNetworkType) Swap ¶
func (s ByNetworkType) Swap(i, j int)
type Capability ¶
type Craft ¶
type Craft struct {
// contains filtered or unexported fields
}
func (*Craft) Capability ¶
func (c *Craft) Capability(req Empty, resp *Capability) error
func (*Craft) Submit ¶
func (c *Craft) Submit(req SubmitRequest, resp *SubmitResponse) error
type Docker ¶
type Docker struct {
// contains filtered or unexported fields
}
func (*Docker) ListContainers ¶
func (d *Docker) ListContainers(req ListContainersRequest, resp *ListContainersResponse) error
func (*Docker) ListImages ¶
func (d *Docker) ListImages(req Empty, resp *ListImagesResponse) (err error)
func (*Docker) RemoveContainer ¶
func (d *Docker) RemoveContainer(req RemoveContainerRequest, resp *Empty) error
func (*Docker) RestartContainer ¶
func (d *Docker) RestartContainer(req RestartContainerRequest, resp *Empty) error
func (*Docker) StopContainer ¶
func (d *Docker) StopContainer(req StopContainerRequest, resp *Empty) error
type ExecRequest ¶
type ListContainersRequest ¶
type ListContainersRequest struct {
All bool
}
type ListContainersResponse ¶
type ListContainersResponse struct {
Containers []docker.APIContainers
}
func (*ListContainersResponse) FilterByNames ¶
func (r *ListContainersResponse) FilterByNames(names []string) []docker.APIContainers
type ListImagesResponse ¶
type ListImagesResponse struct {
Images []docker.APIImages
}
type LoadImageRequest ¶
type LogsRequest ¶
type PullImageRequest ¶
type RemoveContainerRequest ¶
type RestartContainerRequest ¶
type StopContainerRequest ¶
type StreamConn ¶
type StreamConn struct {
// contains filtered or unexported fields
}
func NewStreamConn ¶
func NewStreamConn() *StreamConn
func (*StreamConn) Alloc ¶
func (s *StreamConn) Alloc(req Empty, resp *AllocResponse) error
type SubmitRequest ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.