dep_hdl

package
v0.2.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

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 string) *Handler

func (*Handler) Create

func (h *Handler) Create(ctx context.Context, mod *module.Module, depReq 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) error

func (*Handler) Get

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

func (*Handler) GetInstance

func (h *Handler) GetInstance(ctx context.Context, id string) (model.DepInstance, 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.DepMeta, error)

func (*Handler) ListInstances

func (h *Handler) ListInstances(ctx context.Context) (map[string]model.DepInstance, error)

func (*Handler) Update

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

Jump to

Keyboard shortcuts

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