service_hdl

package
v0.15.2 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CoreIDLabel  = "mgw_cid"
	CoreSrvLabel = "core_srv"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CtrHandler added in v0.15.0

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

func (*CtrHandler) ExecCmd added in v0.15.0

func (h *CtrHandler) ExecCmd(ctx context.Context, cmd []string, tty bool, envVars map[string]string, workDir string) error

func (*CtrHandler) Info added in v0.15.0

func (*CtrHandler) Restart added in v0.15.0

func (h *CtrHandler) Restart(ctx context.Context) error

type Handler

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

func New

func New(cewClient cew_lib.Api, coreID string, httpTimeout time.Duration) *Handler

func (*Handler) Get

func (h *Handler) Get(ctx context.Context, name string) (lib_model.CoreService, error)

func (*Handler) GetCtrHandler

func (h *Handler) GetCtrHandler(name string) (*CtrHandler, error)

func (*Handler) Init

func (h *Handler) Init(composePath string) error

func (*Handler) List

func (h *Handler) List(ctx context.Context) (map[string]lib_model.CoreService, error)

func (*Handler) Restart

func (h *Handler) Restart(ctx context.Context, name string) error

Jump to

Keyboard shortcuts

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