startStopDelete

package
v0.12.12 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CmdType

type CmdType struct {
	Start   string // message for cmd start
	Finish  string // message for cmd end
	Execute Method
}

type Config

type Config struct {
}

type Handler

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

func New

func (*Handler) ProjectDelete

func (h *Handler) ProjectDelete(ctx context.Context, projectId string, _ string) (string, error)

func (*Handler) ProjectStart

func (h *Handler) ProjectStart(ctx context.Context, projectId string, _ string) (string, error)

func (*Handler) ProjectStop

func (h *Handler) ProjectStop(ctx context.Context, projectId string, _ string) (string, error)

func (*Handler) Run

func (h *Handler) Run(ctx context.Context, config RunConfig) error

func (*Handler) ServiceDelete

func (h *Handler) ServiceDelete(ctx context.Context, _ string, serviceId string) (string, error)

func (*Handler) ServiceStart

func (h *Handler) ServiceStart(ctx context.Context, _ string, serviceId string) (string, error)

func (*Handler) ServiceStop

func (h *Handler) ServiceStop(ctx context.Context, _ string, serviceId string) (string, error)

type Method

type Method func(ctx context.Context, projectId string, serviceId string) (string, error)

type RunConfig

type RunConfig struct {
	ProjectNameOrId string
	ServiceName     string
	Confirm         bool
	ParentCmd       constants.ParentCmd
	CmdData         CmdType
}

Jump to

Keyboard shortcuts

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