core

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

Manager handles command running

func NewManager

func NewManager(logger *logrus.Logger) *Manager

NewManager creates a new instance of Manager

func (*Manager) RunCmd

func (m *Manager) RunCmd(command, containerID string)

RunCmd runs a given docker command

type UI

type UI struct {
	// contains filtered or unexported fields
}

UI represents the UI interactions

func NewUI

func NewUI(logger *logrus.Logger) *UI

NewUI creates a new instance of UI

func (*UI) GetChooseContainer

func (ui *UI) GetChooseContainer(containers []types.Container) *types.Container

GetChooseContainer prompts a new select with the containers

func (*UI) GetChooseMainOption

func (ui *UI) GetChooseMainOption() string

GetChooseMainOption provides select for the main entry point

func (*UI) GetCommandSelect

func (ui *UI) GetCommandSelect() string

GetCommandSelect shows a new command select

Jump to

Keyboard shortcuts

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