docker

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2020 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Compose

type Compose struct {
	HasUp     bool
	HasUpLast time.Time
	// contains filtered or unexported fields
}

Compose DockerCompose struct

func NewDockerCompose

func NewDockerCompose(vuexState *vuex.State) *Compose

NewDockerCompose Create a new DockerCompose struct

func (*Compose) Build

func (t *Compose) Build(containers string, force bool) string

Build Build a container

func (*Compose) CheckDockerComposeVersion

func (t *Compose) CheckDockerComposeVersion() string

CheckDockerComposeVersion Check the docker-compose executable's version

func (*Compose) CheckDockerVersion

func (t *Compose) CheckDockerVersion() string

CheckDockerVersion Check the docker executable's version

func (*Compose) CheckDotEnv

func (t *Compose) CheckDotEnv() bool

CheckDotEnv Check if .env file exists

func (*Compose) CopyEnv

func (t *Compose) CopyEnv() string

CopyEnv Make the .env file form env-example

func (*Compose) DotEnvContent

func (t *Compose) DotEnvContent() map[string]string

DotEnvContent Return dot env contents

func (*Compose) Down

func (t *Compose) Down() string

Down Down all the containers

func (*Compose) Exec

func (t *Compose) Exec(container string, user string) string

Exec Execute a docker container

start cmd /k echo Hello, World!

func (*Compose) GetContainers added in v0.4.0

func (t *Compose) GetContainers() string

GetContainers run docker-compose ps --services and parse the output

func (*Compose) GetContainersWithStatuses added in v0.4.0

func (t *Compose) GetContainersWithStatuses() string

GetContainersWithStatuses run docker-compose ps and parse the output

func (*Compose) GetContainersWithStatusesSlice added in v0.4.0

func (t *Compose) GetContainersWithStatusesSlice() ([]container, error)

GetContainersWithStatusesSlice get a slice of statuses

func (*Compose) HasRunning added in v0.4.0

func (t *Compose) HasRunning() bool

HasRunning check if there are any containers running

func (*Compose) Logs

func (t *Compose) Logs(container string) string

Logs show logs

func (*Compose) SaveDotEnvContent

func (t *Compose) SaveDotEnvContent(data string) string

SaveDotEnvContent save dot env contents

func (*Compose) SetLaradockPath

func (t *Compose) SetLaradockPath(path string) bool

SetLaradockPath Check if .env file exists

func (*Compose) SetTerminalPath

func (t *Compose) SetTerminalPath(path string) bool

SetTerminalPath Check if .env file exists

func (*Compose) Stats added in v0.4.0

func (t *Compose) Stats()

Stats collects docker stats

func (*Compose) StatsStop added in v0.4.0

func (t *Compose) StatsStop()

StatsStop stops docker stats go routine

func (*Compose) Toggle

func (t *Compose) Toggle(state string, containers string) string

Toggle Toggle a container on and off

func (*Compose) Up

func (t *Compose) Up(containers string) string

Up Up a container

func (*Compose) WailsInit added in v0.4.0

func (t *Compose) WailsInit(runtime *wails.Runtime) error

WailsInit init

type Response added in v0.4.0

type Response struct {
	Success bool   `json:"success"`
	Message string `json:"message"`
}

Response struct

Jump to

Keyboard shortcuts

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