Documentation ¶
Index ¶
- type ContainerConfig
- type DockerEndpoint
- func (e *DockerEndpoint) BuildImage(buildContext io.Reader, svcName string) error
- func (e *DockerEndpoint) Host() string
- func (e *DockerEndpoint) InspectContainer(name string) (*dockerclient.ContainerInfo, error)
- func (e *DockerEndpoint) Name() string
- func (e *DockerEndpoint) RemoveContainer(name string) error
- func (e *DockerEndpoint) ResolveImage(name string) (string, error)
- func (e *DockerEndpoint) StartContainer(name string, cc ContainerConfig) error
- func (e *DockerEndpoint) Version() (string, error)
- type Endpoint
- type EndpointFactory
- type EndpointOptions
- type FromStringOrBool
- type FromStringOrStringSlice
- type HostConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContainerConfig ¶
type ContainerConfig struct { dockerclient.ContainerConfig Tty FromStringOrBool OpenStdin FromStringOrBool Entrypoint FromStringOrStringSlice // This is used only by the create command HostConfig HostConfig }
type DockerEndpoint ¶
type DockerEndpoint struct {
// contains filtered or unexported fields
}
func (*DockerEndpoint) BuildImage ¶
func (e *DockerEndpoint) BuildImage(buildContext io.Reader, svcName string) error
func (*DockerEndpoint) Host ¶
func (e *DockerEndpoint) Host() string
TODO: can we ditch this? Should always have it on the client
func (*DockerEndpoint) InspectContainer ¶
func (e *DockerEndpoint) InspectContainer(name string) (*dockerclient.ContainerInfo, error)
func (*DockerEndpoint) Name ¶
func (e *DockerEndpoint) Name() string
TODO: can we ditch this? Should always have it on the client
func (*DockerEndpoint) RemoveContainer ¶
func (e *DockerEndpoint) RemoveContainer(name string) error
func (*DockerEndpoint) ResolveImage ¶
func (e *DockerEndpoint) ResolveImage(name string) (string, error)
func (*DockerEndpoint) StartContainer ¶
func (e *DockerEndpoint) StartContainer(name string, cc ContainerConfig) error
func (*DockerEndpoint) Version ¶
func (e *DockerEndpoint) Version() (string, error)
type Endpoint ¶
type Endpoint interface { Version() (string, error) Name() string Host() string BuildImage(io.Reader, string) error ResolveImage(string) (string, error) StartContainer(name string, cc ContainerConfig) error InspectContainer(name string) (*dockerclient.ContainerInfo, error) RemoveContainer(name string) error }
func NewEndpoint ¶
func NewEndpoint(endpointOpts EndpointOptions) (Endpoint, error)
type EndpointFactory ¶
type EndpointFactory func(EndpointOptions) (Endpoint, error)
type EndpointOptions ¶
type FromStringOrBool ¶
type FromStringOrBool struct {
Value bool
}
func (FromStringOrBool) MarshalJSON ¶
func (s FromStringOrBool) MarshalJSON() ([]byte, error)
func (*FromStringOrBool) UnmarshalJSON ¶
func (s *FromStringOrBool) UnmarshalJSON(value []byte) error
type FromStringOrStringSlice ¶
type FromStringOrStringSlice struct {
Value []string
}
func (FromStringOrStringSlice) MarshalJSON ¶
func (s FromStringOrStringSlice) MarshalJSON() ([]byte, error)
func (*FromStringOrStringSlice) UnmarshalJSON ¶
func (s *FromStringOrStringSlice) UnmarshalJSON(value []byte) error
type HostConfig ¶
type HostConfig struct { dockerclient.HostConfig Privileged FromStringOrBool ReadonlyRootfs FromStringOrBool }
Click to show internal directories.
Click to hide internal directories.