dep_storage_hdl

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2023 License: Apache-2.0 Imports: 13 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(db *sql.DB) *Handler

func (*Handler) BeginTransaction

func (h *Handler) BeginTransaction(ctx context.Context) (driver.Tx, error)

func (*Handler) CreateDep

func (h *Handler) CreateDep(ctx context.Context, itf driver.Tx, mID, name, inclDir string, indirect bool, timestamp time.Time) (string, error)

func (*Handler) CreateDepConfigs

func (h *Handler) CreateDepConfigs(ctx context.Context, itf driver.Tx, mConfigs module.Configs, dConfigs map[string]any, dID string) error

func (*Handler) CreateDepHostRes

func (h *Handler) CreateDepHostRes(ctx context.Context, itf driver.Tx, hostResources map[string]string, dID string) error

func (*Handler) CreateDepReq

func (h *Handler) CreateDepReq(ctx context.Context, itf driver.Tx, depReq []string, dID string) error

func (*Handler) CreateDepSecrets

func (h *Handler) CreateDepSecrets(ctx context.Context, itf driver.Tx, secrets map[string]string, dID string) error

func (*Handler) CreateInst

func (h *Handler) CreateInst(ctx context.Context, itf driver.Tx, dID string, timestamp time.Time) (string, error)

func (*Handler) CreateInstCtr

func (h *Handler) CreateInstCtr(ctx context.Context, itf driver.Tx, iID, cID, sRef string, order uint) error

func (*Handler) DeleteDep

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

func (*Handler) DeleteDepConfigs

func (h *Handler) DeleteDepConfigs(ctx context.Context, itf driver.Tx, dID string) error

func (*Handler) DeleteDepHostRes

func (h *Handler) DeleteDepHostRes(ctx context.Context, itf driver.Tx, dID string) error

func (*Handler) DeleteDepReq

func (h *Handler) DeleteDepReq(ctx context.Context, itf driver.Tx, dID string) error

func (*Handler) DeleteDepSecrets

func (h *Handler) DeleteDepSecrets(ctx context.Context, itf driver.Tx, dID string) error

func (*Handler) DeleteInst

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

func (*Handler) Init

func (h *Handler) Init(ctx context.Context, schemaPath string) error

func (*Handler) ListDep

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

func (*Handler) ListInst

func (h *Handler) ListInst(ctx context.Context, filter model.DepInstFilter) ([]model.Instance, error)

func (*Handler) ListInstCtr

func (h *Handler) ListInstCtr(ctx context.Context, iID string, filter model.CtrFilter) ([]model.Container, error)

func (*Handler) ReadDep

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

func (*Handler) ReadInst

func (h *Handler) ReadInst(ctx context.Context, id string) (model.Instance, error)

func (*Handler) UpdateDep

func (h *Handler) UpdateDep(ctx context.Context, dID, name, inclDir string, enabled, indirect bool, timestamp time.Time) error

Jump to

Keyboard shortcuts

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