dal

package
v0.334.1 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2024 License: Apache-2.0 Imports: 5 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 {
	// contains filtered or unexported fields
}

func New

func New(ctx context.Context, conn sql.ConnI) (*DAL, error)

func (*DAL) GetModuleConfiguration

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

func (*DAL) GetModuleSecretURL added in v0.276.5

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) ([]sql.ModuleConfiguration, error)

func (*DAL) ListModuleSecrets added in v0.276.5

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 added in v0.276.5

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 added in v0.276.5

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

type ModuleSecret added in v0.276.5

type ModuleSecret sql.ModuleSecret

Jump to

Keyboard shortcuts

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