dep_hdl

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2023 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ManagerIDLabel    = "mgw_mid"
	DeploymentIDLabel = "mgw_did"
	InstanceIDLabel   = "mgw_iid"
	ServiceRefLabel   = "mgw_sref"
)

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(storageHandler handler.DepStorageHandler, cfgVltHandler handler.CfgValidationHandler, cewClient cew_client.CewClient, hmClient hm_client.HmClient, smClient sm_client.Client, dbTimeout time.Duration, httpTimeout time.Duration, workspacePath, depHostPath, secHostPath, managerID, moduleNet string) *Handler

func (*Handler) Create

func (h *Handler) Create(ctx context.Context, mod *module.Module, depInput model.DepInput, incl dir_fs.DirFS, indirect bool) (string, error)

func (*Handler) Delete

func (h *Handler) Delete(ctx context.Context, id string, orphans bool) error

func (*Handler) Disable added in v0.1.0

func (h *Handler) Disable(ctx context.Context, id string, dependencies bool) error

func (*Handler) Enable added in v0.1.0

func (h *Handler) Enable(ctx context.Context, id string, dependencies bool) error

func (*Handler) Get

func (h *Handler) Get(ctx context.Context, id string, assets, instance bool) (model.Deployment, error)

func (*Handler) InitWorkspace

func (h *Handler) InitWorkspace(perm fs.FileMode) error

func (*Handler) List

func (h *Handler) List(ctx context.Context, filter model.DepFilter) ([]model.DepBase, error)

func (*Handler) Start

func (h *Handler) Start(ctx context.Context, id string) error

func (*Handler) Update

func (h *Handler) Update(ctx context.Context, id string, mod *module.Module, depInput model.DepInput, incl dir_fs.DirFS) error

Jump to

Keyboard shortcuts

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