Documentation
¶
Index ¶
- func GetNamedVolumesForService(service *config.Service) []string
- type Api
- func (d *Api) CheckNetwork() bool
- func (d *Api) ComposeDown(service config.Service, removeVolumes bool) error
- func (d *Api) ComposeLogs(service config.Service, follow bool) error
- func (d *Api) ComposeStart(service config.Service) error
- func (d *Api) ComposeStop(service config.Service) error
- func (d *Api) ComposeUp(service config.Service, build bool, recreate bool) error
- func (d *Api) Connect(name string, customPassword string, web bool) error
- func (d *Api) Create(name string) error
- func (d *Api) CreateNetwork() error
- func (d *Api) Exists(name string) bool
- func (d *Api) GetContainerLogs(name string, options container.LogsOptions) (io.ReadCloser, error)
- func (d *Api) GetInfo(name string) ServiceInfo
- func (d *Api) ListAvailable() []ServiceInfo
- func (d *Api) ListCreated() []ServiceInfo
- func (d *Api) ListRunning() []ServiceInfo
- func (d *Api) ListStopped() []ServiceInfo
- func (d *Api) Remove(name string) error
- func (d *Api) RemoveVolumes(names []string)
- func (d *Api) Start(name string) error
- func (d *Api) Stop(name string) error
- type ComposeLogConsumer
- type ServiceInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Api ¶
type Api struct {
// contains filtered or unexported fields
}
func (*Api) CheckNetwork ¶
func (*Api) ComposeDown ¶ added in v0.0.12
ComposeDown stops and removes a compose project
func (*Api) ComposeLogs ¶ added in v0.0.12
ComposeLogs shows logs from a compose project
func (*Api) ComposeStart ¶ added in v0.0.12
ComposeStart starts a compose project (similar to docker compose start)
func (*Api) ComposeStop ¶ added in v0.0.12
ComposeStop stops a compose project without removing it
func (*Api) CreateNetwork ¶
func (*Api) GetContainerLogs ¶ added in v0.0.12
func (d *Api) GetContainerLogs(name string, options container.LogsOptions) (io.ReadCloser, error)
func (*Api) GetInfo ¶
func (d *Api) GetInfo(name string) ServiceInfo
func (*Api) ListAvailable ¶
func (d *Api) ListAvailable() []ServiceInfo
func (*Api) ListCreated ¶
func (d *Api) ListCreated() []ServiceInfo
func (*Api) ListRunning ¶
func (d *Api) ListRunning() []ServiceInfo
func (*Api) ListStopped ¶
func (d *Api) ListStopped() []ServiceInfo
func (*Api) RemoveVolumes ¶
type ComposeLogConsumer ¶ added in v0.0.12
type ComposeLogConsumer struct{}
ComposeLogConsumer implements api.LogConsumer interface for streaming logs
func (*ComposeLogConsumer) Err ¶ added in v0.0.12
func (l *ComposeLogConsumer) Err(containerName, message string)
func (*ComposeLogConsumer) Log ¶ added in v0.0.12
func (l *ComposeLogConsumer) Log(containerName, message string)
func (*ComposeLogConsumer) Status ¶ added in v0.0.12
func (l *ComposeLogConsumer) Status(container, msg string)
Click to show internal directories.
Click to hide internal directories.