endpoint

package
v0.0.2-0...-f822251 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2020 License: Apache-2.0 Imports: 13 Imported by: 9

Documentation

Index

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 EndpointOptions struct {
	Host      string
	TLS       bool
	TLSVerify bool
	TLSCaCert string
	TLSCert   string
	TLSKey    string
}

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
}

Jump to

Keyboard shortcuts

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