dep_storage_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: 14 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, depBase model.DepBase) (string, error)

func (*Handler) CreateDepAssets added in v0.3.0

func (h *Handler) CreateDepAssets(ctx context.Context, itf driver.Tx, dID string, depAssets model.DepAssets) 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 string, ctr model.Container) error

func (*Handler) DeleteDep

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

func (*Handler) DeleteDepAssets added in v0.3.0

func (h *Handler) DeleteDepAssets(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, delay time.Duration) error

func (*Handler) ListDep

func (h *Handler) ListDep(ctx context.Context, filter model.DepFilter) ([]model.DepBase, 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, assets bool) (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, itf driver.Tx, depBase model.DepBase) error

Jump to

Keyboard shortcuts

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