Documentation
¶
Index ¶
- type Container
- type DockerCmd
- func (dc *DockerCmd) BuildProjectCommand(p *project.Project, noCache bool) *DockerCmd
- func (dc *DockerCmd) CreateAndStartProjectCommand(p *project.Project, recreate, update bool) *DockerCmd
- func (dc *DockerCmd) DockerCommand() *DockerCmd
- func (dc *DockerCmd) DockerComposeCommand() *DockerCmd
- func (dc *DockerCmd) Execute() error
- func (dc *DockerCmd) ExecuteWithOutput() ([]string, error)
- func (dc *DockerCmd) FetchAllContainersCommand(includeStopped bool) *DockerCmd
- func (dc *DockerCmd) FetchImagesCommand(p *project.Project) *DockerCmd
- func (dc *DockerCmd) FetchProjectContainersCommand(p *project.Project) *DockerCmd
- func (dc *DockerCmd) FetchProjectsCommand(includeStopped bool) *DockerCmd
- func (dc *DockerCmd) LoginAws() error
- func (dc *DockerCmd) LogsCommand(p *project.Project, opts LogsOptions) *DockerCmd
- func (dc *DockerCmd) OpenCode(c *Container, dir string) error
- func (dc *DockerCmd) RemoveImageCommand(id string) *DockerCmd
- func (dc *DockerCmd) RemoveProjectCommand(p *project.Project) *DockerCmd
- func (dc *DockerCmd) RestartProjectCommand(p *project.Project) *DockerCmd
- func (dc *DockerCmd) Slice() []string
- func (dc *DockerCmd) StopProjectCommand(p *project.Project) *DockerCmd
- func (dc *DockerCmd) String() string
- func (dc *DockerCmd) TerminalCommand(p *project.Project, cmd []string) *DockerCmd
- func (dc *DockerCmd) WithArgs(args ...string) *DockerCmd
- func (dc *DockerCmd) WithProjectFilter() *DockerCmd
- func (dc *DockerCmd) WithProjectName(p *project.Project) *DockerCmd
- func (dc *DockerCmd) WithSidecarProfile() *DockerCmd
- type Image
- type LogsOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Container ¶
type Container struct {
Id string `json:"ID"`
CreatedAt string `json:"CreatedAt"`
Name string `json:"Names"`
State string `json:"State"`
Labels string `json:"Labels"`
}
func (*Container) ComposeProjectName ¶
Full project name with stack prefix
func (*Container) LabelValue ¶
func (*Container) ProjectName ¶
Project name without the stack prefix
func (*Container) ServiceName ¶
type DockerCmd ¶
func NewDockerCmd ¶
func (*DockerCmd) BuildProjectCommand ¶
func (*DockerCmd) CreateAndStartProjectCommand ¶
func (*DockerCmd) DockerCommand ¶
Start building a docker command
func (*DockerCmd) DockerComposeCommand ¶
Start building a docker compose command
func (*DockerCmd) ExecuteWithOutput ¶
func (*DockerCmd) FetchAllContainersCommand ¶
FetchAllContainersCommand uses docker ps command (not docker compose) to fetch containers Filtering is done by project prefix which must be a part of container name to make it work Docker compose configuration must define container name as: container_name: $COMPOSE_PROJECT_NAME-service_name_here
It is not possible to list all containers using docker compose command because --project-name argument is mandatory
func (*DockerCmd) FetchImagesCommand ¶
func (*DockerCmd) FetchProjectContainersCommand ¶
func (*DockerCmd) FetchProjectsCommand ¶
func (*DockerCmd) LogsCommand ¶
func (dc *DockerCmd) LogsCommand(p *project.Project, opts LogsOptions) *DockerCmd
func (*DockerCmd) RemoveImageCommand ¶
func (*DockerCmd) RemoveProjectCommand ¶
func (*DockerCmd) RestartProjectCommand ¶
func (*DockerCmd) StopProjectCommand ¶
func (*DockerCmd) TerminalCommand ¶
func (*DockerCmd) WithProjectFilter ¶
func (*DockerCmd) WithProjectName ¶
func (*DockerCmd) WithSidecarProfile ¶
type LogsOptions ¶
Click to show internal directories.
Click to hide internal directories.