startStopDelete

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2022 License: MIT Imports: 10 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
	Finish  string
	Execute Method
}

type Config

type Config struct {
}

type Handler

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

func New

func New(config Config, httpClient *httpClient.Handler, apiGrpcClient business.ZeropsApiProtocolClient) *Handler

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 {
	ProjectName 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