service_hdl

package
v0.14.1 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2024 License: Apache-2.0 Imports: 14 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 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) (handler.ContainerHandler, 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