command

package
v0.0.0-...-149ea5c Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2017 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunAsync

func RunAsync(command Command)

RunAsync runs command asynchronously

Types

type AppStart

type AppStart struct {
	CommonCommand

	Application *entities.Application
	User        *entities.User
	// contains filtered or unexported fields
}

AppStart - starts app

func NewAppStartCommand

func NewAppStartCommand(command AppStart) (AppStart, chan entities.Job, chan error)

NewAppStartCommand creates app start command

func (AppStart) Process

func (appStart AppStart) Process()

Process starts application

type AppStop

type AppStop struct {
	CommonCommand

	Application *entities.Application
	User        *entities.User
	// contains filtered or unexported fields
}

AppStop - stops app

func NewAppStopCommand

func NewAppStopCommand(command AppStop) (AppStop, chan entities.Job, chan error)

NewAppStopCommand creates app start command

func (AppStop) Process

func (appStop AppStop) Process()

Process stops application

type Command

type Command interface {
	Process()
}

Command interface

type CommonCommand

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

CommonCommand common fields

type FrontendUpdate

type FrontendUpdate struct {
	CommonCommand
}

FrontendUpdate command to update frontends

func (FrontendUpdate) Process

func (fu FrontendUpdate) Process()

Process service logs

type NodeList

type NodeList struct {
	CommonCommand

	OnlyAvailable bool
	// contains filtered or unexported fields
}

NodeList returns node list

func NewNodeListCommand

func NewNodeListCommand(command NodeList) (NodeList, chan []entities.Node, chan error)

NewNodeListCommand create command

func (NodeList) Process

func (nl NodeList) Process()

Process deletes command

type ServiceDelete

type ServiceDelete struct {
	CommonCommand

	User      *entities.User
	ServiceID string
	// contains filtered or unexported fields
}

ServiceDelete deleted service

func NewServiceDeleteCommand

func NewServiceDeleteCommand(command ServiceDelete) (ServiceDelete, chan entities.Service, chan error)

NewServiceDeleteCommand create command

func (ServiceDelete) Process

func (sd ServiceDelete) Process()

Process deletes command

type ServiceInspect

type ServiceInspect struct {
	CommonCommand

	User      *entities.User
	ServiceID string
	// contains filtered or unexported fields
}

ServiceInspect returns services list

func NewServiceInspectCommand

func NewServiceInspectCommand(command ServiceInspect) (ServiceInspect, chan entities.Service, chan error)

NewServiceInspectCommand inspects service

func (ServiceInspect) Process

func (c ServiceInspect) Process()

Process executes command

type ServiceList

type ServiceList struct {
	CommonCommand

	User            *entities.User
	ApplicationID   string
	WithStatuses    bool
	WithVolumeSizes bool
	// contains filtered or unexported fields
}

ServiceList returns services list

func NewServiceListCommand

func NewServiceListCommand(command ServiceList) (ServiceList, chan []entities.Service, chan error)

NewServiceListCommand create command

func (ServiceList) Process

func (c ServiceList) Process()

Process executes command

type ServiceLogs

type ServiceLogs struct {
	CommonCommand

	User      *entities.User
	ServiceID string
	// contains filtered or unexported fields
}

ServiceLogs returns service logs

func NewServiceLogsCommand

func NewServiceLogsCommand(command ServiceLogs) (ServiceLogs, chan []string, chan error)

NewServiceLogsCommand created service start command

func (ServiceLogs) Process

func (sl ServiceLogs) Process()

Process service logs

type ServiceStart

type ServiceStart struct {
	CommonCommand

	User    *entities.User
	Service entities.Service
	// contains filtered or unexported fields
}

ServiceStart starts service

func NewServiceStartCommand

func NewServiceStartCommand(command ServiceStart) (ServiceStart, chan entities.Job, chan error)

NewServiceStartCommand created service start command

func (ServiceStart) Process

func (ss ServiceStart) Process()

Process start service

type ServiceStop

type ServiceStop struct {
	CommonCommand

	User    *entities.User
	Service entities.Service
	// contains filtered or unexported fields
}

ServiceStop stops service

func NewServiceStopCommand

func NewServiceStopCommand(command ServiceStop) (ServiceStop, chan entities.Job, chan error)

NewServiceStopCommand created service start command

func (ServiceStop) Process

func (ss ServiceStop) Process()

Process start service

Jump to

Keyboard shortcuts

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