dal

package
v0.394.1 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package dal provides a data abstraction layer for managing module configurations

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DAL

type DAL struct {
	*libdal.Handle[DAL]
	// contains filtered or unexported fields
}

func New

func New(conn libdal.Connection) *DAL

func (*DAL) GetModuleConfiguration

func (d *DAL) GetModuleConfiguration(ctx context.Context, module optional.Option[string], name string) ([]byte, error)

func (*DAL) GetModuleSecretURL

func (d *DAL) GetModuleSecretURL(ctx context.Context, module optional.Option[string], name string) (string, error)

func (*DAL) ListModuleConfiguration

func (d *DAL) ListModuleConfiguration(ctx context.Context) ([]ModuleConfiguration, error)

func (*DAL) ListModuleSecrets

func (d *DAL) ListModuleSecrets(ctx context.Context) ([]ModuleSecret, error)

func (*DAL) SetModuleConfiguration

func (d *DAL) SetModuleConfiguration(ctx context.Context, module optional.Option[string], name string, value []byte) error

func (*DAL) SetModuleSecretURL

func (d *DAL) SetModuleSecretURL(ctx context.Context, module optional.Option[string], name string, url string) error

func (*DAL) UnsetModuleConfiguration

func (d *DAL) UnsetModuleConfiguration(ctx context.Context, module optional.Option[string], name string) error

func (*DAL) UnsetModuleSecret

func (d *DAL) UnsetModuleSecret(ctx context.Context, module optional.Option[string], name string) error

type ModuleConfiguration added in v0.361.0

type ModuleConfiguration sql.ModuleConfiguration

type ModuleSecret

type ModuleSecret sql.ModuleSecret

Directories

Path Synopsis
internal
sql

Jump to

Keyboard shortcuts

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